You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-3Lines changed: 8 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -211,7 +211,7 @@ In JSON mode, error responses are written to stdout and the process exits with a
211
211
}
212
212
```
213
213
214
-
The full JSON command catalog, stable error codes, and schemas live in [docs/json-schema/v1](https://github.com/dropbox/dbxcli/tree/master/docs/json-schema/v1). Commands that intentionally do not support structured command-result JSON yet include `login`, `logout`, and `completion`, but their help is available as JSON with `--help --output=json`. Shell-completion protocol commands remain text-only.
214
+
The full JSON command catalog, stable error codes, and schemas live in [docs/json-schema/v1](https://github.com/dropbox/dbxcli/tree/master/docs/json-schema/v1). Commands that intentionally do not support structured command-result JSON yet include `login` and `completion`, but their help is available as JSON with `--help --output=json`. Shell-completion protocol commands remain text-only.
215
215
216
216
### Authentication
217
217
@@ -222,8 +222,8 @@ Run `dbxcli login` to authorize dbxcli and save credentials:
222
222
$ dbxcli login
223
223
```
224
224
225
-
Commands require saved credentials. If no saved credentials are available, run
226
-
`dbxcli login` first or provide a token with `DBXCLI_ACCESS_TOKEN`.
225
+
Dropbox API commands require authentication. Run `dbxcli login` to save
226
+
credentials, or provide a short-lived token with `DBXCLI_ACCESS_TOKEN`.
227
227
228
228
Personal and team logins use bundled Dropbox app keys by default. You can pass
229
229
a custom app key as an option:
@@ -244,6 +244,11 @@ Saved login credentials include a Dropbox refresh token and are refreshed
244
244
automatically when the access token expires. If saved credentials are revoked or
245
245
need to be replaced, run `dbxcli login` again.
246
246
247
+
Run `dbxcli logout` to revoke saved Dropbox access tokens and remove local saved
248
+
credentials. If `DBXCLI_ACCESS_TOKEN` is set, unset it before running logout;
249
+
environment-provided tokens are not saved locally and cannot be removed by
250
+
dbxcli.
251
+
247
252
Set `DBXCLI_AUTH_FILE` to use a different credentials file:
0 commit comments