@urlbox/cli
The official CLI for the Urlbox screenshot and web automation API.
Install
npm install -g @urlbox/cli
Usage
urlbox auth --api-secret sec_xxxxxx
urlbox render https://example.com --output home.png
urlbox screenshot https://example.com --output home.png
urlbox pdf https://example.com --output home.pdf
urlbox video https://example.com --output home.mp4
urlbox render https://example.com --dry-run
urlbox render https://example.com --curl
urlbox render https://example.com --open
urlbox render https://example.com --preset article
urlbox render https://example.com --timeout 3m
urlbox render https://example.com --async
urlbox status ps_abc123 --wait
urlbox link --url https://example.com --output-format quiet
urlbox dashboard
urlbox commands --output-format json
urlbox render --help --agent
urlbox schema render
urlbox skill show
urlbox skill install --target claude-code --scope user --yes
urlbox doctor
All commands support --output-format json|text|quiet and a built-in --jq <expr> filter (no external jq binary needed).
Validation contract (v0.9.0+): typed flags (--width, --format, --wait-until, ...) are validated locally — fast feedback for type errors and invalid enum values. The --json option is a passthrough: the Urlbox API performs all option validation, so any current or future API option works via --json without needing a CLI update. If a --json key looks like a typo of a documented option, the CLI prints a warning: ... to stderr and still sends the request verbatim.
Multi-account workflows use named profiles (urlbox --profile <name> ...); see urlbox config profile --help.
How it works
The npm package is a thin wrapper around the native Go binary. During postinstall, it downloads the pre-built binary for your platform and architecture (macOS, Linux, or Windows; amd64 or arm64) from the GitHub release. Running urlbox then spawns that binary with your arguments.
Documentation
Full documentation and additional install methods: github.com/urlbox/urlbox-cli
License
MIT