ConfigHub · Durable config for coding agents
Docs / docs/cub-mini-and-cub.md Source on GitHub →

The 7 canonical cub noun groups, cub mini, and plain cub

What you do in Zero Hub (offline plugin), on a Local Hub on your laptop, and on a Cloud Hub (confighub.com or self-hosted Helm) all share one command model: 7 canonical cub <noun> <verb> groups (cub env, cub bundle, cub agent, cub repo, cub secret, cub inbox, cub local). Each hub-backed command runs plain cub's own commands underneath and fills in the rest of the request for you—so except where the table says "Nothing yet", you can do everything shown with plain cub on any ConfigHub hub.

Compatibility note: cub mini ... remains a silent compatibility alias for every command below.

The walkthrough the cub mini commands uses the core commands on one small app, with what each prints and the plain cub commands next to it.

Which CLI does what?

CLI / pluginStagePurpose
cub env · cub bundle · cub agent · cub repo · cub secret · cub inbox · cub local (alias: cub mini)Zero Hub → Local Hub → Cloud HubThe 7 canonical noun groups covering cross-session change memory, locks/undo, OCI Config Bundles, in-memory env sharing, previews, staging/prod adoption, secrets, Decision Inbox approvals (cub inbox list/approve/refuse), and local↔remote hub moves.
cubLocal Hub & Cloud HubFull ConfigHub CLI for any hub (local, hosted on confighub.com, or self-hosted Helm): resource list, unit blame, unit set-guard, variant approve, release publish, audit report.
cub helm (confighub/cub-helm)Local / Cloud HubRender & track third-party or custom Helm charts while preserving custom overrides across chart upgrades (Your own Helm chart).
cub argo (confighub/examples)Zero / Local / RemoteRead-only Argo CD estate planning (cub argo plan .) and GitOps onboarding.
cub configZero / Local / RemoteLocal Kubernetes/Helm values inspection (cub config values, cub config diff).

Reason flag convention: --change-desc records why on edits/uploads (cub repo set, cub repo upload, cub secret set, cub env try --keep); --note records why on approvals (cub inbox approve); --reason records why on refusals, locks, and rollbacks (cub inbox refuse, cub agent lock, cub repo rollback).

The 7 canonical noun groups

