Skip to content

Commit a3e85e0

Browse files
committed
update readme
1 parent df065e3 commit a3e85e0

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ Among other features, Box CLI includes the following functionality:
2626
- [Linux & Node install](#linux--node-install)
2727
- [Quick Login with the Official Box CLI App](#quick-login-with-the-official-box-cli-app)
2828
- [CLI and Server Authentication with JWT](#cli-and-server-authentication-with-jwt)
29+
- [Logout](#logout)
2930
- [Secure Storage](#secure-storage)
3031
- [What is Stored Securely](#what-is-stored-securely)
3132
- [Platform Support](#platform-support)
@@ -105,6 +106,15 @@ Successfully added CLI environment "ManualKey"
105106
[oauth-guide]: https://developer.box.com/guides/cli/quick-start/
106107
[jwt-guide]: https://developer.box.com/guides/cli/cli-docs/jwt-cli/
107108

109+
### Logout
110+
111+
To sign out from the current environment, run:
112+
113+
```bash
114+
box logout
115+
```
116+
117+
This revokes the access token on Box and clears the local token cache. For OAuth, run `box login` to authorize again. For CCG and JWT, a new token is fetched automatically on the next command. Use `-f` to skip the confirmation prompt, or `--on-revoke-failure=clear` / `--on-revoke-failure=abort` to control behavior when token revocation fails. See [`box logout`](docs/logout.md) for full details.
108118

109119
## Secure Storage
110120

0 commit comments

Comments
 (0)