Output Modes
Use --json and --quiet for scripting and CI pipelines
Most BuildBear CLI commands support two optional output flags that make it easy to integrate the CLI into scripts, CI pipelines, and other tooling.
--json
Emit structured JSON to stdout instead of formatted human-readable text.
When to use: Whenever you need to extract values from command output in a script — pipe --json output through jq to get what you need.
--quiet
Suppress all informational output. Only errors are printed (to stderr).
Exits with code 0 on success, non-zero on failure — no output on success.
When to use: When you only care about whether a command succeeded and don't want any output — for example, in a CI step that runs silently unless something goes wrong.
Combining flags
--json and --quiet can be used together. In that case:
- On success: no output (quiet wins)
- On error: JSON error object is emitted to stderr
This is useful when you need silent success but structured error information for logging:
Exit codes
| Code | Meaning |
|---|---|
0 | Success |
1 | General error (authentication failure, API error, invalid argument, etc.) |
All errors include a descriptive message regardless of output mode:
Command availability
| Command | --json | --quiet |
|---|---|---|
auth status | Yes | — |
init | Yes | — |
sandbox create | Yes | Yes |
sandbox list | Yes | Yes |
sandbox delete | Yes | Yes |
sandbox networks | Yes | Yes |
status | Yes | Yes |
faucet native | Yes | Yes |
faucet erc20 | Yes | Yes |
snapshot take | Yes | Yes |
snapshot revert | Yes | Yes |
contract source | Yes | Yes |
contract abi | Yes | Yes |
contract verify | Yes | Yes |
rpc | Always on | Yes |