CLI Overview
The wh CLI is the primary human interface for interacting with WarmHub. It covers all operations — creating repos, writing data, querying state, and bootstrapping agent context.
Installation
Section titled “Installation”The CLI requires Node 22+.
npm install -g @warmhub/cliwh --versionAfter installing, wh is available everywhere. See the Quickstart for the full walkthrough.
Everyday Use
Section titled “Everyday Use”Use wh use to set the repo for a working directory, pass --repo org/name when a script should be explicit, and add --json when another tool needs structured output. Most commands accept a repo from the current .wh file, the active profile, or a flag.
Command Pattern
Section titled “Command Pattern”All commands follow the wh <domain> <verb> pattern:
wh org create myorgwh repo list myorgwh thing list --shape Locationwh commit submit --ops '[...]'Domains: org, repo, shape, graph, thing, assertion, commit, use, init, doctor, sub, auth, token, credential, component, prime, notifications, channel
See the full command reference for every domain, verb, flag, and alias.
Configuration
Section titled “Configuration”Default Repo (.wh file)
Section titled “Default Repo (.wh file)”The easiest way to set a default repo is wh use, which writes a .wh file in the current directory:
wh use myorg/worldwh thing list # targets myorg/worldThe CLI resolves the target repo using this priority:
--repoflag (per-command override)WARMHUB_REPOenvironment variable.whfile in the current directory
Environment Variables
Section titled “Environment Variables”| Variable | Description | Example |
|---|---|---|
WARMHUB_REPO | Default org/repo for all commands | myorg/myrepo |
WARMHUB_ORG | Default org | myorg |
WARMHUB_API_URL | Backend URL | https://api.warmhub.ai |
WH_PROFILE | Named auth profile (same as --profile / -P) | staging |
WARMHUB_CLI_HTTP_TIMEOUT_MS | HTTP client headers/body timeout in milliseconds for long-running requests (Node only; no-op under Bun). Default 5700000 (95 minutes). Set to 0 for unlimited. | 3600000 |
WARMHUB_CLI_NO_UPDATE_CHECK | Disable the background CLI update check. Set to 1, true, or TRUE to enable the opt-out. Equivalent to passing --no-update-check. | 1 |
Per-Command Override
Section titled “Per-Command Override”wh thing list --repo myorg/other-repoOutput Formats
Section titled “Output Formats”Default (Human-Readable)
Section titled “Default (Human-Readable)”Colored, formatted text output:
wh thing listStructured output for scripts and agents:
wh thing list --jsonLive (Reactive)
Section titled “Live (Reactive)”Real-time WebSocket updates — auto-refreshes as data changes:
wh thing list --liveErgonomics
Section titled “Ergonomics”Prefix expansion. Flag prefixes expand to the full name if unambiguous:
wh repo create myorg/repo --desc "My repo"# expands to --descriptionFuzzy matching. Typos in domains, verbs, and flags get “did you mean?” suggestions.
Verb aliases. Many verbs have short aliases:
wh thing show # alias for: wh thing viewwh repo init # alias for: wh repo createGetting Help
Section titled “Getting Help”wh help # full help overviewwh <domain> # list verbs for a domainwh <domain> <verb> --help # verb details with flags and exampleswh help --format json # structured CLI spec as JSONwh doctor # verify environment and connectivityHit a problem or have a question? Get in touch.