Skip to main content

Module cli

Module cli 

Source
Expand description

The bambu command-line interface (behind the cli feature).

Thin layer over the library: parse args, resolve a connection target, call the client, format output. Agent contract: human-readable output by default, machine-readable JSON to stdout with --json (no TTY auto-detection — output format depends only on the flag); a semantic exit-code scheme; the access code is never printed.

Functions§

run
Entry point. Parses args, dispatches, and maps errors to exit codes.