CLI reference¶
Commands are actions: tuvl <verb> <thing>. Every command that reports supports --json with a stable,
documented schema (coding agents parse it; /dev/schema/cli serves the schemas in dev mode).
-d/--project-dir defaults to the current directory everywhere. Every option of every command, with its value and default, is on the generated full option reference.
The verbs¶
Each verb makes one kind of promise, so the name tells you what a command will do.
| Verb | Promise | Things |
|---|---|---|
generate |
Writes files. Spends tokens only where a coding agent is involved | spec, tasks, code, ui-spec, lock, key, rls |
lint |
Static rules over what you wrote. Offline, zero tokens | project, spec |
verify |
Is one thing still in step with another? Exits 1 on drift | spec, lock, ui-spec, rls, audit |
check |
Is it reachable and working right now? Touches the live environment | system, agent, storage |
review |
A judgement of code | code |
approve / reject / reopen |
A human decision, recorded in the audit ledger | spec |
create / import / renumber |
Make or bring in specs and ideas | spec / idea / idea |
list / show |
Only read | ideas, specs, tasks, runs, agents, objects / idea, run, event, audit, drift, project |
run |
Run a workflow or the tests | workflow, tests |
serve |
Start a server | app, mcp |
follow / pin / replay |
Work with runs | run / run / runs |
use / set / upgrade / register / update |
Project setup | agent / project / project / project / skills |
export / prune |
Admin | audit, schema / traces, memory, runs |
init, dev, ship, deploy |
One action each |
Project¶
| Command | Options | |
|---|---|---|
tuvl init [NAME] |
--dev-telemetry URL, --sample, --preset gemini\|openai\|anthropic\|ollama, --decision-model laya\|none, -y/--yes, --multi-tenant, --no-ai-skills, --agent, --no-agent, --list-agents, --initials, --git/--no-git, --branch, --commit, --ci github\|gitlab\|none |
Scaffold a project. A preset writes llms/default.yaml with a current model id, reading the key from the environment. --sample is a ticket-triage project (spec, TaskPlan, tests, lock) that passes the CI gate as created. --decision-model laya adds llms/laya.yaml, LAYA_API_* in .env and a compose.yaml that runs laya-serve locally (asked interactively, default no). -y accepts every default. It also asks for your initials (they stamp the ids of ideas and specs you create) and, when coding agents are installed, which one tuvl may run for you (-y picks none), writes both to .tuvl/agent.yaml (git-ignored), and runs git init on branch develop when git is installed (--ci github or gitlab also writes the deterministic gate as CI: errors fail on pull requests, everything --strict on pushes to develop/main) and the project is not already inside a repository (--commit makes an initial commit) |
tuvl list agents / use agent <agent\|none> / check agent |
-d, --json (list), --force, --command (use) |
The coding agents on this machine (Claude Code, Codex, Gemini CLI, Antigravity, Cursor, Copilot CLI, Amp, Qwen Code, Aider, OpenCode, Goose), the one you selected, and whether tuvl can run it: yes for an agent tuvl can let draft and build (Claude Code, Codex CLI, Gemini CLI, Antigravity CLI: their headless modes can confine a write to the folder), review only for one it can ask to review but never to write (Cursor, Copilot CLI, Amp), detected, not yet for the rest. The choice is yours alone, in .tuvl/agent.yaml (git-ignored). check agent checks the selected agent starts, then runs it once on a trivial task in a scratch folder (a few tokens; -y skips the question). use generic --command '…' selects any command that reads a prompt on stdin and edits its working directory |
tuvl check storage [name] / list objects <name> [prefix] |
--json (check); -n/--limit (list, default 100) |
Check each kind: Storage store by writing, reading back and deleting a probe object (read-only stores are only listed), or list a store's objects. See docs/storage.md |
tuvl lint project |
--strict, --json |
Contracts, data flow, types, policy, artifacts, lock; prints each workflow's determinism profile and worst-case tokens. --strict fails on warnings. Ends with needs models: every model the workflows use, its provider and the environment variables it reads (or "no LLM required"); V028 = unknown model reference, V029 = undeclared credentials (an error at ship time) |
tuvl generate code [WORKFLOW] |
--check |
Schemas, code-agent stubs (body-preserving merge), prompt placeholders, spec tests. --check writes nothing and exits 1 on drift |
tuvl generate code --spec SPEC --task 3 \| --task 1,3 \| --all |
--no-agent, --agent, --max-attempts 3, --budget USD, --timeout S, --model, --base, --no-pr, --ready, --continue, --keep-worktree, --consent, --review none\|static\|agent, --review-blocking, --reviewer |
Build an approved spec's models and workflows from its task list. Phase 1, deterministic, zero tokens: the missing models/*.yaml from # Data, a workflows/<flow>.yaml skeleton whose steps are all pending (trigger, ends, and every step's id, inputs, outputs, routes and budget come from # Flows), then the generated schemas, stubs, prompt placeholders and tests; one branch feature/<SPEC>-scaffold, never overwriting an existing file. Phase 2, your coding agent, one task at a time: for each selected agent task a branch feature/TASK-… stacked on the one before, in a worktree; the agent replaces that one pending step and may touch only the workflow, agents/*.py and artifacts/; tuvl regenerates what is generated and accepts the task only when the step is implemented and lint project and verify spec agree (findings go back to the agent), then commits and, with a remote and gh/glab, pushes and opens a draft pull request based on the previous branch. Before a task is committed its Python is reviewed (--review static, the default: the C-rules and ruff, errors fail the task and go back to the agent; agent adds a second opinion that lands in the pull request and blocks only with --review-blocking). Failed tasks leave no branch and stop the run (--continue goes on with independent ones). Re-running skips what is built. Task numbers: 3, T3, 003 or the full id. --no-agent stops after phase 1. Without --spec, tuvl generate code never calls an agent |
tuvl generate ui-spec / verify ui-spec |
-w/--workflow, --all, --no-tests, --base-url, --check, --json, -d (verify ui-spec takes --no-tests, --base-url, --json: exit 1 when ui/specs/ is not what generate would write now) |
Write ui/specs/ (zero tokens): how to build the UI on this backend, for the developers and coding agents who build it. README.md (the @tuvl/client setup, sign-in, the backend surface: which system routes a production server mounts, shared behaviour, rules for whoever builds the UI), one <workflow>.md per workflow whose tasks are done (endpoint, auth, request, every end's status and body, the run lifecycle, the approval form of human steps, real examples from the acceptance cases, a client.execute(...) snippet, a checklist), models.md for models with CRUD routes (operations, scopes, groups, fields, secure flagged), and ui-contract.json. init creates the folder; codegen --spec adds a workflow's file in the commit of the task that completes it. Text below the notes marker in a file is kept. --check exits 1 when a file is missing or out of date (add it to CI); a workflow with a pending step or open task gets no file until it is built (--all writes it anyway) |
tuvl review code [PATH…] |
--base REF, --spec SPEC, --task 3, --strict, --no-ruff, --explain C0xx, --json; second opinion: --agent, --reviewer, --blocking off\|high\|medium\|low, --post, --consent, --budget, --timeout |
Review the Python of code agents (agents/*.py, not _generated); --spec or --task keeps it to the code agents those tasks created (models, steps that are not code, tests and examples have none). Tier 1, free: tuvl's rules — C001 shape (@agent("run") async def f(inp, ctx)), C002 processes and eval, C003 direct network (use ctx.http), C004 os.environ, C005 file writes (use ctx.storage), C006 non-determinism (random, uuid, clock), C007/C008 work or state kept in the module, C009 hard-coded URLs, C010 secrets, C011 a returned signal the workflow does not route, C012 a write in an effect: read agent — plus ruff (C900) when installed. Errors fail (exit 1), warnings only with --strict. Tier 2, advisory: --agent asks a coding agent that cannot change anything (Claude Code runs with only Read, Glob and Grep) to read the code, the diff and the spec and answer with JSON findings (high / medium / low / info); an answer that is not valid JSON is a failed review, never a pass. Findings only block with --blocking. --post comments the review on the branch's pull request. The reviewer is another agent than yours when you have one |
tuvl generate lock / verify lock |
--check, --mcp/--no-mcp |
Pin model ids, artifact hashes, judge/decision models and MCP tool schemas in tuvl.lock; verify lock is the read-only check (exit 1 when the lock is missing or stale; --no-mcp skips listing MCP servers live) |
tuvl check system |
--live, --json, --only, --skip, --strict, --fix, -q, --verbose |
Is the project healthy? Runs named check groups, each check ok / warn / fail / skip: project (identity record), env (Python range, .env present and git-ignored, uv), config (the project loads), models (each model, the variables it needs and which are missing; --live makes one minimal call per model — Laya/Jev: their /health), storage, and, where the toolchain is installed, git (repository, branch, identity, remote) and skills (AGENTS.md, .agents/skills). --only / --skip take comma-separated group names. Exit 1 on any failure; --strict exits 2 when only warnings remain. --fix applies the safe repairs a check offers (git init -b develop, adding .env to .gitignore) and re-checks; nothing destructive. A production server runs the model check at startup and refuses to start on a missing variable; /health reports each model's readiness |
tuvl run tests |
--live, --allow-uncertain, --strict, -k/--only TEXT, --json |
Run Test documents offline (--live lets unmocked model/tool agents call out). Results are PASS, STUBBED (expectations met only through unmocked pending placeholders — not counted) or FAIL; --strict (CI) also fails on stubbed results and untrusted judge calibration |
tuvl show project |
--json |
The project's identity from .tuvl/project.yaml: the immutable, self-checking id (prj_<uuidv7>-<2 check characters>, minted by tuvl init; the check catches typos and hand edits, it is not a signature), name, author, email, type (poc\|dev\|production), version, registry status. Also editable in Insight → Settings → Project. Full reference: project |
tuvl upgrade self |
--to VERSION, --pre, --check, --json |
Move this machine's tuvl to another version from PyPI (default: the latest stable; only --to moves to an older one). Shows the plan (install method: uv tool, pipx or a venv; the command; the undo command), then asks a person to type the version to confirm; refused inside a coding agent's shell. A tuvl in the system Python is refused: install with uv tool install "tuvl[standard]". --check shows the plan and changes nothing |
tuvl upgrade project |
--name, --new-id |
Create project.yaml for a project that predates it. Never changes an existing id; --new-id replaces a malformed or copied id and clears its registration |
tuvl set dev-telemetry [URL] |
--off, --identity initials\|full, --token-env VAR, --commands/--no-commands, --forget, --rotate-token |
Share developer actions through your team's collector (optional, off by default; tuvl init can ask for it). Writes .tuvl/dev-telemetry.yaml (commit it); your token is never in it. --forget removes your token from this machine. See developer telemetry |
tuvl register developer |
--name, --email, --code |
Register yourself at the team's collector with its join code and keep the token of your own in your config folder; it sends your events and reads the team's |
tuvl show dev-telemetry / check dev-telemetry |
--json / --flush |
Whether it is on, who you are at the collector, what is queued and the last delivery; ask the collector who your token is (exit 1 when it does not accept it) and, with --flush, send everything queued |
tuvl list team-activity |
--actor, --entity, --kind, -n, --json |
What the team did on this project, from the collector |
tuvl set project FIELD VALUE |
Update name, author, email, type, version, description, license or repo (validated). The description is Markdown (up to 2000 characters): VALUE of @about.md reads a file, - reads stdin; show project renders it |
|
tuvl register project |
--nest URL, --remote NAME, --no-verify, --keep-tag, -y |
List the project in the public catalogue (optional, open, no sign-in; developer toolchain only). Prints the exact payload first and asks; then, after a second prompt, pushes a one-time tag to the git remote with your own credentials and removes it, so the listing becomes Verified (public repository) or Push confirmed (private). The author and email are sent for contact and never shown publicly. Also available as Insight → Settings → Project → Register / Update listing (same preview and consent) |
tuvl update skills |
--diff |
Refresh AGENTS.md and .agents/skills/ to this tuvl version (removes retired skills; mirrors to .claude/skills/) |
Specs¶
| Command | Options | |
|---|---|---|
tuvl verify spec [SPEC_FILE…] |
--strict, --no-tests, --json |
Does the implementation match the spec? Zero tokens; rules R001–R010 and a traceability matrix (step → agent → tests). Exits 1 on a mismatch (--strict: also on unfinished work) |
tuvl create spec NAME |
--owner, --workflow |
Write specs/<name>.md from the template |
tuvl import idea [PATH…] |
--url (repeatable), --allow-private, --title, --supersedes, --initials, --include, --exclude, --max-size, --commit, --dry-run, --json |
Copy an idea (files, a folder, or a snapshot of a web page, Jira issue, Confluence page or GitHub issue given with --url; see authoring) into idea/IDEA-<INITIALS>-NNNN/source/ as a numbered, immutable record, with IDEA.yaml (file hashes, who, when) and idea/INDEX.yaml. Text is extracted from Markdown/text directly, from Word files with no extra install, and from PDFs with tuvl[pdf] (a scanned PDF has no text layer and gets a warning; there is no OCR) into extracted/. Secret and key files, hidden files, symbolic links and unsupported types are skipped and listed. Ids are IDEA-SK-0004 → SPEC-SK-0004-01 → TASK-SK-0004-01-003: the spec and task ids inherit the idea's number. Initials come from .tuvl/agent.yaml (--initials saves them on first use) |
tuvl list ideas / show idea ID |
--json |
List the ideas and the specs generated from each / show one idea's files, hashes and specs |
tuvl list branches [SPEC] |
--json |
Where the branches of each spec's work stand: the spec, the scaffold and one per agent task, as a tree of what grew from what (branches built apart from each other sit side by side and are marked parallel), with each branch's commits and messages. Each is merged (on the base branch, even if the branch was deleted), open (built, not merged: commits ahead and behind, last commit, pull request) or not built, with what to merge next. tuvl never merges; it prints the command |
tuvl show task TASK-ID |
--spec SPEC, --json |
One task in full: what it builds, what it waits for and the spec section it came from; after a failed generate code run, also the report of each attempt (the check it failed, the problems, the end of the agent's output), kept until the task succeeds. A legacy T3 needs --spec |
tuvl renumber idea IDEA |
--to IDEA-XX-NNNN |
After two developers picked the same number: give the idea a new one (default the next free) and carry its spec and task ids, file names, links and the task lists' spec hash along. tuvl check system (group ideas) reports duplicate ids and an idea the base branch already numbers differently |
tuvl approve spec SPEC / reject spec SPEC --reason … / reopen spec SPEC |
--force (approve) |
Approve a spec (by id, name or file): records who, when and a hash of the body in its front matter; refuses while lint spec has errors, and refuses inside a coding agent's shell (approval belongs to a person). Editing the body afterwards makes the approval stale (S017). reject sends it back to draft with a reason; reopen withdraws an approval |
tuvl generate tasks SPEC |
--dry-run |
Derive the task list from an approved spec, with no model: one task per new model, step and example, a manual task for each external-system step. Keeps ids, refreshes section hashes, marks removed ones obsolete; --dry-run previews a draft |
tuvl list specs |
--json |
Each spec's id, status (draft / approved / approved but changed), approver and ideas |
tuvl prune runs --older-than 30d |
-s/--status (repeatable: completed, failed, aborted, compensated), --dry-run, --with-uploads, --batch N, -d |
Removes runs that ended before the cutoff with their journal, checkpoints, approvals, webhook deliveries and drafts, in batches that each commit. Never a run that is queued, running, waiting or paused. Uploaded files stay unless --with-uploads; a run whose file cannot be deleted right now is kept for the next time. Try --dry-run first |
tuvl prune memory COLLECTION |
--key OWNER or --older-than 30d (exactly one), -d |
Erases what agents remember: every memory of one owner, or all older than an age, in one memory collection. Prints how many rows went and deletes nothing else (knowledge-base rows and other collections are untouched). See Remembering across runs |
tuvl show audit / show event REF / verify audit / export audit / prune traces |
--entity, --actor, --kind, --since 2d, -n, --follow, --json (log); --format json\|csv, -o (export); --older-than DAYS (prune) |
The local audit ledger .tuvl/audit/<YYYY-MM>.jsonl (git-ignored): one hash-chained event per action with side effects — init, agent choice, idea import, id renumber, spec create / approve / reject / reopen (refusals too, with the reason), task derivation. It holds ids, hashes and short details, never file contents, prompts or secrets (full prompts and agent output go to .tuvl/trace/ by hash). --entity on an idea also shows its specs and tasks. verify finds an edited, removed or reordered line (exit 1); prune deletes old trace files, never the ledger. The ledger belongs to one machine and one developer: what the team shares through git is the spec's own approval fields |
tuvl create spec NAME --idea IDEA-… |
Also numbers the spec SPEC-XX-NNNN-NN after its first idea, links it to the idea(s) and records status: draft |
|
tuvl generate spec --idea IDEA-… \| --from PATH |
--title, --agent, --max-attempts 3, --budget USD, --timeout S, --model, --base, --dry-run, --show-prompt, -y, --consent, --no-pr, --ready, --keep-worktree, --here |
A coding agent writes a draft spec from an idea. tuvl numbers it (SPEC-XX-NNNN-NN), creates branch spec/<id> in a worktree under .tuvl/worktrees/, builds the prompt (the idea's text, the spec grammar, the rules), runs your agent headlessly, lets it change only that spec file (anything else is reverted and fed back), puts back the lifecycle fields it must not set (id, ideas, status, no approval), runs lint spec and retries with the findings, then commits and, with a remote and gh/glab, pushes and opens a draft pull request. It never merges and never approves. --here skips the branch and the pull request and writes specs/<id>.md into your working folder, uncommitted (the terminal UI uses it, so the draft shows up in the tree). Needs git; the idea must be committed (spec import --commit; --from does it). With Claude Code the run is restricted at the source (no code-running tools, files confined to the folder, nothing may prompt); generic (tuvl use agent generic --command '…') cannot be restricted, only checked afterwards. Idea text is sent to your agent only after you consent once (--consent, stored in .tuvl/agent.yaml) |
tuvl lint spec [SPEC_FILE…] |
--strict, --json |
Is the spec complete and consistent? Zero tokens; rules S001–S016 with line numbers, plus P001–P005 on its task list (spec-driven). Exits 1 on a blocking finding (--strict: on warnings too) |
tuvl list tasks [SPEC_FILE] |
--strict, --no-tests, --json, --watch, --interval |
Derived task statuses. --strict exits 1 unless every live task is done and none is blocked or stale. --watch keeps refreshing (recomputing only when a project file changes) and overlays live generate code progress (queued, running attempt n/N and its gate, failed, in review) from .tuvl/live/tasks.json |
tuvl show drift [SPEC_FILE] |
--json |
Stale tasks and spec sections no task covers |
Servers¶
| Command | Options | |
|---|---|---|
tuvl dev |
-p/--port (8885), --auto-login, --no-tui, --show-key, --no-browser, --no-tui, -H/--allow-host |
Dev server with Insight and the dev API, reloading on YAML changes. The session key is stored in .tuvl/.dev-session (0600); --show-key prints it. On a terminal it also starts a terminal UI (part of tuvl-insight, so of tuvl[standard]): a tree of your ideas → specs → tasks (status, and live progress while generate code runs), the actions that apply to what you select (check, approve, derive tasks, scaffold, build with your agent, validate, test, ship…), and three logs: the command you ran, the engine, and the audit trail. Every action runs the same tuvl command you would type, so the gates and the audit trail are the same; anything that spends your agent's tokens or is hard to undo asks first (Run it / Cancel) and says so. The project's own actions (lint, test, check, review, run a workflow, import an idea, show the project and the audit log, ship) are listed under every selection. Each command ends with a tokens · line: what your coding agent used (input, output, cost), or that none was. q quits and stops the engine, r refreshes, x stops a running command, c copies the last command's output (or the open log) to the clipboard. The logs are selectable too: drag with the mouse, or click in a log and use the keyboard, then copy with ctrl+c. --no-tui, or no terminal (CI, a pipe, ssh without a tty), runs the engine in this terminal with plain output |
tuvl serve app |
-p/--port, --host, -w/--workers, --role all\|api\|worker, -c/--concurrency (8), -H/--allow-host, --graceful-timeout, --drain-timeout, --forwarded-allow-ips, --limit-max-requests |
Production server (uvicorn, which replaces the tuvl process so it is PID 1 in a container and receives SIGTERM directly). api serves HTTP and runs synchronous requests inline; worker executes the queue. On SIGTERM it stops taking requests, lets open ones finish for --graceful-timeout seconds (20), then waits --drain-timeout seconds (20) for running runs; one still going is interrupted and another worker resumes it from its last checkpoint. --forwarded-allow-ips names the proxies whose X-Forwarded-For is trusted (an IP or CIDR list: set your ingress network so --allow-host and the logs see the real client; * lets a client spoof its address). --limit-max-requests restarts a worker after that many requests. The Server header is off. tuvl run with no subcommand does the same |
tuvl serve mcp |
--allow-write |
Dev tools for coding agents over MCP (stdio); --allow-write adds codegen_write, run_workflow, pin_fixture. Refuses production |
Runs¶
These talk to a running server: -u/--url (TUVL_URL, default http://localhost:8885) and
-t/--token (TUVL_TOKEN, needs runs:read).
| Command | Options | |
|---|---|---|
tuvl list runs |
-w/--workflow, -s/--status, -n/--limit, --json |
Recent runs, newest first |
tuvl show run RUN_ID |
One run as JSON | |
tuvl follow run RUN_ID / run workflow NAME |
-p/--payload JSON (run workflow) |
Follow a run's events until it ends, or start a run of a workflow on the server and follow it; exits 1 if it fails |
tuvl pin run RUN_ID |
-n/--name |
Export the journal to tests/fixtures/<workflow>/<name>.journal.json |
tuvl replay runs FIXTURES… |
--json |
Re-run pinned journals offline; fail if the end or output differ |
Shipping and operations¶
| Command | Options | |
|---|---|---|
tuvl ship |
-t/--tag, --no-image (was --no-build), --push, --force, --strict, --extra, --with-laya/--without-laya, --format image\|archive\|both, --archive-format tar.gz\|zip, --out, --allow-incomplete, --allow-dirty |
Gate (validate, no pending agents — V010 is an error at ship time, current lock; then, once the files are written, the deterministic spec gate: every spec under approval is approved and unchanged, lint spec and verify spec have no errors, every task is done (--allow-incomplete), generated files are current (codegen --check, for projects with specs), no C-rule errors in the agents' Python, a current uv.lock (an error for the archive), and a clean git tree (--allow-dirty; what ship writes itself does not count). A spec with no status: only warns), then .dockerignore as an allowlist (only models, workflows, agents, artifacts, datasources, llms, federation, config, lock and .tuvl/system.yaml / telemetry.yaml enter the image; specs, task lists, tests, agent rules and skills, compose files and anything else stay out — V027 refuses development files), deploy/Dockerfile (pins the locked tuvl version and installs only the extras the project uses: mcp for use: mcp tools, loop MCP servers and MCP export, redis for a redis datasource, vector for collections and tuvl.data_*, otel-grpc for otlp_protocol: grpc; it also stops when agents/*.py imports a package pyproject.toml does not declare. --extra NAME adds one the scan cannot see; the choice is recorded as the image label io.tuvl.extras) and a Helm chart (split: true for api + worker Deployments; a Laya Deployment + Service, with LAYA_API_BASE set for the engine, when a model uses provider: laya or with --with-laya — laya.enabled in values.yaml) and docker build, labelled io.tuvl.runtime-hash (one sha256 over the runtime files) and io.tuvl.git-commit. --format archive instead writes dist/<name>-<version>.tar.gz (or .zip) plus a .sha256: the same runtime files with run.sh, RUN.md, .env.example and BUILD-INFO.json, reproducible byte for byte from the same files, for hosts without Docker. On the host: tar xzf …, cp .env.example .env, fill it in, ./run.sh (needs uv; it installs the locked dependencies and tuvl==<locked> with the same extras as the image, and serves on port 8885) |
tuvl deploy |
-d/--project-dir, --archive, --url, --plan, --hostname, --set-hostname, --ui, --ui-only, --no-ui, --login |
Package the project with tuvl ship --format archive and deploy it to a tuvl cloud (cloud.tuvl.io by default) with a client token. A person at a terminal, or CI, deploys directly. Inside a coding agent's shell, or with no terminal, it waits for a person's approval (exit 3): it keeps the archive under .tuvl/deploy/ and prints the digest and the two commands to run |
tuvl approve deploy DIGEST |
-d/--project-dir |
Approve one waiting deploy: exactly that archive (and web UI), to that cloud, once, within 30 minutes; recorded in the audit ledger (action.approved, then action.consumed when it deploys). A person only: refused inside a coding agent's shell and without a terminal |
tuvl generate key |
-w/--write, -f/--force |
A persistent Ed25519 key for signing access tokens (TUVL_SIGNING_KEY) |
tuvl generate rls |
-o/--out |
Idempotent row-level-security SQL for tenant-scoped tables |
tuvl verify rls |
Exit 1 if a tenant-scoped table lacks its RLS policy, or if the database role is a superuser or has BYPASSRLS (it ignores every policy) |
Extras: what an image installs¶
tuvl installs lean. Features with their own packages are extras, and tuvl ship reads the project and
installs tuvl[<only those>]==<locked version>:
| Extra | Package | tuvl ship installs it when |
|---|---|---|
mcp |
mcp |
a use: mcp tool, a loop mcp tool, or a workflow with trigger.mcp.enabled |
redis |
redis |
a kind: DataSource with type: redis, or agents/*.py imports redis |
vector |
pgvector |
a Collection or Embedding document, tuvl.data_search / tuvl.data_ingest, or an import of pgvector |
otel-grpc |
OTLP gRPC exporter | .tuvl/telemetry.yaml has otlp_protocol: grpc |
| the development tools | libcst, aiosqlite, ... |
never: they are dependencies of tuvl-insight, not extras of tuvl, and are not part of a production image |
tuvl[standard] installs tuvl-insight and every extra, so a development install needs nothing else. The
model providers and blob storage (S3, Azure, GCS, local) are part of tuvl and need no extra.
tuvl ship prints the extras it chose and why and records them as the image label io.tuvl.extras
(docker inspect shows what an image carries). Beyond the extras:
- It also scans
agents/*.py: an import of a package thatpyproject.tomldoes not declare aborts the ship, because the image would fail at run time. Declared packages that no agent imports are listed and kept. --extra NAMEadds an extra the scan cannot see, for example a feature switched on by an environment variable. It acceptsmcp,redis,vectorandotel-grpc.- A kept
deploy/Dockerfile(no--force) that lacks an extra the project now needs stops the ship. - Using a feature without its extra fails with
pip install 'tuvl[name]'; the same message appears fortuvl generate code,tuvl run testsandtuvl serve mcpon a bare install. tuvl deployships the project as an archive and deploys it to a tuvl cloud (https://cloud.tuvl.ioby default, or--url/TUVL_CLOUD_URL). A person at a terminal, or CI (CI=trueorGITHUB_ACTIONS=true), deploys directly. Inside a recognised coding agent's shell, or with no terminal outside CI, it exits 3 until a person runstuvl approve deploy DIGEST; see Coding agents for what this does and does not stop. It needs a client token, which a cloud's operator makes for your account: setTUVL_CLIENT_TOKEN, pipe it with--token-stdinin CI, or save it withtuvl deploy --login. The token is never an argument, is sent only over https (plain http only to localhost) and is never printed.--admin-emailcreates an administrator in a new app; its password is made on your machine, sealed for the cloud and shown once.--check-dnssays whether a name is available and points at the cloud (nothing is deployed), and--set-hostname NAMEchanges the name a deployed app is served on (nothing is packaged or uploaded; the app restarts behind the new name). Names must be under the cloud's base domain. The backend is served atapi.<name>(for examplehttps://api.shop.tuvl.app). A project's web UI (a folder of static files with anindex.htmlat its top, by defaultui/) is deployed after the backend and served on<name>; calls from the UI to/api,/auth,/modelsand/healthon its own address reach the backend, so a UI that uses its own origin needs no extra setup.--ui FOLDERnames the folder,--no-uiskips it,--ui-onlydeploys just the UI of a project that is already running. The folder is packed without hidden files,serve.py,tests,specs,node_modulesand links; the cloud checks the archive again and refuses anything that looks like a secret. To run the app yourself instead, install the charttuvl shipwrites withhelm.
The CI gate¶
tuvl lint spec && tuvl lint project --strict && tuvl generate code --check && tuvl verify lock && tuvl run tests --strict && tuvl verify spec --strict && tuvl list tasks --strict