cub noun groups, cub mini, and plain cubWhat 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.
| CLI / plugin | Stage | Purpose |
|---|---|---|
cub env · cub bundle · cub agent · cub repo · cub secret · cub inbox · cub local (alias: cub mini) | Zero Hub → Local Hub → Cloud Hub | The 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. |
cub | Local Hub & Cloud Hub | Full 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 Hub | Render & track third-party or custom Helm charts while preserving custom overrides across chart upgrades (Your own Helm chart). |
cub argo (confighub/examples) | Zero / Local / Remote | Read-only Argo CD estate planning (cub argo plan .) and GitOps onboarding. |
cub config | Zero / Local / Remote | Local 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).
| Noun group | Stage | Canonical commands | Plain cub equivalent | What it does |
|---|---|---|---|---|
cub env | Zero Hub (+ Hub preview) | cub env share, cub env join | Nothing yet | Share 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 env | Zero 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-exit | Nothing yet | Boots 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 env | Local / Cloud Hub | cub env preview [--staging|--production], cub env keep-preview, cub env try APP NAME [--from staging|live] [--keep --change-desc WHY | --drop], cub env tries APP | cub space create, cub unit create, cub function set --change-desc, cub changeorder create, cub space delete | Runs 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 bundle | Zero Hub | cub bundle init, cub bundle validate, cub bundle build --out PATH, cub bundle inspect PATH [--digest-only], cub bundle podspec | Nothing yet | New 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 agent | Zero Hub | cub 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 setup | Nothing yet | Cross-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 agent | Local / Cloud Hub | cub 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 permissions | Puts 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 repo | Zero → Local / Remote | cub 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 WHY | Nothing yet | Read-only GitOps map (inventory), PR/change review, cluster drift inspection, 1-file MIT starter export, and proposing shared starters |
cub repo | Local / Cloud Hub | cub 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 / needs | cub 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 upgrade | Connects 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 secret | Local / Cloud Hub | cub 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 + View | Stores 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 inbox | Local / Cloud Hub | cub inbox list [--card] [--commands], cub inbox approve [BASE/ORDER or SPACE] [--note WHY], cub inbox refuse [BASE/ORDER or SPACE] --reason WHY, cub inbox review | cub changeorder list, cub variant approve BASE --change-order BASE/ORDER --note WHY, cub variant promote, cub changeorder update --aborted-reason WHY | Unified 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 local | Local ↔ Cloud | cub 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 moves | Runs 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).
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:
cub resource list --where ... — query live resources, drift, and configuration fields across Spaces and clusters.cub unit blame UNIT --space SPACE — trace which base, environment override, revision, and reason supplied each field in a Unit.cub unit set-guard UNIT --space SPACE --guard "RESOURCE_TYPE:RESOURCE_NAME:PATH=KEY=VALUE" — attach path-level guards on a Unit (for example --guard ":api:spec.template.spec.containers.*.image=Compliance=Locked") so protected fields require clearance before edits or merges overwrite them.cub audit report SpaceChanges --space SPACE --since TIMESTAMP — export structured change audit logs across a Space.The words on this page, such as hub, base and change order, are explained in the glossary.