BOX_API_KEY; see API Keys for setup, rotation, and deletion.
Docker image
Install the Box CLI and OpenSSH client in the image. Authenticate at runtime.Debian / Ubuntu
Alpine
Runtime login
Runbox login before the first Box command in your process:
box login "$BOX_API_KEY" --json emits:
--json on login too. It keeps stdout machine-readable and makes failed auth return the standard JSON error line. See API Keys for key lifecycle guidance.
JSON and JSONL
Most read/update commands emit one JSON object:event field. Most runtime failures in --json mode emit a final {"event":"error",...} line. Argument parsing errors can still be emitted by the CLI parser on stderr before Box’s JSON error handler runs. See Use in Code for exact schemas, error formats, and parsers.
For secrets used inside Boxes, see Secrets & Setup.