Skip to content
ConfigHub for coding agents
Reference / docs/cub-mini-and-cub.md Source on GitHub

cub mini and plain cub

What you do with the local hub on your laptop works the same on your organization's shared hub, because it is the same ConfigHub server and the same cub, ConfigHub's command-line tool. Each cub mini command runs cub's own commands and fills in the rest of the request for you. So, except where the table says "Nothing yet", you can do everything shown with cub mini in plain cub, on any ConfigHub. The table lists which cub commands each cub mini command stands for.

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

Which CLI does what?

CLI / pluginPurpose
cub mini (alias: confighub mini)Canonical local-hub & coding-agent helper (adopt, set, waiting, approve BASE/ORDER, lock, undo, deliver --compare).
cubFull 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.
cub helm (confighub/cub-helm)Render & track third-party or custom Helm charts while preserving custom overrides across chart upgrades (Your own Helm chart).
cub argo (confighub/examples)Read-only Argo CD estate planning (cub argo plan .) and GitOps onboarding.
cub configLocal Kubernetes/Helm values inspection (cub config values, cub config diff).

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

cub miniPlain cubWhat cub mini fills in
cub mini installcub server installThe server and its PostgreSQL run as processes on this machine, with no Docker and no Kubernetes
cub mini upload FOLDER --variant Vcub component create, cub space create, cub unit create, cub variant create (or cub variant upload); where a copy waits for approval, cub function set --change-desc on the base and cub changeorder createThe Component is named after the folder. The base and the copy are made. The copy is aimed at the hub's cluster, when there is one. Where a copy takes changes only once approved, the files' changed values are set in the base with the reason and asked for with a change order of this upload's own, so two agents uploading at once, in the same second included, each get an order that describes their own change. Changed means changed in this folder: .confighub-app, which adopt writes and you commit, notes what the files last matched in the hub, and only a value that differs from it is proposed, so a clone proposes only what it changed. A copy that takes changes now, such as staging, has them at once, except a value it keeps as its own, and the upload says which. A file that is one environment's own, .env.staging or staging.tfvars, is set as that copy's own values instead. For an app adopted from a Kustomize repository, the repository is rendered as adopt renders it: what the base renders differently is proposed field by field, what each overlay now sets differently is that copy's own, and a resource an overlay adds stays in the repository, named. With --dry-run, it says what it would set and propose, and changes nothing
cub mini adopt DIR [--name NAME] [--pattern APP] [--dry-run]cub component create, cub space create, cub unit create, cub variant create, cub function set --protect for each copy's own values, and cub changeworkflow create for the live copyAn app from what the folder reads at start: .env or app.env, a compose file's environment, .env.example, and the settings the code reads, with their defaults; or a Terraform folder's common.tfvars. Three Spaces: APP-base; APP-staging, with the values now; and APP-live, which takes them only once you approve. A .env.staging or staging.tfvars is staging's own values from the start, .env.production or prod.tfvars live's. A secret's value is left out and named. Your files are not changed, and .confighub-app is written beside them. With --pattern APP, the app is made from an app already in the hub, keeps its own values, and takes what that app changes next with cub mini upgrade APP-base/app
cub mini adopt DIR on a Kustomize repositoryThe samebase/, as kustomize renders it, becomes APP-base. What overlays/staging changes becomes staging's own values, field by field, and what the prod, production or live overlay changes, or the one an Argo CD Application deploys, becomes live's
cub mini try APP NAME [--from staging|live], --keep --change-desc WHY, --dropA Space of its own, APP-try-NAME, made with cub space create and cub unit create from staging's Unit, or live's; --keep is cub function set --change-desc on the base and staging and cub changeorder create for live; --drop is cub space deleteA copy of the app for one try, that nothing in staging or live takes from. It prints how to change it, cub mini set APP KEY=VALUE --variant try-NAME. --keep gives what the copy holds differently to the base with the reason and to staging at once, puts it behind a change order for live, and removes the copy. --drop removes the copy and says what it held
cub mini tries APPcub space list, cub unit dataEach try of the app: how old it is, what it was made from, and what it holds differently
cub mini provide NAME KIND KEY=VALUE --for staging|live --change-desc WHYcub space create services and cub unit create --space services NAME; for a copy behind approval, cub changeorder createA service that provides postgres, redis, s3 or mail, registered as services/NAME for one copy, or for any. A value that holds a password or a token is refused, naming cub mini secret set. Every copy that needs KIND and has no provider takes it. Registered again, its new values reach every copy that takes changes at once, such as staging; a copy behind approval, such as live, keeps what was approved, and the new values are proposed to it with a change order that waits for you. An agent's key may not register a provider
cub mini need APP KIND [--variant V] [--provider NAME]cub function set on the base for each setting, and cub link create from each copy to its provider; for a copy behind approval, cub changeorder createThe base names the settings KIND is read by (DATABASE_URL, REDIS_URL, ...) with no value yet. A copy that takes changes at once, such as staging, takes its own provider's values as its own, and follows the provider when it changes. A copy behind approval, such as live, is written nothing: its provider's values are proposed with a change order of their own, which cub mini waiting lists and cub mini approve puts in. A later version of the base does not overwrite them. A copy with no provider says what it needs. An agent's key can run it, and so propose
cub mini needs [APP]cub link list, cub unit dataWhat each copy needs, from which provider, what waits for approval, and what is still unmet
cub mini set APP KEY=VALUE --variant V --change-desc WHY (or COMPONENT FUNCTION ARG)cub function set --space COMPONENT-V --unit UNIT FUNCTION ARGThe Space and Unit are found. The value is marked as kept, so a later version does not replace it. The reason is recorded beside it
cub mini promote COMPONENT-Vcub variant promote COMPONENT-V. Where the Component takes changes only by change order, as it does once production waits for approval, five: cub space update --label, cub changeworkflow create and cub component update --allowed-change-workflow for the copy's stage, then cub changeorder create and cub variant promote. Plus cub release publish COMPONENT-V only where the copy has a release targetThe preview shows each value taken and each value kept. Where the copy has a release target, the result is released to the cluster
cub mini require-approval COMPONENT --variant V --agent NAMEcub changeworkflow create, cub component update, cub serviceaccount create and key add, and permissions on each SpaceThe whole approval gate in one step, plus the agent's own cub configuration and its Claude Code settings. The agent may change the base and each copy that takes changes at once, such as staging, and propose; it cannot write, approve or promote into a copy behind approval, or read a secret, whatever order the copies were put behind approval in. The command says which copies each agent may change, and when one it could change at once is now behind approval, it says the agent no longer can. Approvals shows the same steps with plain cub
cub mini reach NAMEcub space list and the permissions on each Space, Unit and Component, asked of the hub with the agent's keyWhat one agent's key reaches, right by right: which Spaces and Units it can change, and how many it can only read. What is at risk if the key is taken
cub mini pull-key NAME COMPONENT --variant V [--secrets]cub serviceaccount create, cub serviceaccount key add, and View on the variant's SpaceA key for the machine that runs the service, with the right to read that one copy and nothing else; with --secrets, also that copy's secrets, COMPONENT-V-secrets
cub mini secret set APP KEY[=VALUE] --variant V --change-desc WHY, cub mini secret list APP --variant V, cub mini secret files APP --variant V --dir DIRA Space of its own, APP-V-secrets, holding one Unit, secrets, made with cub space create and cub unit create; files reads it as cub unit data doesA secret the app reads when it runs, kept under your key, which no agent's key is given a right to: the agent that require-approval --agent made can change the base and propose, and cannot read it. With no =VALUE, the value is read from standard input, so that it is on no command line. The app's settings name it, KEY_FILE=/run/secrets/APP/KEY, never its value. files writes each secret as DIR/KEY, readable by that user only, on the machine that runs the app, with a key from pull-key --secrets. list names the secrets and who may read them, and never prints a value
cub mini pull COMPONENT --variant V --dir DIRcub unit list, then cub revision data for each listed revisionOn the machine that runs the service: the copy written as its files, the hub's marker left out, the service restarted with --restart only when a file changed; --timer 30s makes it a systemd timer
cub mini waitingcub changeorder list, cub space listEach change order still on its way, what it is for, and the command that approves it
cub mini approve [BASE/ORDER or SPACE]cub variant approve BASE --change-order BASE/ORDER --note WHY with what you read kept as claims, then cub mini promote SPACE --change-order BASE/ORDERShows the change first and asks; one command where cub needs two
cub mini refuse [BASE/ORDER or SPACE] --reason WHYcub changeorder update ORDER --space BASE --aborted-reason WHYNames the change the way cub mini waiting does
cub mini copy --to-dir, --from-git, --to-file, --from-file [--name NAME]Nothing yetWrites the work out as plain files, with a CHANGES.md that says why each value is set. Reads it back in from Git, with each commit's reason. Moves it between hubs, as a file that carries every kept value's reason whole; a copy that fails leaves nothing behind. --from-file FILE --name NAME takes in a setup someone shared under a name of its own, NAME-base, NAME-staging, ..., and prints the next step, cub mini adopt FOLDER --pattern NAME, which makes your own app from it
cub mini connect, offer, offersNothing yetMakes the organization's shared hub the parent of a local hub's work, and offers changes up to it
cub mini lock KEY [--reason WHY] [--unlock KEY] [--list]Nothing yetPersonal field lock enforced in PreToolUse so agents cannot overwrite locked settings; unlock anytime with --unlock
cub mini undo [TARGET] [--dry-run]Nothing yetConfig-only undo: reverts tracked settings recorded in the local journal without resetting code edits
cub mini cardNothing yetCompact ASCII status card of recorded settings, personal locks, and recent reasons in this folder
cub mini exec [--app NAME] [--env ENV] [--mode test] [--connections PATH] [--conn NAME=MODE:REF] [--capture] [--list] -- CMDNothing yetBoots a command or sandbox (nono, Daytona) with .confighub/connections.yaml (env://, 1password://, vault://), refuses sk_live_* and prod refs before boot in test/sandbox/staging, and captures scrubbed diffs into cub mini waiting
cub mini waiting [--card] [--commands]cub changeorder list, cub space listWith --card, shows the compact Decision Inbox (⏳ waiting) across hub orders and captured sandbox handoffs
cub mini deliver --compare --cardNothing yetCompares the approved revision 1:1 against the live target host (✓ match or ⚠ drifted), keeping host secrets hidden
cub mini changes --why KEY | --forget | --verify | --export-md FILE | --export-html FILE | --upload-diff URLNothing yetExplains any tracked setting, forgets a folder's record (--forget), verifies signed entries (--verify), or exports a secret-redacted Markdown/HTML diff report. --upload-diff URL is Provisional (do not run: preview contract not yet live on confighub.com)
cub mini rollback SPACE --change-order BASE/ORDER --reason WHYcub changeorder create restoring the prior revisionProposes rolling back an approved change order in the base while holding production behind your approval
cub mini upgrade PATTERN-base/appcub unit upgradePulls shared base/starter updates into linked apps while preserving each app's own overrides and reasons
cub mini uninstall [--delete-data]Nothing yetStops and removes the local hub binary and (with --delete-data) its local PostgreSQL state
confighub env exec / confighub env shell --capture-on-exitAlias of cub mini execRuns a sandboxed command or persistent shell with staging defaults pulled at boot and diffs captured on exit/SIGTERM
cub mini agent-auth [--server URL] [--agent NAME]Nothing yetProvisional (do not run: preview contract not yet live on confighub.com): bootstraps a zero-install Ed25519 agent identity against a hosted /auth.md endpoint

Where the table says "Nothing yet", plain cub has no equivalent, and only cub mini does it for now. These are the commands that carry work between hubs: out to files and Git, and up from a hub of your own to your organization's shared hub.

Team & Kubernetes fleet cub commands

When working across shared hubs, teams, and Kubernetes fleets, plain cub adds fleet query, lineage, and field-guard commands alongside the cub mini helpers 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.

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