VoidnetVoid Docs
CLI

AI agents: read this documentation natively — index: https://docs.openvoidnet.com/llms.txt, full: https://docs.openvoidnet.com/llms-full.txt, this page: https://docs.openvoidnet.com/docs/cli/output.md.

CLI Output Contract

Machine guarantees for scripting the Voidnet CLI — streams, formats, dry runs, and exit codes.

This page is a contract between the CLI and anything that parses it: shell scripts, CI pipelines, and AI coding agents.

Streams

  • stdout carries data only. Tables, JSON, IDs, rotated secrets. Everything on stdout is safe to pipe; success output parses as pure JSON under -o json.
  • stderr carries diagnostics and errors. Progress lines, request previews, warnings, failures, and all hints.

Formats

Every command accepts -o (--output-format): pretty (default), json, yaml, table, toon. --jq '<expr>' filters or reshapes JSON output inline (like jq, with --raw-output like jq -r).

voidnet publisher list-apps -o json
voidnet publisher list-apps -o json --jq '.apps[] | .id'

Dry run and debug

  • --dry-run previews the exact request (method, URL, headers, body) with no network call and no credential reads. Human preview on stderr; with -o json, one JSON object on stdout. Local commands (login, logout) report a no-op instead.
  • --debug logs request and response diagnostics to stderr while executing normally.
  • -v (--verbose) expands any help page to all flags and sections; help is minimal by default.

Exit codes

CodeMeaning
0Success.
1Runtime or API failure. stderr names the cause with a remedy hint.
2Usage error (bad flags, missing required input).
3Authentication or authorization failure (dead token, insufficient scope).

Prompt discipline

  • The CLI never prompts without an interactive terminal. Piped and CI runs fail loud with a non-zero exit instead of hanging.
  • The CLI never prints full secret values except the two once-only deliveries (keys rotate full value, token creation), each labeled copy-once.
  • Errors are named shapes (insufficient_scope, insufficient_binding, invalid_grant, app_not_purchased), never generic strings. Scope and binding failures never resolve by retrying; grant failures need a fresh login.

On this page