CLI
Install, global flags, exit codes, and every command the axhub CLI offers
axhub is the official CLI for working with axhub from the terminal, CI, and agents.
This page collects the rules that apply to every command — installation, global options, the JSON output envelope, and exit codes. After that, every command is listed, grouped by purpose. Installing the CLI for the first time and shipping your first app? Follow the Quickstart first.
Every command and flag is also available via axhub --json-schema. The command list below is generated from that output — the CLI version it was built from is stated at the top of that section. For the last-mile details, axhub <command> --help is always current.
Install
curl -fsSL https://cli.axhub.ai/install.sh | bash
axhub --versionirm https://cli.axhub.ai/install.ps1 | iex
axhub --versionGlobal options
These work on any command; most can also be set via environment variables.
| Option | Description |
|---|---|
--profile <name> | Profile to use (AXHUB_PROFILE) |
--tenant <tenant> | Target tenant (AXHUB_TENANT) |
--json | JSON output (AXHUB_JSON) |
--field-expr <expr> | Extract values from the JSON output with a jq-compatible expression |
--field-expr-json <expr> | Same, but print compact JSON |
-y, --yes | Auto-approve non-destructive confirmation prompts (AXHUB_YES) |
--no-input | Disable interactive input — for agents/CI (AXHUB_NO_INPUT) |
--non-interactive | Fully non-interactive mode (AXHUB_NON_INTERACTIVE) |
--no-keychain | Use file-backed credentials instead of the OS keychain (AXHUB_NO_KEYCHAIN) |
--token-file <path> | OAuth token file path (AXHUB_TOKEN_FILE) |
--api-key-file <path> | PAT (API key) file path (AXHUB_API_KEY_FILE) |
--config <path> | CLI config file path (AXHUB_CONFIG) |
--endpoint <URL> | API endpoint (AXHUB_ENDPOINT) |
--insecure-endpoint | Allow a non-HTTPS endpoint — development/testing only (AXHUB_INSECURE_ENDPOINT) |
--timeout <duration> | Request timeout, e.g. 30s (AXHUB_TIMEOUT) |
--idempotency-key <UUID> | Idempotency key for agent-safe mutation retries (AXHUB_IDEMPOTENCY_KEY) |
--agent-error-guide | Emit an agent-friendly error guide to stderr |
--otlp-endpoint <URL> | OTLP collector endpoint for opt-in agent telemetry (AXHUB_OTLP_ENDPOINT) |
--completions <shell> | Print shell completions (same as the completion subcommand) |
--json-schema | Export the full CLI surface as a JSON schema — for agents and CI drift checks |
--no-color | Disable colored output (AXHUB_NO_COLOR) |
--trace | Print request traces |
-v, --debug | Debug logs (AXHUB_DEBUG) |
--version | Print the version |
Environment variables without a flag pair
| Variable | Description |
|---|---|
AXHUB_OUTPUT=json | Same as --json |
AXHUB_API_KEY | Inject the PAT value directly (instead of a file) |
AXHUB_DISABLE_AUTOUPDATE=1 | Disable the CLI auto-update check |
AXHUB_ALLOW_UNSIGNED=1 · AXHUB_REQUIRE_COSIGN=1 | Relax/enforce update signature verification (both set → exit 64) |
AXHUB_USE_KEYCHAIN=1 | Force the OS keychain even under --no-input |
AXHUB_INSTALL_DIR | Installer target directory |
AXHUB_LOG | Tracing log filter |
An AXHUB_TOKEN variable is never read. Inject tokens via --token-file (AXHUB_TOKEN_FILE) or a PAT (AXHUB_API_KEY).
Output format
With --json, every result uses the same envelope. status is one of ok · error · dry_run — previews report dry_run, not success.
{ "schema_version": "1", "status": "ok", "data": { /* ... */ } }
{ "schema_version": "1", "status": "error", "error": { "code": "...", "subcode": "...", "fields": [], "resource": "...", "doc_url": "..." } }Agents should branch on error.code / error.subcode and the exit codes below, not on human-readable messages.
Exit codes
| Code | Meaning | What to do |
|---|---|---|
0 | Success | — |
1 | Generic failure | Local I/O, etc. |
2 | Internal init failure (rare) | Retry/diagnose — bad flags or commands exit with 64, not 2 |
4 | Unauthenticated | axhub auth login |
5 | Resource not found | Check the target id/slug |
6 | Rate-limited | Retry later |
7 | API error | Check the message and request_id |
8 | Tenant scope failure | Check the active tenant |
9 | Conflict | Already exists/settled — branch on error.subcode |
10 | Timeout | Retry |
11 | Dry-run blocked | Add --execute |
12 | Domain blocked | Invitation email domain policy violation |
13 | Invitation expired | Send a new invitation |
14 | Update digest mismatch | Tamper signal — abort install, reinstall |
15 | Binary swap failed | Final step of update apply failed — retry or diagnose |
64 | CLI-side usage/validation failure | Fix inputs and retry |
66 | Update policy blocked | Branch on error.subcode (downgrade vs cosign) |
Every command
Generated from the axhub --json-schema output of CLI v0.65.0. All 333 usable commands are here — hidden and internal commands are left out. Under Required, <name> is a positional argument and --name is a flag that takes a value. For flag and argument details, axhub <command> --help is always current.
Mutating commands preview by default. A command marked "dry-run by default" shows you what would change and stops. Add --execute to actually apply it.
Sign-in & your account
| Command | Required | What it does |
|---|---|---|
axhub auth login | — | Sign in via the OAuth device flow |
axhub auth logout | — | Sign out and clear stored credentials |
axhub auth status | — | Show the current authentication status |
axhub auth whoami | — | Show the signed-in user |
axhub auth refresh | — | Refresh the stored OAuth access token |
axhub auth set-name | --name | Change your display name (dry-run by default) |
axhub auth pat issue | — | Issue a personal access token (PAT) |
axhub auth pat list | — | List your PATs |
axhub auth pat revoke | — | Revoke a PAT (dry-run by default) |
axhub auth pat rotate | — | Rotate a PAT — revoke and reissue (dry-run by default) |
axhub auth pat unset | — | Clear the stored PAT |
axhub auth pat use | — | Save a PAT as the active local credential |
axhub auth pat whoami | — | Show who the active PAT authenticates as |
axhub auth oauth client create | --app --name --type | Create an OAuth client (dry-run by default) |
axhub auth oauth client get | <client_id> | Show one OAuth client |
axhub auth oauth consent revoke | <client_id> | Revoke the consent you gave an OAuth client (dry-run by default) |
axhub auth oauth revoke | — | Revoke an OAuth token (dry-run by default) |
axhub auth idp providers | — | List supported identity-provider types |
axhub auth idp test | <provider_id> | Test whether an identity provider's configuration works |
axhub profile add | — | Add a local CLI profile |
axhub profile current | — | Show the active profile |
axhub profile list | — | List profiles |
axhub profile remove | — | Remove a profile |
axhub profile use | — | Switch the active profile |
axhub config explain | — | Explain where the current configuration values come from |
axhub doctor | — | Diagnose config, auth, and backend reachability locally |
Company & people
| Command | Required | What it does |
|---|---|---|
axhub tenants whoami | — | Your membership and role in the active company |
axhub tenants get | — | Show one company by slug or id |
axhub tenants features | — | Show which features are on for the active company |
axhub tenants create | — | Request a new company — the platform policy may send you to console sign-up instead |
axhub tenants restore | <tenant_ref> | Restore a deleted company (dry-run by default) |
axhub members me | — | Your membership details in the active company |
axhub members remove | <member> | Permanently remove a member from the company — irreversible; executing needs --execute --yes (dry-run by default) |
axhub invitations accept | <id> | Accept an invitation you received (dry-run by default) |
axhub invitations directory-join | <tenant_id> | Join a company through a directory (org chart) invitation (dry-run by default) |
axhub tenants invite-links accept | <token> | Join with an invite-link token (dry-run by default) |
axhub tenants invite-links create | — | Create an invite link (dry-run by default) |
axhub tenants invite-links list | — | List invite links |
axhub tenants invite-links preview | <token> | Preview which company an invite-link token leads to |
axhub tenants invite-links revoke | <link_id> | Revoke an invite link (dry-run by default) |
axhub tenants email-login get | — | Show whether email login is allowed |
axhub tenants email-login set | --enabled | Turn email login on or off (dry-run by default) |
axhub tenants directory-auto-join get | — | Show the automatic join setting for people in the org chart |
axhub tenants directory-auto-join set | --enabled | Change the automatic join setting for people in the org chart (dry-run by default) |
axhub tenants directory-auto-deprovision get | — | Show the automatic removal setting for people who leave the org chart |
axhub tenants directory-auto-deprovision set | --enabled | Change the automatic removal setting for people who leave the org chart (dry-run by default) |
axhub tenants app-review-policy get | — | Show the company's app review policy |
axhub tenants app-review-policy set | --first-publish-auto-approve --promote-auto-approve --visibility-auto-max | Replace the company's app review policy — auto-approval for first publish and promote, and the widest auto-approved visibility (dry-run by default) |
axhub tenants review-guidelines get | — | Show the review agent's guidelines |
axhub tenants review-guidelines revision | <hash> | Show one guideline revision by hash |
axhub tenants review-guidelines revisions | — | List guideline revisions |
axhub tenants review-guidelines set | — | Replace or clear the review agent's guidelines (dry-run by default) |
axhub tenants review-path-rules get | — | Show the review's excluded and critical path globs |
axhub tenants review-path-rules set | — | Replace the review's excluded and critical path globs (dry-run by default) |
axhub tenants agents hermes delete | --user | Permanently delete one member's hermes instance and stored volume (dry-run by default) |
axhub tenants agents hermes disable | — | Stop the company from running hermes (dry-run by default) |
axhub tenants agents hermes enable | — | Allow the company to run hermes (dry-run by default) |
axhub tenants agents hermes instances | — | List members' hermes instances |
axhub tenants agents hermes status | — | Show whether the company may run hermes |
axhub tenants agents hermes suspend | --user | Suspend one member's hermes — its stored volume is kept (dry-run by default) |
Member listing, role and group management, sending invitations, SSO (IdP), SCIM, directory connection, and the company icon are hidden in the CLI. They live in the console. → Inviting teammates & roles · SSO & directory
Billing, credits & cost
| Command | Required | What it does |
|---|---|---|
axhub tenants billing summary | — | Estimated billing summary |
axhub tenants billing entitlements | — | Plan entitlements and limits (-1 means unlimited) |
axhub tenants billing credits get | — | Credit balance, warning stage, expected depletion, top-up denominations, and next action |
axhub tenants billing credits status | — | Whether credits are depleted — every member can check, no billing permission needed |
axhub tenants billing credits ledger | — | Credit ledger, one cursor page at a time |
axhub tenants billing credits usage-hours | --date | Hourly credit usage by app for one KST date |
axhub tenants billing credits topup confirm | — | Pay a prepared top-up order — this charges for real (dry-run by default) |
axhub tenants billing credits topup prepare | — | Prepare a credit top-up order — nothing is charged yet (dry-run by default) |
axhub tenants billing credits auto-recharge get | — | Show automatic top-up settings |
axhub tenants billing credits auto-recharge set | — | Change automatic top-up settings (dry-run by default) |
axhub tenants billing credits warning-baseline get | — | Show the percentage-warning baseline |
axhub tenants billing credits warning-baseline set | — | Set or clear the percentage-warning baseline (dry-run by default) |
axhub tenants billing payment-method get | — | Show the registered payment method |
axhub tenants billing payment-method register | — | Register a payment method (Toss billing key) (dry-run by default) |
axhub tenants billing payments | — | Payment history |
axhub tenants billing payments invoice | <payment_id> | The invoice for one payment |
axhub tenants billing tax-invoices | — | Tax-invoice issuance records |
axhub tenants billing business-profile get | — | Show the business profile |
axhub tenants billing business-profile set | --reg-no --name --representative --address --biz-type --biz-item --email | Replace the business profile (dry-run by default) |
axhub cost summary | — | Cost summary for this month (or the month you pass) |
axhub cost months | — | Months that have cost data |
axhub cost by-app | — | Monthly cost by app |
axhub cost by-cost-center | — | Monthly cost by cost center |
axhub cost by-day-by-app | — | Cost by KST day and app |
axhub cost export | — | Export monthly cost as CSV |
axhub cost timeseries | — | Daily cost series for the company or one app |
axhub infra usage | — | Company infrastructure usage |
axhub infra usage-series | --app-id | Infrastructure usage series for one app |
Apps
| Command | Required | What it does |
|---|---|---|
axhub apps list | — | Apps you can access (paginated) |
axhub apps mine | — | Apps you can access |
axhub apps owned | — | Apps you own |
axhub apps received | — | Apps you received (excluding ones you own) |
axhub apps workspace | — | Workspace apps visible to you |
axhub apps search | — | Search apps |
axhub apps discover | — | Browse the company app store |
axhub apps get | — | Show one app by id or slug |
axhub apps create | — | Create an app |
axhub apps check-availability | — | Check whether an app slug is free |
axhub apps update | — | Update an app's metadata (dry-run by default) |
axhub apps fork | <source> --slug --subdomain | Fork an existing app into a new app (dry-run by default) |
axhub apps sign-icon-upload | — | Get a signed URL for uploading an app icon (dry-run by default) |
axhub apps suspend | — | Suspend an app — stops it and closes its address until apps resume (console Suspend) (dry-run by default) |
axhub apps resume | — | Resume a suspended app — dynamic apps redeploy the last production deployment (console Resume) (dry-run by default) |
axhub apps sleep | --app | Put an app to sleep now — a visit or apps wake wakes it (dry-run by default) |
axhub apps wake | --app | Wake a sleeping app (dry-run by default) |
axhub apps sleep-status | --app | Show an app's sleep state |
axhub apps sleep-toggle | --app --toggle | Opt an app in or out of automatic sleep (dry-run by default) |
axhub apps delete | — | Delete an app — removes it from lists and stops it. apps reactivate undoes it within 30 days; after that it is permanently deleted (dry-run by default) |
axhub apps archive | — | Same as apps delete (console Delete) (dry-run by default) |
axhub apps reactivate | — | Undo a delete within 30 days (console Undo delete) (dry-run by default) |
axhub apps purge | — | Permanently delete an already-deleted app now (console Delete now) — irreversible (dry-run by default) |
axhub apps deploy-method | --app --to | Change a static app to docker or compose — one-way, irreversible; executing needs --execute --yes (dry-run by default) |
axhub apps members | — | List an app's members |
axhub apps co-owners list | --app | Show the representative owner and co-owners |
axhub apps co-owners add | --app --user | Add a co-owner (dry-run by default) |
axhub apps co-owners remove | --app --user | Remove a co-owner (dry-run by default) |
axhub apps ownership transfer | --app --to | Hand over the representative owner role — irreversible; executing needs --execute --yes (dry-run by default) |
axhub access check | --app | Show your access to an app |
axhub access grant | --app | Receive an app — grants yourself read access |
axhub access invite | --app --user | Invite someone to an invite-only app (owner/admin) (dry-run by default) |
axhub access revoke | --app | Give up your own access to an app (dry-run by default) |
axhub access uninvite | --app --user | Withdraw an invitation you sent (owner/admin) (dry-run by default) |
axhub apps domains list | --app | List an app's custom domains |
axhub apps domains add | <host> --app | Register a custom domain and print the DNS records to publish (dry-run by default) |
axhub apps domains verify | <domain_id> --app | Re-check DNS and move a domain toward active |
axhub apps domains remove | <domain_id> --app | Detach a custom domain — its certificate is dropped and traffic to it stops immediately (dry-run by default) |
axhub apps resource-presets | — | Backend resource preset catalog |
axhub apps browse-policy get | --app | Show who may view the app's resource values (env vars etc.) |
axhub apps browse-policy set | --app --policy | Change who may view the app's resource values — open, owners_only, or locked (owners and co-owners only) (dry-run by default) |
axhub apps resource-access-logs list | --app | Resource-value views and blocked attempts, newest first |
axhub apps connector-exposure | --app --allowed | Allow or forbid an app to expose database connector capabilities (dry-run by default) |
axhub apps review-policy set | --app | Partially update one app's review-policy overrides (dry-run by default) |
axhub apps inspection-consent get | --app | (Deprecated) Show the legacy inspection-consent record — inspection no longer reads it |
axhub apps inspection-consent set | --app | (Deprecated) Update the legacy inspection-consent record only (dry-run by default) |
axhub init | — | Scaffold axhub.yaml in the current folder |
axhub manifest | — | Parse and validate axhub.yaml |
axhub open | — | Open an app or resource in the browser |
axhub categories get | — | Show one app category |
axhub categories list | — | List app categories |
Code repositories & templates
| Command | Required | What it does |
|---|---|---|
axhub apps templates list | — | List available bootstrap templates |
axhub apps bootstrap | --template --name | Bootstrap a new app from a template or repository (dry-run by default) |
axhub apps bootstrap-status | <bootstrap> | Status of an in-progress bootstrap |
axhub apps detect | — | Detect a GitHub repo's build settings (read-only) |
axhub apps git-backend | --tenant | Before an app exists, show where a new app's code goes in this company (mode, decision, options) |
axhub apps git connect | --repo | Connect a GitHub repository to an app (dry-run by default) |
axhub apps git status | — | An app's git connection (GitHub or AxHub Git) |
axhub apps git update | --branch | Change the connected branch (GitHub-backed apps) (dry-run by default) |
axhub apps git disconnect | — | Disconnect the GitHub repository (rejected for AxHub Git apps) (dry-run by default) |
axhub apps git migrate | — | Move an app's code to an Axhub repository. An app deployed only by folder upload gets an empty repository and keeps running as it is; --wait follows the move to the end (dry-run by default) |
axhub repo clone | — | Resolve an app's repository and clone it with plain git |
axhub repo status | — | An app repository's provisioning status and HTTPS URL |
axhub git setup | — | Configure git credentials for AxHub Git repositories — with --marketplace, connect the company plugin marketplace (Company plugin marketplace) |
axhub github accounts list | — | GitHub accounts and organizations AxHub can see |
axhub github complete | --state --installation-id --repo | Complete the GitHub App installation callback |
axhub github installations repos | --installation-id | Repositories under a GitHub App installation |
axhub github link | — | Link GitHub with a device code, no browser needed |
axhub github repo create | --owner --name | Create a repository with your linked GitHub account (dry-run by default) |
Static hosting
| Command | Required | What it does |
|---|---|---|
axhub apps static deploy | --app --from-dir | Deploy a local folder as a new static release (dry-run by default) |
axhub apps static site get | --app | Show the static-site configuration |
axhub apps static site set | --app | Replace the static-site configuration (dry-run by default) |
axhub apps static site staging disable | --app | Turn off the staging host (dry-run by default) |
axhub apps static site staging enable | --app | Turn on the staging host for release review (dry-run by default) |
axhub apps static site unpublish | --app | Unpublish the static site (dry-run by default) |
axhub apps static releases list | --app | List static releases |
axhub apps static releases create | --app | Create a static release (dry-run by default) |
axhub apps static releases finalize | --app --release-id | Finalize a static release (dry-run by default) |
axhub apps static releases activate | --app --release-id | Activate a static release (dry-run by default) |
axhub apps static releases stage | --app --release-id | Point the staging host at a finalized release — promote it with axhub publish --static-release-id <id> (dry-run by default) |
axhub apps static releases rollback | --app --release-id | Roll back to an earlier static release (dry-run by default) |
axhub apps static releases revoke | --app --release-id | Revoke a static release (dry-run by default) |
axhub apps static auth start | --target | Start auth for a protected static-site URL (OAuth login required) |
Publication requests & review
| Command | Required | What it does |
|---|---|---|
axhub publish | — | Submit a publication request (dry-run by default) |
axhub review history | — | Publication-request history for an app or company |
axhub review get | <request_id> | Show one publication request |
axhub review cancel | <request_id> --app | Cancel a pending publication request (dry-run by default) |
axhub review proceed | <request_id> --app --reason | Send a request blocked by the automated gate on to human review (dry-run by default) |
Approving and rejecting happen in the console — Reviewing apps.
Plugins
| Command | Required | What it does |
|---|---|---|
axhub plugin list | — | Plugin apps in the company marketplace |
axhub plugin download | --app --version --output | Download one exact plugin app version as a ZIP |
axhub plugin install | --app --version --host | Install one exact plugin version into Claude Code or Codex — install with --execute --yes (dry-run by default) |
axhub plugin publish | <path> | Publish a plugin folder, a skill folder, or a single SKILL.md. --submit also requests the publication review after upload; --keep-dir, --exclude, and --executable adjust the packed files. From CLI 0.51.0 the CLI prepares the scoped publishing PAT itself when you're signed in (on 0.50.x, issue one as plugin_pat_required says) (dry-run by default) |
axhub plugin submit | --app --release-version | Request the publication review of an uploaded version (--wait only waits for upload processing) (dry-run by default) |
axhub plugin delist | --app | Delist every published version of a plugin app — executing needs --execute --yes (dry-run by default) |
axhub plugin manage status | --app 또는 <plugin_id> <version_id> | Ingestion, gate, approval, risk, and publication status of one plugin version plus the next action — use --app (+--release-version) for an app plugin, --watch to follow changes |
axhub plugin manage create | <artifact> --name --release-version | Create a registration and its first version (dry-run by default) |
axhub plugin manage delete | <plugin_id> | Delete a registration — executing also needs --yes (dry-run by default) |
axhub plugin manage delist | <plugin_id> | Withdraw all published versions — executing also needs --yes (dry-run by default) |
axhub plugin manage get | <plugin_id> | One registration and its latest version summary |
axhub plugin manage list | — | List company plugin registrations |
axhub plugin manage upload-version | <plugin_id> <artifact> --release-version | Upload a new (immutable) version (dry-run by default) |
axhub plugin manage versions | <plugin_id> | Versions of one registration |
axhub plugin manage manages company plugin registrations with your login instead of a scoped PAT. Error codes from plugin commands (error.code, error.subcode) and what to do are in Company plugin error codes; the steps from installing to the publication review are in the Company plugins quickstart.
Deploy
| Command | Required | What it does |
|---|---|---|
axhub deploy check | — | Check what would make a deployment fail before creating it — unregistered required env vars, uncommitted changes, unpushed commits, an app without a subdomain. Read-only; exits 9 when something blocks |
axhub deploy push | — | Deploy the committed code the way the app's storage needs — Axhub repository push, GitHub push then deploy, or static site upload — picked by the CLI; an app without a repository is moved first with apps git migrate; --wait also checks the result (dry-run by default) |
axhub deploy create | — | Start a deployment (dry-run by default) |
axhub deploy status | — | An app's latest deployment status |
axhub deploy watch | <deployment_id> --app | Watch a deployment until it finishes |
axhub deploy verify | — | Verify that a specific deployment really succeeded |
axhub deploy list | — | Deployment history |
axhub deploy releases | — | Release history |
axhub deploy logs | — | Deployment logs |
axhub deploy cancel | — | Cancel an in-progress deployment (dry-run by default) |
axhub deploy rollback | — | Roll back to the deployment given by --from-deployment (dry-run by default) |
axhub deploy fleet | — | Deploy many apps in parallel (dry-run by default) |
axhub deploy staging disable | — | Turn off the staging environment (dry-run by default) |
axhub deploy staging enable | — | Turn on the staging environment (dry-run by default) |
axhub deploy promote-preflight | --deployment-id | Preview what a promotion would change (no side effects) |
axhub deploy promote retry | — | Retry a failed promotion (dry-run by default) |
axhub deploy inspection get | --deployment-id | A deployment's advisory inspection report |
axhub deploy inspection mark-false-positive | --deployment-id --finding-id | Mark one inspection finding as a false positive (dry-run by default) |
axhub deploy inspection unmark-false-positive | --deployment-id --finding-id | Remove a false-positive mark (dry-run by default) |
axhub deploy scan | — | A deployment's security scan report |
axhub deploy scan report-false-positive | --app --deployment-id --finding-id | Report one scan finding as a false positive (dry-run by default) |
axhub deploy diagnose | <app> | Diagnose a deployed app's rollout health |
axhub deploy doctor | — | Diagnose deployment readiness |
axhub deploy git configure | — | Configure the git deployment connection (dry-run by default) |
axhub deploy git connect | — | Connect to the configured git repository |
axhub deploy git disconnect | — | Disconnect the git repository (dry-run by default) |
axhub deploy git status | — | Git deployment connection status |
axhub deploy codes | — | Deployment status codes and meanings |
axhub deploy explain | — | Explain how config, auth, and the target app were resolved |
Database, files & environment variables
| Command | Required | What it does |
|---|---|---|
axhub db exec | --app --environment --file | Run a SQL file against the app's own database in one transaction — app owners and co-owners, OAuth login required; production also needs --confirm-slug (dry-run by default) |
axhub apps db-backup list | --app | App database backup and restore records (owner/admin) |
axhub apps db-backup settings | --app | Manual-backup limit and automatic schedule |
axhub apps db-backup create | --app | Request a manual backup (dry-run by default) |
axhub apps db-backup delete | <backup_id> --app | Delete a finished manual backup (dry-run by default) |
axhub apps db-backup download | <backup_id> --app --output | Download and verify a completed backup into a new local file |
axhub apps db-backup pin | <backup_id> --app | Keep an automatic backup as a manual backup (dry-run by default) |
axhub apps db-backup restore | <backup_id> --app --confirm-slug | Restore the database from a completed backup (needs --confirm-slug) (dry-run by default) |
axhub apps db-backup schedule | --app --enabled --mode --daily-hour | Replace the automatic-backup schedule (dry-run by default) |
axhub apps db-backup update | <backup_id> --app --note | Change a manual backup's note (dry-run by default) |
axhub apps raw-db disable | --app | Disable the app's raw Postgres database — irreversible (dry-run by default) |
axhub tables list | — | List dynamic tables |
axhub tables get | — | Show one dynamic table |
axhub tables create | — | Create a table from a schema file or --column specs (dry-run by default) |
axhub tables drop | — | Drop a table (dry-run by default) |
axhub tables check-availability | — | Check whether a table name is valid and free |
axhub tables column-types | — | Supported column types |
axhub tables columns add | — | Add a column (dry-run by default) |
axhub tables columns remove | — | Remove a column (dry-run by default) |
axhub tables db-list | — | Raw tables in the app's own database (OAuth required) |
axhub tables db-rows | — | Rows of one raw database table (OAuth required) |
axhub tables grants issue | — | Issue a table access grant (dry-run by default) |
axhub tables grants list | — | List table access grants |
axhub tables grants revoke | — | Revoke a table access grant (dry-run by default) |
axhub tables rows | — | Browse every row of a table (admin view) |
axhub tables rows delete | — | Delete a row (dry-run by default) |
axhub tables rows insert | — | Insert a row (dry-run by default) |
axhub tables rows update | — | Update a row (dry-run by default) |
axhub data count | <table> | Count rows with the same filters as list |
axhub data delete | <table> <id> | Delete a row (dry-run by default) |
axhub data get | <table> <id> | Get one row |
axhub data insert | <table> | Insert a row (--batch for JSONL rows) (dry-run by default) |
axhub data list | <table> | List rows through the /data API |
axhub data update | <table> <id> | Patch a row (dry-run by default) |
axhub apps storage status | --app | App storage provisioning status and access info |
axhub apps storage enable | --app | Provision app storage (dry-run by default) |
axhub apps storage get-url | <key> --app | Issue a download URL for one object |
axhub apps storage ls | --app | List stored objects |
axhub apps storage rm | <key> --app | Delete one object (dry-run by default) |
axhub env list | — | List environment variables — secrets and values blocked by the browse policy show as *** |
axhub env get | — | Get one variable's value |
axhub env set | — | Create a variable (with --from-dotenv it previews; register with --execute) |
axhub env update | — | Update a variable |
axhub env delete | — | Delete a variable (dry-run by default) |
axhub env set-staging-value | — | Set a staging-only value (dry-run by default) |
Connectors, gateway & permissions
| Command | Required | What it does |
|---|---|---|
axhub connectors mine | — | Connectors you can use through a grant |
axhub connectors list | — | Company connectors (admin) |
axhub connectors show | <connector_id> | One connector with its config (admin) |
axhub connectors update | <connector_id> | Change host/port, config, description, or enabled state (admin) (dry-run by default) |
axhub connectors credentials | <connector_id> | Replace credentials and re-probe (admin) (dry-run by default) |
axhub connectors test-connection | <connector_id> | Probe the external system with the stored credentials |
axhub connectors discover | <connector_id> | Run resource discovery now (admin) (dry-run by default) |
axhub connectors resources | <connector_id> | The discovered resource tree |
axhub connectors app-db create | --app | Expose an app's database as a connector (dry-run by default) |
axhub connectors app-db eligible | — | Apps whose database can become a connector |
axhub connectors google finalize | --state --name | Finish Google OAuth and create the connector (dry-run by default) |
axhub connectors google start | — | Start Google OAuth for Drive or BigQuery |
axhub connectors manifest-sync | <connector_id> | Fetch and apply the driver's declared manifest (admin) (dry-run by default) |
axhub gateway session end | <session_id> | End a gateway session |
axhub gateway session start | --connector-id | Start a gateway session (8 hours) |
axhub gateway document-invoke | --session-id --op | Call a document-store operation (dry-run by default) |
axhub gateway file-invoke | --session-id --action | Call Google Drive / file-storage actions (dry-run by default) |
axhub gateway invoke | --session-id --method --path | Call a REST connector endpoint (dry-run by default) |
axhub gateway query | --session-id | Run guarded SQL through a session (dry-run by default) |
axhub authz grants mine | — | Your active grants |
axhub authz grants set-scope | <grant_id> | Replace a grant's resource scope (dry-run by default) |
axhub authz policies list | — | List access policies (row filters, column allow/deny/mask) |
axhub authz policies show | <policy_id> | Show one access policy |
axhub authz presets list | — | List privilege presets |
axhub authz presets show | <preset_id> | Show one preset |
axhub authz subjects list | — | List authorization subjects (groups, org units) |
axhub authz subjects show | <subject_id> | Show one subject |
axhub sites create | --name | Register a private-network site — the agent token is shown once (dry-run by default) |
axhub sites delete | <site_id> | Delete a site (rejected while connectors use it) (dry-run by default) |
axhub sites list | — | List sites |
axhub sites rotate-token | <site_id> | Rotate the site token — connected agents drop (dry-run by default) |
axhub sites show | <site_id> | One site plus agent install guidance |
authz is read-only in the CLI (except authz grants set-scope, which changes a grant's scope) — granting and revoking, creating/editing presets and access policies, attaching them to grants, and registering connectors all happen in the console (Google Drive and BigQuery can also be connected from the CLI). Changing a registered connector's address or password and testing its connection work from the CLI too — see Register and approve connectors › Changing the address or password. In the console you'll find access policies under Connectors & Policies › Access policies › Data scope (rows & columns), grants on the connector's Permissions tab. Row-filter syntax, masking behavior, and how policies combine with presets and scopes are covered in Register and approve connectors › Locking down rows and columns.
AI, notifications & webhooks
| Command | Required | What it does |
|---|---|---|
axhub axrouter status | — | AI availability and your consent per company |
axhub axrouter monitor | — | Turn code-agent (Claude Code, Codex, omp) prompt logging on (--off to turn off) |
axhub axrouter consent | — | Consent to prompt/response body collection (dry-run by default) |
axhub axrouter revoke-consent | — | Withdraw body-collection consent (dry-run by default) |
axhub axrouter revoke | — | Revoke enrollment and turn logging off |
axhub axrouter keys issue | --name | Issue an AXRouter virtual API key — shown once |
axhub axrouter keys list | — | List your virtual keys |
axhub axrouter keys revoke | <key_id> | Revoke a virtual key (dry-run by default) |
axhub sdk recipe | <recipe_id> | Render an SDK recipe, substituted for your app |
axhub sdk search | <query> | Semantic search over SDK knowledge |
axhub sdk validate | — | Statically validate SDK usage in one file |
axhub notifications list | — | List inbox notifications |
axhub notifications prefs list | — | Show the kind×channel delivery matrix |
axhub notifications prefs set | --kind --channel | Change one kind's channels (dry-run by default) |
axhub notifications read | — | Mark a notification read (--all for every one) (dry-run by default) |
axhub relay list | — | List inbound webhook endpoints (Receiving webhooks) |
axhub relay create | --name | Create an endpoint — the key is shown once |
axhub relay delete | <endpoint_id> | Close an endpoint — irreversible (dry-run by default) |
axhub relay deliveries | <endpoint_id> | Recent deliveries (status, attempts, response code) |
axhub relay replay | <endpoint_id> <delivery_id> | Replay one delivery (dry-run by default) |
axhub relay rotate-key | <endpoint_id> | Rotate the key (--environment staging for the staging key only) (dry-run by default) |
axhub agents hermes down | — | Delete your hermes instance and its stored volume (dry-run by default) |
axhub agents hermes status | — | Your hermes instance state |
axhub agents hermes up | — | Start your hermes instance (dry-run by default) |
axhub axrouter keys requires an OAuth login (axhub auth login). Since v0.28.0 it obtains a 10-minute workspace-pinned console token via RFC 8693 token exchange, so a PAT (AXHUB_API_KEY) alone won't work. When both exist, the stored OAuth token is used automatically.
Tools & diagnostics
| Command | Required | What it does |
|---|---|---|
axhub update apply | — | Install the latest release (dry-run by default) |
axhub update check | — | Check for a newer release |
axhub whatsnew | — | CLI release notes |
axhub changelog | — | AxHub announcements and release changelog |
axhub completion bash | — | Print the bash completion script |
axhub completion fish | — | Print the fish completion script |
axhub completion powershell | — | Print the PowerShell completion script |
axhub completion zsh | — | Print the zsh completion script |
axhub cache clear | — | Clear the local schema cache |
axhub dev | — | Local reverse proxy on 127.0.0.1 that forwards to a target URL |
axhub feedback | --message | Report a CLI failure with diagnostics (--dry-run to preview) |
axhub support diagnose | — | Collect a redacted diagnostics bundle for support |
axhub tui | — | Interactive terminal dashboard |
Migrating from older versions
- Removed commands —
axhub resources,catalog,status, andenginesno longer exist as of v0.24 (rejected with exit64). Useconnectors resources/gatewayfor catalog & resource browsing, anddeploy statusfor deployment state. - Commands not listed above — commands hidden even from help (such as
auditandemail-domains), the platform-operator-onlyadmin, and the shell-completion internalcompletion-dataare not covered in the public reference. - Commands that moved —
axhub deploy promoteis now a command group: retry a failed promotion withdeploy promote retry, and promote a static release withaxhub publish --static-release-id <id>.axhub apps raw-dbkeeps onlyapps raw-db disable; run SQL withaxhub db execand manage backups withaxhub apps db-backup.