CLI
The valved CLI is the primary surface. Every action it exposes has a REST and MCP equivalent — the CLI is one client among several, not a privileged one.
For the exhaustive command listing with every flag, see the CLI reference. This page is an orientation.
Global shape
Section titled “Global shape”valved [--project-dir PATH] [--env-file PATH] [--target NAME] <command> [args]--project-dir— the project root (the directory containingvalved.toml); defaults to the current directory.--env-file— path to a.envfile; defaults to<project-dir>/.env. Valved auto-loads it on startup (existing shell vars win). SetVALVED_NO_DOTENV=1to disable.--target— the active target (dev,staging,prod); overrides$VALVED_TARGETanddefault_targetinvalved.toml.
The command groups
Section titled “The command groups”| Group | Commands | What it does |
|---|---|---|
| Lifecycle | init, connect, plan, build, plan-and-build, run, runs, logs, deploy |
The core loop: scaffold → plan → build → run → deploy. |
| Investigate | ask, asks, investigations |
Read-only exploration and recovery records. |
| Serving | serve, worker, mcp-serve |
Run the control plane, standalone workers, or the MCP adapter. |
| Schedule | schedule list/show/pause/resume/set-cron/reseed |
Mutate the live schedule (data, not code). |
| Pipelines & components | pipelines, el, component, components, target |
Inspect and manage pipelines, EL components, and targets. |
| Extensibility | agents, skills, mcp-servers |
Bring-your-own agents, skills, and external MCP servers. |
| Ops | memory, metrics, docs, auth, version |
Project memory, cost/usage rollups, the static UI, credentials. |
A minimal session
Section titled “A minimal session”valved init --with-dbtvalved serve & # control planevalved plan "ingest the Stripe charges API" # intent → planvalved build <plan_id> # plan → code (verified by execution)valved run <pipeline> --watch # execute against devvalved deploy <pipeline> # open a reviewable PREvery command supports --help. The full reference — including exit codes and environment variables — is at CLI reference.