Noun groupStageCanonical commandsPlain cub equivalentWhat it does
cub envZero Hub (+ Hub preview)cub env share, cub env joinNothing yetShare a working staging env + X25519-sealed test keys (Tier 2) or revocable Tier 3 ch_proxy_ tokens straight into child process memory with zero .env on disk (agentauth-server; hosted confighub.com relay Provisional)
cub envZero Hub (+ Hub preview)cub env exec [--app NAME] [--env ENV] [--mode test] [--connections PATH] [--conn NAME=MODE:REF] [--capture] -- CMD, cub env shell --capture-on-exitNothing yetBoots a command, persistent shell, or sandbox (nono, Daytona) with staging defaults and .confighub/connections.yaml (env://, 1password://, vault://), refuses sk_live_* and prod refs before boot in test/sandbox/staging, and captures scrubbed diffs into cub inbox list
cub envLocal / Cloud Hubcub env preview [--staging|--production], cub env keep-preview, cub env try APP NAME [--from staging|live] [--keep --change-desc WHY | --drop], cub env tries APPcub space create, cub unit create, cub function set --change-desc, cub changeorder create, cub space deleteRuns an app locally or in a sandbox with staging/production settings without changing repo files, or opens an isolated APP-try-NAME copy that you can keep or drop
cub bundleZero Hubcub bundle init, cub bundle validate, cub bundle build --out PATH, cub bundle inspect PATH [--digest-only], cub bundle podspecNothing yetNew 12-Factor structured YAML + deterministic, digest-pinned OCI Config Bundles (Kubernetes 1.36+ volumes[].image, past etcd's 1 MiB ConfigMap cap), blocking leaked secrets fail-closed
cub agentZero Hubcub agent why KEY [--card] [--vercel production], cub agent changes [--summary] [--verify] [--forget] [--export-md FILE | --export-html FILE], cub agent card, cub agent lock KEY [--reason WHY | --unlock KEY | --list], cub agent undo [--dry-run], cub agent halt, cub agent permissions, cub agent checks [off|log|warn|repeats|ask], cub agent setupNothing yetCross-session change memory, signed record verification, secret-redacted diff exports, personal PreToolUse field locks, config-only undo, emergency halt, Claude/Codex permissions & MCP watch levels, and Codex hook setup
cub agentLocal / Cloud Hubcub agent require-approval COMPONENT --variant V --agent NAME, cub agent reach NAME, cub agent revoke NAME, cub agent auth [--server URL]cub changeworkflow create, cub component update, cub serviceaccount create and key add, Space permissionsPuts production behind human approval and gives an agent a scoped proposer key (cannot approve or read secrets), audits what a key can reach, revokes it, or bootstraps Ed25519 identity (auth Provisional)
cub repoZero → Local / Remotecub repo inventory [DIR], cub repo review, cub repo drift --dir DIR, cub repo starter-export --out starter.yaml, cub repo starter propose NAME FILE --change-desc WHYNothing yetRead-only GitOps map (inventory), PR/change review, cluster drift inspection, 1-file MIT starter export, and proposing shared starters
cub repoLocal / Cloud Hubcub repo adopt DIR [--name NAME] [--pattern APP] [--dry-run], cub repo upload FOLDER --variant V, cub repo set APP KEY=VALUE --variant V --change-desc WHY, cub repo deliver [--compare --card], cub repo rollback SPACE --change-order BASE/ORDER --reason WHY, cub repo upgrade PATTERN-base/app, cub repo status, cub repo receipts, cub repo deploy-from-hub, cub repo back-to-git, cub repo need / provide / needscub component create, cub space create, cub unit create, cub variant create/upload/promote, cub function set --protect --change-desc, cub changeworkflow create, cub changeorder create, cub link create, cub unit upgradeConnects an app (.env, Terraform, Kustomize) into APP-base, APP-staging, and approval-gated APP-live; sets or uploads values with reasons; delivers and compares 1:1 against live hosts; manages service needs/providers, upgrades, rollbacks, and clean return to Git
cub secretLocal / Cloud Hubcub secret set APP KEY[=VALUE] --variant V --change-desc WHY, cub secret list APP --variant V, cub secret files APP --variant V --dir DIR, cub secret pull COMPONENT --variant V --dir DIR, cub secret pull-key NAME COMPONENT --variant V [--secrets]Separate APP-V-secrets Space, cub unit data, cub serviceaccount create + ViewStores secrets under the owner's key where scoped agent keys have zero read rights, mints minimal runtime pull keys, and writes approved config/secrets to target machines
cub inboxLocal / Cloud Hubcub inbox list [--card] [--commands], cub inbox approve [BASE/ORDER or SPACE] [--note WHY], cub inbox refuse [BASE/ORDER or SPACE] --reason WHY, cub inbox reviewcub changeorder list, cub variant approve BASE --change-order BASE/ORDER --note WHY, cub variant promote, cub changeorder update --aborted-reason WHYUnified Decision Inbox across Local Hub and Cloud Hub: lists pending proposals and captured sandbox handoffs, shows the exact diff before asking, and approves/promotes or refuses with a remembered reason
cub localLocal ↔ Cloudcub local start, cub local stop, cub local status, cub local uninstall [--delete-data], cub local connect, cub local offer, cub local copy [--to-dir | --from-git | --to-file | --from-file], cub local to-hub [--yes], cub local start-from [APP [FOLDER]]cub server install (for start); Nothing yet for hub-to-hub movesRuns and manages the free Local Hub + PostgreSQL on 127.0.0.1 (no Docker), exports/imports plain files or bundles with full reasons, starts a new app from an existing app, and graduates work up to a Cloud Hub

Where the table says "Nothing yet", plain cub has no direct equivalent—the plugin binary provides those Zero Hub and local↔remote hub workflows (and core cub dispatches all 7 nouns directly to the plugin when installed).

Team & Kubernetes fleet cub commands (Cloud Hub)

When working across Cloud Hubs, teams, and Kubernetes fleets, plain cub adds fleet query, lineage, audit, and field-guard commands alongside the 7 noun groups above:

The words on this page, such as hub, base and change order, are explained in the glossary.