Skip to content

Latest commit

 

History

History
70 lines (51 loc) · 2.08 KB

tokens.md

File metadata and controls

70 lines (51 loc) · 2.08 KB

box tokens

Get a token. Returns the service account token by default

box tokens:exchange SCOPE

Get a token. Returns the service account token by default

USAGE
  $ box tokens:exchange SCOPE

ARGUMENTS
  SCOPE  The scope(s) for the new token, separated by a comma if multiple are present

OPTIONS
  -h, --help             Show CLI help
  -q, --quiet            Suppress any non-error output to stderr
  -t, --token=token      Specify the token to exchange
  -u, --user-id=user-id  Get a user token from a user ID
  -v, --verbose          Show verbose output, which can be helpful for debugging
  --file-id=file-id      Scope the token to a specific file
  --folder-id=folder-id  Scope the token to a specific folder
  --no-color             Turn off colors for logging

See code: src/commands/tokens/exchange.js

box tokens:get

Get a token. Returns the service account token by default

USAGE
  $ box tokens:get

OPTIONS
  -h, --help             Show CLI help
  -q, --quiet            Suppress any non-error output to stderr
  -u, --user-id=user-id  Get a user token from a user ID
  -v, --verbose          Show verbose output, which can be helpful for debugging
  --no-color             Turn off colors for logging

See code: src/commands/tokens/get.js

box tokens:revoke TOKEN

Revoke a token. The token will no longer be valid for making API calls.

USAGE
  $ box tokens:revoke TOKEN

ARGUMENTS
  TOKEN  The token to revoke

OPTIONS
  -h, --help     Show CLI help
  -q, --quiet    Suppress any non-error output to stderr
  -v, --verbose  Show verbose output, which can be helpful for debugging
  --no-color     Turn off colors for logging

See code: src/commands/tokens/revoke.js