Box CLI
- Command
-
box - Docs
- https://box.dev/guides/cli
CLI login Create a Box app in the Developer Console or generate a short-lived developer token there. Box docs state every API endpoint requires a valid access token, sent as Authorization: Bearer .... Easiest path for testing: open your app’s Configuration tab and click Generate Developer Token as shown in the Developer Tokens guide. For production, configure OAuth 2.0, JWT, or Client Credentials on your app from the same console per the authentication overview.
$ box login --platform-app Acquired by the CLI — running box login --platform-app opens the auth flow and stores the credential.
$ box configure:environments:add PATH_TO_CONFIG_FILE Acquired by the CLI — running box configure:environments:add PATH_TO_CONFIG_FILE opens the auth flow and stores the credential.
$ box configure:environments:add PATH_TO_CONFIG_FILE_OR_SETTINGS Acquired by the CLI — running box configure:environments:add PATH_TO_CONFIG_FILE_OR_SETTINGS opens the auth flow and stores the credential.