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

macOS
curl -fsSL https://cli.axhub.ai/install.sh | bash
axhub --version
Windows PowerShell
irm https://cli.axhub.ai/install.ps1 | iex
axhub --version

Global options

These work on any command; most can also be set via environment variables.

OptionDescription
--profile <name>Profile to use (AXHUB_PROFILE)
--tenant <tenant>Target tenant (AXHUB_TENANT)
--jsonJSON 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, --yesAuto-approve non-destructive confirmation prompts (AXHUB_YES)
--no-inputDisable interactive input — for agents/CI (AXHUB_NO_INPUT)
--non-interactiveFully non-interactive mode (AXHUB_NON_INTERACTIVE)
--no-keychainUse 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-endpointAllow 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-guideEmit 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-schemaExport the full CLI surface as a JSON schema — for agents and CI drift checks
--no-colorDisable colored output (AXHUB_NO_COLOR)
--tracePrint request traces
-v, --debugDebug logs (AXHUB_DEBUG)
--versionPrint the version

Environment variables without a flag pair

VariableDescription
AXHUB_OUTPUT=jsonSame as --json
AXHUB_API_KEYInject the PAT value directly (instead of a file)
AXHUB_DISABLE_AUTOUPDATE=1Disable the CLI auto-update check
AXHUB_ALLOW_UNSIGNED=1 · AXHUB_REQUIRE_COSIGN=1Relax/enforce update signature verification (both set → exit 64)
AXHUB_USE_KEYCHAIN=1Force the OS keychain even under --no-input
AXHUB_INSTALL_DIRInstaller target directory
AXHUB_LOGTracing 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

CodeMeaningWhat to do
0Success—
1Generic failureLocal I/O, etc.
2Internal init failure (rare)Retry/diagnose — bad flags or commands exit with 64, not 2
4Unauthenticatedaxhub auth login
5Resource not foundCheck the target id/slug
6Rate-limitedRetry later
7API errorCheck the message and request_id
8Tenant scope failureCheck the active tenant
9ConflictAlready exists/settled — branch on error.subcode
10TimeoutRetry
11Dry-run blockedAdd --execute
12Domain blockedInvitation email domain policy violation
13Invitation expiredSend a new invitation
14Update digest mismatchTamper signal — abort install, reinstall
15Binary swap failedFinal step of update apply failed — retry or diagnose
64CLI-side usage/validation failureFix inputs and retry
66Update policy blockedBranch 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

CommandRequiredWhat 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--nameChange 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 --typeCreate 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

CommandRequiredWhat 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--enabledTurn 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--enabledChange 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--enabledChange 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-maxReplace 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--userPermanently 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--userSuspend 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

CommandRequiredWhat 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--dateHourly 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 --emailReplace 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-idInfrastructure usage series for one app

Apps

CommandRequiredWhat 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 --subdomainFork 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--appPut an app to sleep now — a visit or apps wake wakes it (dry-run by default)
axhub apps wake--appWake a sleeping app (dry-run by default)
axhub apps sleep-status--appShow an app's sleep state
axhub apps sleep-toggle--app --toggleOpt 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 --toChange 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--appShow the representative owner and co-owners
axhub apps co-owners add--app --userAdd a co-owner (dry-run by default)
axhub apps co-owners remove--app --userRemove a co-owner (dry-run by default)
axhub apps ownership transfer--app --toHand over the representative owner role — irreversible; executing needs --execute --yes (dry-run by default)
axhub access check--appShow your access to an app
axhub access grant--appReceive an app — grants yourself read access
axhub access invite--app --userInvite someone to an invite-only app (owner/admin) (dry-run by default)
axhub access revoke--appGive up your own access to an app (dry-run by default)
axhub access uninvite--app --userWithdraw an invitation you sent (owner/admin) (dry-run by default)
axhub apps domains list--appList an app's custom domains
axhub apps domains add<host> --appRegister a custom domain and print the DNS records to publish (dry-run by default)
axhub apps domains verify<domain_id> --appRe-check DNS and move a domain toward active
axhub apps domains remove<domain_id> --appDetach 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--appShow who may view the app's resource values (env vars etc.)
axhub apps browse-policy set--app --policyChange 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--appResource-value views and blocked attempts, newest first
axhub apps connector-exposure--app --allowedAllow or forbid an app to expose database connector capabilities (dry-run by default)
axhub apps review-policy set--appPartially 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

