CLI commands
The bv CLI is a single Go binary. It supports a handful of global flags
(notably --json for machine-readable output) and the subcommands below.
Global flags
These can be passed before any subcommand:
--json— emit a single JSON document on stdout instead of human- readable text. Stderr stays human-readable.--api-url=<url>— override the control-plane endpoint (defaults tohttps://api.butverify.dev, or whatever was captured duringbv init).--token=<token>— override the bearer token (defaults to the value saved bybv initin the config file).--help,-h— show usage.--version,-v— print the CLI version.
bv init
Captures an installation token (from --token, BV_TOKEN, or stdin),
calls /v1/auth/whoami to verify the token, and writes
~/.config/butverify/config.json (mode 0600).
Flags:
--api-url=<url>— override the API endpoint.--token=<token>— supply the token inline (otherwise read fromBV_TOKENor stdin).
bv push <dir>
Tarballs <dir> and uploads it as a new site. Each invocation provisions
a fresh site_id; pass --upload-id to retry the same logical upload
idempotently.
Flags:
--upload-id=<id>— explicit upload identifier for idempotent retry.--ttl-seconds=<n>— site TTL in seconds (paid plan;0uses the server default).--include-hidden— include dot-files in the bundle.
bv ls
Lists sites in the authenticated tenant.
bv get <site-id> <dest>
Downloads every file in a site into <dest>.
bv cat <site-id> <path>
Streams a single file to stdout.
bv rm <site-id>
Soft-deletes a site (the asynchronous janitor reaps assets within ~30s).
bv manifest <site-id>
Prints the site’s manifest.json.
bv pin <site-id> / bv unpin <site-id>
Pin a site to disable TTL-based expiry, or unpin to re-stamp the default TTL.
bv whoami
Prints the resolved tenant for the configured token.
bv version
Prints the CLI version.
bv report --from <out.json> / bv dashboard --from <data.csv>
Render a templated report or dashboard site from a JSON or CSV input.
Pass --push to upload the rendered site immediately.
Exit codes
| code | meaning |
|---|---|
| 0 | success |
| 1 | API or runtime error (server-side) |
| 2 | invalid arguments |