# logout

To log out of the OnePub CLI on **all** your devices, run the logout command from **any** device.

```
onepub logout
```

If you log out from any of your devices then you will be logged out from all of your devices.

If you have previously logged into multiple devices then to regain access an any given device, you will need to run `onepub login` on that device.

If your device gets stolen you can simply run `onepub logout` from any device or the onepub.dev website; go to the Member page and click the Logout CLI action.

Note: logging out of a stolen device still leaves the .pub-cache on the device so a thief will still have access to all source code in that device's cache.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.onepub.dev/guides/cli-integration/logout.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