CommandRequiredWhat it does
axhub apps templates list—List available bootstrap templates
axhub apps bootstrap--template --nameBootstrap 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--tenantBefore an app exists, show where a new app's code goes in this company (mode, decision, options)
axhub apps git connect--repoConnect 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--branchChange 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 --repoComplete the GitHub App installation callback
axhub github installations repos--installation-idRepositories under a GitHub App installation
axhub github link—Link GitHub with a device code, no browser needed
axhub github repo create--owner --nameCreate a repository with your linked GitHub account (dry-run by default)

Static hosting

CommandRequiredWhat it does
axhub apps static deploy--app --from-dirDeploy a local folder as a new static release (dry-run by default)
axhub apps static site get--appShow the static-site configuration
axhub apps static site set--appReplace the static-site configuration (dry-run by default)
axhub apps static site staging disable--appTurn off the staging host (dry-run by default)
axhub apps static site staging enable--appTurn on the staging host for release review (dry-run by default)
axhub apps static site unpublish--appUnpublish the static site (dry-run by default)
axhub apps static releases list--appList static releases
axhub apps static releases create--appCreate a static release (dry-run by default)
axhub apps static releases finalize--app --release-idFinalize a static release (dry-run by default)
axhub apps static releases activate--app --release-idActivate a static release (dry-run by default)
axhub apps static releases stage--app --release-idPoint 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-idRoll back to an earlier static release (dry-run by default)
axhub apps static releases revoke--app --release-idRevoke a static release (dry-run by default)
axhub apps static auth start--targetStart auth for a protected static-site URL (OAuth login required)

Publication requests & review

CommandRequiredWhat 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> --appCancel a pending publication request (dry-run by default)
axhub review proceed<request_id> --app --reasonSend 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

CommandRequiredWhat it does
axhub plugin list—Plugin apps in the company marketplace
axhub plugin download--app --version --outputDownload one exact plugin app version as a ZIP
axhub plugin install--app --version --hostInstall 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-versionRequest the publication review of an uploaded version (--wait only waits for upload processing) (dry-run by default)
axhub plugin delist--appDelist 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-versionCreate 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-versionUpload 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

CommandRequiredWhat 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> --appWatch 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-idPreview 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-idA deployment's advisory inspection report
axhub deploy inspection mark-false-positive--deployment-id --finding-idMark one inspection finding as a false positive (dry-run by default)
axhub deploy inspection unmark-false-positive--deployment-id --finding-idRemove 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-idReport 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

CommandRequiredWhat it does
axhub db exec--app --environment --fileRun 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--appApp database backup and restore records (owner/admin)
axhub apps db-backup settings--appManual-backup limit and automatic schedule
axhub apps db-backup create--appRequest a manual backup (dry-run by default)
axhub apps db-backup delete<backup_id> --appDelete a finished manual backup (dry-run by default)
axhub apps db-backup download<backup_id> --app --outputDownload and verify a completed backup into a new local file
axhub apps db-backup pin<backup_id> --appKeep an automatic backup as a manual backup (dry-run by default)
axhub apps db-backup restore<backup_id> --app --confirm-slugRestore the database from a completed backup (needs --confirm-slug) (dry-run by default)
axhub apps db-backup schedule--app --enabled --mode --daily-hourReplace the automatic-backup schedule (dry-run by default)
axhub apps db-backup update<backup_id> --app --noteChange a manual backup's note (dry-run by default)
axhub apps raw-db disable--appDisable 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--appApp storage provisioning status and access info
axhub apps storage enable--appProvision app storage (dry-run by default)
axhub apps storage get-url<key> --appIssue a download URL for one object
axhub apps storage ls--appList stored objects
axhub apps storage rm<key> --appDelete 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

CommandRequiredWhat 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--appExpose 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 --nameFinish 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-idStart a gateway session (8 hours)
axhub gateway document-invoke--session-id --opCall a document-store operation (dry-run by default)
axhub gateway file-invoke--session-id --actionCall Google Drive / file-storage actions (dry-run by default)
axhub gateway invoke--session-id --method --pathCall a REST connector endpoint (dry-run by default)
axhub gateway query--session-idRun 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--nameRegister 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

CommandRequiredWhat 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--nameIssue 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 --channelChange 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--nameCreate 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

CommandRequiredWhat 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--messageReport 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, and engines no longer exist as of v0.24 (rejected with exit 64). Use connectors resources / gateway for catalog & resource browsing, and deploy status for deployment state.
  • Commands not listed above — commands hidden even from help (such as audit and email-domains), the platform-operator-only admin, and the shell-completion internal completion-data are not covered in the public reference.
  • Commands that moved — axhub deploy promote is now a command group: retry a failed promotion with deploy promote retry, and promote a static release with axhub publish --static-release-id <id>. axhub apps raw-db keeps only apps raw-db disable; run SQL with axhub db exec and manage backups with axhub apps db-backup.