Command Reference
Top-level commands
Section titled “Top-level commands”gaard completiongaard ctxgaard logingaard logoutgaard tenantgaard tokengaard versiongaard whoamigaard version
Section titled “gaard version”Print build and runtime information:
gaard versiongaard login
Section titled “gaard login”Open a browser sign-in flow and store a token in the selected context:
gaard logingaard login --api http://127.0.0.1:8004 --name localgaard login --api https://staging.gaard.ai --name staginggaard logout
Section titled “gaard logout”Clear the stored token from the current context:
gaard logoutgaard whoami
Section titled “gaard whoami”Show the active user, roles, tenants, context, and selected tenant:
gaard whoamigaard whoami -o jsongaard ctx
Section titled “gaard ctx”Manage named environments:
gaard ctx listgaard ctx add local --api http://127.0.0.1:8004gaard ctx add prod --api https://vision.gaard.ai --tenant acme_prodgaard ctx use prodgaard ctx remove localgaard tenant
Section titled “gaard tenant”Manage the current session tenant for the active context:
gaard tenant listgaard tenant use acme_prodgaard tenant cleartenant use validates tenant names and is primarily intended for super users who can move across multiple tenants.
gaard token
Section titled “gaard token”Manage personal access tokens:
gaard token listgaard token create --name ci-botgaard token create --name nightly-job --expires 720hgaard token revoke <token-id>When creating a token, the raw secret is printed only once. Copy it immediately if you need to use it outside the CLI config.
gaard completion
Section titled “gaard completion”Generate shell completion scripts:
gaard completion bashgaard completion zshPer-command help
Section titled “Per-command help”Use built-in help for the latest flags and argument details:
gaard --helpgaard token --helpgaard token create --helpgaard ctx add --help