Skip to content

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.

Terminal window
valved [--project-dir PATH] [--env-file PATH] [--target NAME] <command> [args]
  • --project-dir — the project root (the directory containing valved.toml); defaults to the current directory.
  • --env-file — path to a .env file; defaults to <project-dir>/.env. Valved auto-loads it on startup (existing shell vars win). Set VALVED_NO_DOTENV=1 to disable.
  • --target — the active target (dev, staging, prod); overrides $VALVED_TARGET and default_target in valved.toml.
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.
Terminal window
valved init --with-dbt
valved serve & # control plane
valved plan "ingest the Stripe charges API" # intent → plan
valved build <plan_id> # plan → code (verified by execution)
valved run <pipeline> --watch # execute against dev
valved deploy <pipeline> # open a reviewable PR

Every command supports --help. The full reference — including exit codes and environment variables — is at CLI reference.