# Dryv documentation
---
> Dryv documentation: deterministic code generation from contracts, the dryv CLI, authoring, templating and packs, and how to use Dryv with AI agents and agent skills.
---
# What is Dryv?
Dryv (full name Dryvcode) is a deterministic software-generation engine. It lets you describe
software meaning once, convert that meaning into one canonical Runtime IR, and
generate implementation through reusable packs without hiding why the output
exists.
> **The promise:** Describe meaning once → canonicalize it → inspect and
> validate it → choose packs → plan exactly what will happen → render explicit
> templates → receive deterministic artifacts → trace every result back to
> meaning.
## The three tiers
Dryv keeps responsibilities separate:
- **Authoring** defines software meaning.
- **Canonical Runtime IR** is the semantic authority.
- **Templating** defines how canonical meaning becomes generated representation.
- **Usage** connects the semantic source, packs, bindings, destinations, and
generation behavior to a real project.
## One semantic authority
Canonical Dryv Runtime IR is the only authority for what the described software
means. Authoring produces it. The runtime validates, resolves, loads, inspects,
and plans from it. Packs consume explicit context derived from it.
## Plan before project mutation
Dryv plans semantic selection, template invocations, output paths, generated
dependencies, and template context before a client applies files.
A useful plan can answer:
- Which authored item selected this template?
- Why was another item skipped?
- Which context paths did the template receive?
- Why does this generated dependency exist?
- Where will the artifact be written?
- How does the artifact trace back to canonical meaning?
## Language and renderer independence
Current authoring implementations are **Python** and **TypeScript**.
Current template renderer implementations are **Jinja**, **Handlebars**,
**Liquid**, and **Mustache**.
These are separate extension points. The authoring language does not constrain
the renderer, and the renderer does not define the language of generated output.
## Where to go next
Start with [Get started](/docs/getting-started), then continue into the core
concepts once you have seen a real project configuration and generation plan.
---
# Installation
A Dryv setup has three parts:
| Part | What it does | Where it runs |
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------- |
| **Client** | The `dryv` CLI or the VS Code extension. Reads your project, runs the compiler, sends the result to the engine and writes generated files. | Your machine |
| **Author + compiler** | A library you declare software meaning with, and the compiler that turns it into Canonical Runtime IR. | Your project, as dev dependencies |
| **Engine** | Validates the IR, plans packs and renders templates. Clients talk to it over HTTP. | On your machine, or in your Playground |
## 1. Install the CLI
The CLI is distributed by the Dryv Platform, not by the open source repository. Today
the only published build is **0.1.0 for Linux x64**. The installer downloads it,
verifies its signature and sha256, and installs it to `~/.dryv` without sudo. It needs
neither Node.js nor Python.
```bash
curl -fsSL https://dryvcode.com/install.sh | sh
dryv --help
```
Pin a version with `DRYV_VERSION=0.1.0` and change the folder with `DRYV_INSTALL_DIR`.
Update later with `dryv update`. Direct downloads with checksums are on the
[download page](/download).
There is no published build for macOS or Windows yet. The 0.1.0 build also predates the
keyless Engine described below, so some of its behaviour may differ from these pages.
The `@dryvcode/cli` package on npm is the old 0.1.0 package and is not maintained.
### Or the VS Code extension
The extension's `.vsix` is on the [download page](/download). In VS Code, choose
**Extensions → … → Install from VSIX**. The listing on
[Open VSX](https://open-vsx.org/extension/alidantechorg/dryv-vscode) is an older preview.
### Without the CLI
You can run the open source Engine from source and send it a project directly. You need
[Bun](https://bun.sh) 1.4.2, [uv](https://docs.astral.sh/uv/) and git:
```bash
git clone https://github.com/dryvcode/dryv.git
cd dryv
bun run setup # installs the TypeScript and Python dependencies
bun run dev # the Engine on http://127.0.0.1:8750 with its template servers
```
In another terminal, `python3 scripts/engine_sample.py sdk/_examples/projects/quickstart`
validates and plans the sample project through the Engine API. See the repository's
`README.md` for details.
## 2. Add an author to your project
Pick the language you want to describe your software in. The generated code can target
any stack. The authoring language only decides how you write the meaning.
### TypeScript
```bash tab="npm"
npm install -D @dryvcode/author @dryvcode/compiler
```
```bash tab="pnpm"
pnpm add -D @dryvcode/author @dryvcode/compiler
```
```bash tab="yarn"
yarn add -D @dryvcode/author @dryvcode/compiler
```
```bash tab="bun"
bun add -d @dryvcode/author @dryvcode/compiler
```
[@dryvcode/author](https://www.npmjs.com/package/@dryvcode/author) ·
[@dryvcode/compiler](https://www.npmjs.com/package/@dryvcode/compiler). The compiler's
command is `dryv-ts`. It loads your `.ts` files directly, which needs **Node.js 22.18+** or
Bun. On Node, use erasable TypeScript only: no `enum` or `namespace`.
### Python (3.11+)
```bash tab="uv"
uv add --dev dryv-author dryv-compiler
```
```bash tab="pip"
pip install dryv-author dryv-compiler
```
[dryv-author](https://pypi.org/project/dryv-author/) ·
[dryv-compiler](https://pypi.org/project/dryv-compiler/). The compiler's command is
`dryv-py`.
If the project doesn't have the author or compiler yet, the CLI can install them for you.
It asks first, or proceeds without asking when you pass `--yes`.
## 3. Connect to an engine
### Where the engine runs
The engine runs on your own machine. The CLI and the VS Code extension use the local
engine that the [local daemon](/docs/guides/local-daemon) starts, on a free port it picks. There is no public hosted engine: the
engine in your Playground is reached only through the signed-in Platform API. A local
engine needs no login and no API key.
You only sign in (`dryv login`) to sync data through the Platform API (the web and mobile
apps), sync tasks, publish, use private packs, and download or export your data.
### Run it locally
The installed CLI starts a local Engine for you through its local daemon. Check or
control it with `dryv local status`, `dryv local restart`, `dryv local stop` and
`dryv local logs`. See [Local daemon](/docs/guides/local-daemon).
To use an Engine you run yourself, for example one started with `bun run dev` from the
open source repository, point the CLI at it:
```bash
export DRYV_API_URL=http://127.0.0.1:8750
```
Pass `--api` to any command instead, if you prefer. The VS Code extension uses the CLI
named by the `dryv.cli.command` setting (default `dryv`) to start the same local daemon.
The Engine needs no key, token or database.
## 4. Check it
```bash
dryv info # the engine, its version and its template servers
dryv capabilities # what this machine can run
```
Next: [How a project flows through Dryv](/docs/usage/workflow).
---
# Get started with Dryv
A Dryv project connects software meaning, reusable packs, and output destinations
through one user-facing project contract: `dryv.yaml`.
The recommended first loop is simple:
1. [install the CLI and an author](/docs/usage/installation) for your language;
2. create `dryv.yaml`;
3. point it at your authored source;
4. activate one small pack;
5. run `dryv plan` and read the plan;
6. run `dryv generate` only after you understand the plan.
For the whole picture of what runs where, read
[How a project flows through Dryv](/docs/usage/workflow).
## Create dryv.yaml
```yaml
version: dryv/v1alpha1
sources:
authoring:
main:
type: typescript
path: dryv/contracts
entrypoint: index.ts
packs:
local:
path: dryv/packs
packs:
models:
source:
$ref: "#/sources/packs/local"
path: models
destination: { $ref: "#/destinations/generatedModels" }
destinations:
ir:
main: { path: dryv/ir }
generatedModels:
path: src/_gen/models
authoring:
source: { $ref: "#/sources/authoring/main" }
destination: { $ref: "#/destinations/ir/main" }
build:
cache: reuse
default_action: generate
```
## Choose how meaning enters Dryv
A project can provide authored source through a supported Author implementation or load
serialized Canonical Runtime IR directly. Once canonical meaning exists, the
downstream planning and generation model is the same.
## Inspect before generating
Planning should expose validation diagnostics, selected and skipped template
invocations, planned artifact identities and paths, generated dependencies,
cache decisions, and collision diagnostics before workspace mutation.
## Keep the first project small
Start with one pack and one destination. Verify that selection and output paths
are understandable before composing multiple packs.
---
# How a project flows through Dryv
```mermaid
flowchart LR
A["Author
TypeScript or Python"] -->|compile| B["Canonical
Runtime IR"]
B -->|stream| C["Dryv Engine
validate + plan"]
P["Packs
dryv.yaml"] --> C
C -->|render| D["Template servers"]
D --> E["Plan + diff
+ trace"]
E -->|you approve| F["Generated files"]
```
1. **Author.** You describe schemas, operations, events, policies and apps with the author
library, in TypeScript or Python.
2. **Compile.** The client runs your project's compiler (`dryv-ts` or `dryv-py`). The
compiler turns the declarations into **Canonical Runtime IR**, the single source of meaning.
3. **Validate and plan.** The client streams the IR to the engine. The engine validates it,
loads the packs listed in `dryv.yaml`, and plans every file: which template, which
subject, which path, and what it depends on.
4. **Render.** Template servers render each planned file. The engine returns the files and
a trace that explains why each one exists.
5. **Apply.** The client shows the diff and writes files only when you approve.
Your source code never leaves your machine, only the compiled IR does. The engine never
writes to your workspace. The client does.
## 1. Author
TypeScript, in `dryv/contracts/index.ts`:
```ts
import { dryv, property } from "@dryvcode/author";
const shop = dryv.group({ name: "shop" });
export const shopProperties = shop.properties({
Id: property.string.uuid(),
Name: property.string(),
Price: property.number.money({ minorUnits: true, currency: "USD" }),
});
export default dryv.app({ name: "shop" }).groups(shop);
```
Python uses the same concepts with Pythonic names: `type: python` and a Python
entrypoint such as `app.py`.
## 2. Configure: dryv.yaml
```yaml
version: dryv/v1alpha1
sources:
authoring:
main:
type: typescript # or python
path: dryv/contracts
entrypoint: index.ts
packs:
official:
repository: https://github.com/dryvcode/packs
ref: # written for you by `dryv pack add`
root: packs
packs:
entities:
source:
$ref: "#/sources/packs/official"
path: inject/persistence/typeorm-entities
destination: { $ref: "#/destinations/entities" }
destinations:
ir:
main: { path: dryv/ir }
entities:
path: src/generated/entities
authoring:
source: { $ref: "#/sources/authoring/main" }
destination: { $ref: "#/destinations/ir/main" }
```
You rarely write the pack source by hand: `dryv pack add ` does it. See [Find and use packs](/docs/usage/packs) and [dryv.yaml](/docs/usage/dryv-yaml).
## 3. Run
| Command | What it does | Writes files? |
| ------------------------- | ------------------------------------------------------------------------------- | ------------------- |
| `dryv build` | Compiles authored source and writes configured Runtime IR YAML/JSON/JSONL files | yes |
| `dryv validate` | Compiles and validates against the engine | no |
| `dryv plan` | Shows every planned file, its template and its path | no |
| `dryv generate --dry-run` | Renders and shows the diff | no |
| `dryv generate` | Renders, shows the diff and asks before writing | yes, after approval |
| `dryv generate --check` | Fails when the generated files are out of date (for CI) | no |
Every command takes `--api `, or reads `DRYV_API_URL`.
## Where to go next
- [Installation](/docs/usage/installation)
- [Authoring](/docs/concepts/authoring)
- [Packs & templating](/docs/concepts/packs)
- [Planning & explainability](/docs/concepts/planning)
---
# Authoring defines software meaning
Authoring is the human- and tool-friendly layer where software meaning is
declared. An authoring implementation may be written in Python, TypeScript, or
another language, but every implementation must compile into the same Canonical
Dryv Runtime IR.
Authoring exists to make software meaning expressive without turning one host
language into a private Dryv dialect.
## The authoring boundary
The boundary is intentionally narrow:
```text
Authoring source
↓
Language-native Author SDK
↓
Typed authored definitions
↓
Author compiler / provider
↓
Canonical Dryv Runtime IR
```
Once canonical meaning has been produced, authoring is finished.
## What authoring owns
Authoring can:
- define schemas, operations, events, policies, failures, views, workflows, and
other canonical concepts;
- validate authored declarations;
- create explicit typed relationships;
- reduce repetitive declarations without hiding behavior;
- preserve documentation and source provenance;
- compile declarations into canonical Runtime IR structures.
Authoring should make related concepts convenient to express, but convenience
must compile into explicit canonical relationships.
## What authoring does not own
Authoring does not:
- select generation packs;
- select templates;
- define target-framework roles;
- define generated output paths;
- write generated files;
- serialize Runtime IR;
- own Runtime IR loading or inspection;
- create a semantic model understood only by one authoring language.
These responsibilities belong to the runtime, templating, usage, and client
layers.
## Current authoring implementations
Dryv currently has authoring implementations for:
### Python
Python authoring provides language-native declarations and compiles them into the
same canonical Runtime IR used everywhere else in Dryv.
### TypeScript
TypeScript authoring provides a typed API for the same canonical model. It does
not create a separate TypeScript semantic model.
The important invariant is not that both APIs look identical. The invariant is
that equivalent authored meaning compiles into the same canonical vocabulary.
## Connected APIs, canonical ownership
A language API may let you start from one concept and fluently declare related
concepts. For example, a Schema-focused API could make it convenient to declare
an associated Operation.
That convenience does not change semantic ownership.
Compilation should normalize the authored convenience into explicit registries,
stable references, and canonical relationships.
## Determinism and identity
Authoring must not rely on process-global mutation, import order, or host object
identity as semantic authority.
Equivalent authored meaning should produce deterministic canonical meaning with
stable identities and explicit relationships.
## Why this matters to users
Because authoring ends at canonical meaning, the same software description can
be used with different packs, renderers, target languages, and project
structures without redefining the software itself.
---
# Canonical Dryv Runtime IR
Runtime IR is the semantic center of Dryv: one portable, language-neutral
contract shared by authoring implementations, the engine, packs, clients, and
tools.
There is one Dryv Runtime IR. There is not a Python IR, TypeScript IR, or
renderer-specific IR.
## One semantic authority
Runtime IR is the only authority for what described software means.
Authoring produces it. The runtime validates, resolves, indexes, inspects,
hashes, serializes, loads, and plans from it. Packs consume bounded context
derived from it.
Generated application code does not become a competing semantic authority after
generation.
## Canonical properties
Canonical Runtime IR should remain:
- language-agnostic;
- framework-agnostic;
- runtime-agnostic;
- portable;
- explicit;
- deterministic;
- inspectable;
- versioned;
- usable by both humans and automated agents.
Stable identity must not depend on host-language object identity.
## Typed relationships
Canonical concepts connect through explicit directional relationships.
Examples include:
```text
Schema extends Schema
StorageMapping maps Schema
Operation uses Policy
Operation may fail with Failure
Operation emits Event
Workflow waits for Event
View triggers Operation
Presentation places View
```
The authored direction is stored explicitly. Reverse relationships can be
derived by the runtime.
## Authored facts and derived facts
Dryv avoids forcing authors to maintain the same relationship twice.
If an Operation emits an Event, the Operation can author that forward
relationship. Runtime can derive an index of Event emitters for inspection or
template context.
This reduces contradictory state while preserving rich queries.
## One Schema concept
Typed structure reuses the same Schema concept across:
- operation inputs and outputs;
- event payloads;
- workflow data;
- nested fields;
- views and other typed interactions.
A request DTO, database entity, SDK model, or form model is normally a
pack-specific representation of canonical structure rather than a separate
canonical root.
## Serialization is transport
Runtime IR can be transported through formats such as JSON, JSONL, or YAML
without creating separate semantics.
A serialized Runtime IR document can be loaded without the original authoring
runtime. That is a core portability property.
## Provenance
Runtime IR should retain enough provenance to explain:
- which authored declaration produced a concept;
- where inherited or composed facts originated;
- which relationships were authored directly;
- which facts were derived later;
- how a generated result traces back to canonical meaning.
Provenance is part of explainability, not merely debugging metadata.
## The canonical-root test
Before introducing a new Runtime IR root, ask whether the concept has durable,
language-neutral meaning independent of how one target stack likes to generate
code.
If the idea exists only because a template or framework wants a role such as
controller, repository, DTO, page, or component, it normally belongs in the
pack rather than Runtime IR.
---
# Packs define code emission
Template packs turn Canonical Dryv Runtime IR into generated representation.
They own how software meaning becomes source code, configuration, documentation,
packages, project fragments, or complete projects.
Packs consume meaning. They do not redefine it.
## Layout and ownership
Each `dryv.pack.yaml` has one layout: `inject` (the default), `package`, or
`project`. An inject pack contributes files to an existing destination. Package
and project layouts describe reusable package or application output. The layout
is declared in the manifest; the repository folder name is organizational.
Templates normally produce Dryv-managed files. A resource filename with `.sf`
immediately before its renderer extension, such as `main.ts.sf.hbs`, produces a
scaffold: Dryv creates it only when absent and does not overwrite the project's
later edits.
Packs may declare logical generation actions. A project's `dryv.yaml` defines
reusable concrete actions under top-level `actions.files` and `actions.final`;
code destinations select them in order. The Engine resolves the action plan,
while the client runs the resulting argv in the project environment.
## What a pack declares
A reusable pack can declare:
- which canonical concepts it is interested in;
- why items are selected, grouped, or skipped;
- which template is associated with an invocation;
- which bounded context a template requires;
- which artifacts and symbols are planned;
- generated dependencies between planned artifacts;
- renderer requirements;
- output destinations;
- pack options and project bindings.
These declarations make generation explainable before rendering begins.
## The same vocabulary end to end
Pack selection uses the same canonical vocabulary as authoring and Runtime IR.
A pack can reason about Schema, Operation, Event, Workflow, View, Policy, and
other canonical concepts.
Target roles such as controller, entity, DTO, repository, screen, page, or SDK
model are usually representation choices made by a pack.
## Selection is explicit
Templates should not run because of hidden filename conventions or renderer
magic.
A pack explicitly selects canonical subjects and defines the scope of an
invocation. That lets Dryv explain:
- what matched;
- what did not match;
- why the template was selected;
- how selected subjects were partitioned into generation work.
## Template context is bounded
A template does not receive a live reference to the entire semantic graph.
The engine prepares ordinary JSON-compatible context from:
- the selected canonical subject;
- explicitly exposed relationships;
- derived runtime facts;
- pack options;
- project bindings;
- planned artifacts and generated dependencies;
- deterministic helpers where justified;
- trace and provenance information.
Bounded context improves explainability, memory use, renderer portability,
security, hashing, and cache invalidation.
## Renderers stay semantically narrow
A renderer has a deliberately small contract:
```text
template + bounded context + renderer options
↓
renderer
↓
rendered content + diagnostics
```
The renderer does not own semantic selection, canonical meaning, artifact
planning, dependency resolution, or filesystem mutation.
## Current renderer implementations
Dryv currently has template-server implementations for:
- Jinja;
- Handlebars;
- Liquid;
- Mustache.
Renderer support is separate from generated output language.
A Handlebars pack can emit TypeScript. A Jinja pack can emit Python, YAML, Rust,
Markdown, or another textual representation. The pack owns the target
representation.
## Generated symbols and dependencies
A planned artifact can declare that it exports a generated symbol. Another
artifact can declare that it requires that symbol.
The planner resolves the providing artifact and logical dependency. The template
then renders target-language syntax such as import, use, extends, or implements.
That separation keeps dependency meaning explicit without teaching the core
runtime every target language's syntax.
## Portable packs
A portable pack should make its requirements visible:
- renderer requirements;
- required project bindings;
- supported options;
- selected canonical subjects;
- output behavior;
- generated dependencies.
A user should be able to understand what a pack needs before running it.
---
# Plan exactly what will happen
Dryv separates semantic selection from rendering and plans generated output
before a client mutates a project.
Planning is where deterministic generation becomes visible.
```mermaid
sequenceDiagram
participant You
participant CLI as dryv CLI
participant Engine
You->>CLI: dryv plan
CLI->>Engine: Runtime IR + dryv.yaml
Engine-->>CLI: planned files, templates, paths
You->>CLI: dryv generate --dry-run
CLI->>Engine: render
Engine-->>CLI: files + trace
CLI-->>You: diff, nothing written
You->>CLI: dryv generate
CLI-->>You: asks, then writes
```
## Selection creates generation work
A pack starts by selecting canonical subjects.
The result should retain enough information to explain:
- which canonical subject matched;
- which selection rule caused the match;
- which candidates were skipped;
- how work was partitioned;
- which pack and template own the invocation.
Selection is semantic planning, not template rendering.
## Template invocation plans
A template invocation plan can carry information such as:
- stable invocation identity;
- pack identity;
- template identity;
- selected canonical subject or partition;
- requested context dependencies;
- planned artifact identity;
- planned generated symbols;
- generated dependencies;
- destination and output-path intent;
- provenance.
This model allows Dryv to inspect generation work before templates execute.
## Artifacts, symbols, and dependencies are different
A generated file is an artifact.
A target-language name exported from that artifact is a generated symbol.
A dependency says that one planned result requires another planned result or
symbol.
Keeping these concepts distinct allows packs to describe imports, exports,
barrels, inheritance, registration, or other target relationships without
collapsing them into filenames.
## Planning precedes mutation
The engine can return plans, diagnostics, traces, and generated artifacts to a
workspace-aware client.
The client decides how to show diffs and whether to apply changes to the real
filesystem.
This separation enables:
- dry-run workflows;
- editor previews;
- remote generation;
- browser tooling;
- collision detection;
- explicit create, update, delete, or conflict behavior.
## Explainability is a product contract
A user should be able to ask:
### Why was this selected?
Dryv should identify the canonical subject, pack, selection rule, and relevant
semantic facts.
### What did the template receive?
Dryv should expose the bounded context paths and explain where values came from.
### Why does this import or dependency exist?
Dryv should trace the declared generated dependency and the planned artifact or
symbol that satisfies it.
### Why does this file exist?
Dryv should trace the artifact through canonical meaning, pack, template,
invocation, renderer, and destination.
## Stable identity
Stable identities for canonical subjects, invocations, artifacts, symbols, and
dependencies make reproducible planning, collision detection, caching, and
tracing possible.
Identity must not depend on nondeterministic process state.
## Cache correctness
Reusable generation work is valid only while all output-affecting inputs remain
compatible.
Those inputs can include:
- canonical meaning;
- pack configuration;
- project bindings;
- template content;
- renderer identity and compatible version;
- relevant context dependencies.
Correct invalidation matters more than maximizing cache hits.
## Example trace
A trace may conceptually contain information like:
```text
artifact generated/users/user.ts
subject #/schemas/User
pack @example/typescript
template model
selected schema + public facet
context selected.fields, imports
renderer handlebars
dependsOn generated/shared/id.ts
result create
```
The exact presentation can differ by client, but the underlying explanation
should remain available.
---
# Dryv agent
The Dryv agent is a coding agent that runs on your machine. It reads and edits your project, runs commands, and uses Dryv itself: it can validate your contracts, plan generation, explain generated files and manage your tasks.
The agent runs inside the [local daemon](/docs/guides/local-daemon). It needs no Dryv account. It uses a model from a provider you choose, with **your own** provider API key. Dryv does not supply a model or a key.
> [!NOTE]
> The agent, tasks and the local daemon are in the current Dryv CLI. The published 0.1.0 build may not include them yet. See [Installation](/docs/usage/installation).
## When to use it
- You want an assistant that knows Dryv's loop (`validate`, `plan`, `generate`) and asks before it writes generated files.
- You want the agent to create and work through [tasks](/docs/guides/tasks) in your project.
- You want everything to stay on your machine, apart from the calls to your model provider.
## Before you start
You need:
- The `dryv` CLI. See [Installation](/docs/usage/installation).
- An API key from one of the supported model providers.
### Supported model providers
| Provider | Environment variable |
| ---------- | --------------------- |
| Google Gemini API | `GEMINI_API_KEY` |
| Groq | `GROQ_API_KEY` |
| Mistral | `MISTRAL_API_KEY` |
| Cerebras | `CEREBRAS_API_KEY` |
| OpenRouter | `OPENROUTER_API_KEY` |
A provider is skipped until its key is set. One variable can hold several keys separated by commas. The agent tries them in order and moves to the next key when one is rejected or rate limited.
## Set your provider key
Pick one way.
**In your shell.** Export the variable before the daemon starts:
```bash
export GEMINI_API_KEY="your-key"
dryv local restart
```
**In the daemon's credentials file.** Create `~/.dryv/local/credentials.yaml`. It maps variable names to a key or a list of keys:
```yaml title="~/.dryv/local/credentials.yaml"
GEMINI_API_KEY:
- first-key
- second-key
GROQ_API_KEY: another-key
```
Make it readable by you only, then restart the daemon:
```bash
chmod 600 ~/.dryv/local/credentials.yaml
dryv local restart
```
A variable already set in your environment wins over the file. The daemon logs a warning when the file can be read by other users.
## Start the agent in the terminal
From your project folder:
```bash
dryv code
```
`dryv agent` and the `dryvcode` command do the same thing. The command starts the local daemon if it is not running, then opens the full-screen interface. It needs an interactive terminal.
Type a request and press Enter. Type `/` to see the commands.
### Commands in the interface
| Command | What it does |
| --- | --- |
| `/help` | Show the commands. |
| `/init [project name]` | Create a project and link it to this folder. |
| `/status` | Show the runtime and the current project. |
| `/projects [get\|open ]` | List or open projects. |
| `/workspace` | Show the current workspace and its folders. |
| `/chats [open\|new\|rename\|archive\|delete]` | Manage chats. |
| `/resume [chat-id]` | Open a previous chat. |
| `/new` | Start a new chat. |
| `/model [backend-id model-id]` | Show or set the model for this chat. |
| `/context reset` | Start the next turn with fresh context. |
| `/approval [set ]` | Show or change the approval policy. See [Approvals](#approvals). |
| `/runs [run-id]` | List the runs in this chat, or inspect one. |
| `/interactions [interaction-id]` | List or inspect questions and approvals in this chat. |
| `/artifacts ` | Inspect an artifact the agent produced. |
| `/diff` | Show the latest diff. |
| `/knowledge ` | Search what the agent has stored. |
| `/browser` | Find or manage browser resources. |
| `/copy [max-characters]` | Copy recent transcript text to the clipboard. |
| `/theme` | Choose the terminal colours. |
| `/clear` | Clear the transcript on screen. |
| `/retry` | Retry the connection to the daemon. |
| `/quit` | Exit (also `/exit`). |
### Choose a model
Run `/model` to see the current selection. Set one with `/model `. The choice is saved for that chat.
## Run one command without the interface
`dryv code ` runs one command and exits. Add `--json` for machine-readable output. This is useful in scripts.
```bash
dryv code status
dryv code chats
dryv code runs get
dryv code approval set require_approval
```
| Command | What it does |
| --- | --- |
| `api start\|status\|stop\|restart\|logs` | Manage the local daemon. |
| `init [--name ]` | Create a project for this folder. |
| `status` | Show the runtime and current resources. |
| `projects [get\|open ]` | List or open projects. |
| `workspace ` | Show a workspace. |
| `chats [project-id]` | List chats. |
| `runs [chat-id]`, `runs get ` | List runs, or show one. |
| `interactions [interaction-id]` | List or show interactions. |
| `artifacts get\|content ` | Show an artifact's metadata or content. |
| `approval get ` | Show the approval policy. |
| `approval set ` | Change the approval policy. |
| `knowledge search `, `knowledge get ` | Search or read stored knowledge. |
| `browser installations\|resources` | List browsers or open browser resources. |
| `browser open [url]`, `browser close ` | Open or close a managed browser. |
| `cwd` | Print the working folder. |
| `logs [--tail ]` | Print the daemon log. |
| `open ` | Open a path. Also `open .`, `open logs`, `open config`. |
Options for `dryv code`:
| Option | Meaning |
| --- | --- |
| `--project ` | Workspace folder. Defaults to the current directory. |
| `--runtime-home ` | Use a different daemon home (same as `DRYV_LOCAL_HOME`). |
| `--endpoint ` and `--token ` | Use an explicit loopback daemon address and its token. |
| `--json` | Print machine-readable output. |
| `--plain` | Turn off terminal styling. |
## Use the agent in VS Code
The VS Code extension adds a **Dryv Agent** view with a chat. See [VS Code](/docs/guides/vscode#agent-chat).
## What the agent can do
The agent works only inside the folder of the current workspace.
| Tool group | Examples |
| --- | --- |
| Files | Read, list and search files. Write, edit, patch, move, copy and delete files. |
| Content | Read and compare content and images. |
| Shell | Run a process or a script. |
| Environment | Find an executable, read the platform and environment variables. |
| Dryv | `dryv.docs.read`, `dryv.project.validate`, `dryv.project.status`, `dryv.generate.plan`, `dryv.generate.explain`, `dryv.generate.apply`, `dryv.generate.undo`. |
| Tasks | `task.list`, `task.show`, `task.search`, `task.validate`, `task.create`, `task.update`, `task.start`, `task.check`, `task.comment`. |
The Dryv tools run the same CLI commands you would. They use the local Engine, so they need no key or login.
## Approvals
Each workspace has an approval policy for tools that change things:
| Policy | Effect |
| --- | --- |
| `require_approval` | The agent asks you before each change. This is the default. |
| `allow` | Changes run without asking. |
| `block` | Changes are refused. |
Tools that only read are not affected by the policy.
Writing generated files is always your decision. `dryv.generate.apply` and `dryv.generate.undo` ask for approval even when the policy is `allow`, and are refused when it is `block`. The agent can only apply a plan it created in the same run.
Change the policy with `/approval set ` in the interface, or `dryv code approval set `.
## Where your data stays
- The agent and its data live in the daemon's home, `~/.dryv/local` by default.
- Your prompts and the files the agent reads go to the model provider you chose.
- Nothing is sent to Dryv. Signing in is only needed for [task sync](/docs/guides/sync).
## Desktop app
A desktop app for the agent is in development. It is not available to download yet.
## Troubleshooting
**"Dryv interactive mode requires a TTY."** You ran `dryv code` with redirected input or output. Run it in a terminal, or use a one-shot command such as `dryv code status --json`.
**The agent cannot answer, or no model is listed.** No provider key is set for the daemon. Set one as shown above and run `dryv local restart`. A key exported after the daemon started is not seen until it restarts.
**"dryv-local was not found."** The CLI could not find the local daemon. See [Local daemon troubleshooting](/docs/guides/local-daemon#troubleshooting).
**The agent keeps asking for approval.** That is the default policy. Change it with `/approval set allow`. Generated-file writes still ask.
---
# Tasks
`dryv task` keeps your project's work as Markdown files inside the project. Each task is one file with YAML frontmatter. Tasks are grouped in **waves**. You, your teammates and the [Dryv agent](/docs/guides/agent) all read and change the same files.
Tasks work offline and need no account. Sign in only if you want to [sync them](/docs/guides/sync) to the Dryv web app and your other devices.
> [!NOTE]
> Tasks are in the current Dryv CLI. The published 0.1.0 build may not include them yet.
## When to use it
- You want a plan for a feature that lives next to the code.
- You want an agent to pick up work, record progress and hand it back.
- You want to see which files changed while a task was in progress.
## Set up a project
From your project folder:
```bash
dryv task init
```
This creates:
| Path | What it is |
| --- | --- |
| `task.yaml` | Task configuration. |
| `tasks/` | The task workspace. |
| `tasks/README.md` | How the workspace works. |
| `tasks/rules/task-writing.md` | The writing standard tasks must meet. |
| `AGENTS.md` | A managed block that tells agents how to use tasks. |
Use `--workspace ` to choose another folder. Run `dryv task init update` later to refresh the guide and the `AGENTS.md` block.
By default the task workspace is kept out of git. Dryv adds it to `.git/info/exclude`, never to `.gitignore`. See [Configuration](#configuration) to track it.
## Create and work on tasks
Create a wave, then a task in it:
```bash
dryv task wave create --title "Login flow"
dryv task create --title "Add password reset" --wave login-flow --priority high --assignee alice
```
Each task gets an id such as `TSK-9C598FB02513`. Waves are stored by week, for example `tasks/todo/work/W49/login-flow--b4c221/`.
Write the task body with `dryv task edit `, which opens `$EDITOR`. A task needs a real Goal, Context and checklist before you can start it. The rules are in `tasks/rules/task-writing.md`.
Then work through it:
```bash
dryv task start TSK-9C598FB02513 --track # move to in-progress and record git changes
dryv task check TSK-9C598FB02513 --item 1 # tick the first checkbox
dryv task comment TSK-9C598FB02513 --text "API done, UI left."
dryv task update TSK-9C598FB02513 --status completed
dryv task validate
```
Statuses are `planned`, `in-progress`, `blocked`, `completed` and `archived`. Priorities are `low`, `medium` and `high`.
## Agents and handover
The Dryv agent has task tools: `task.list`, `task.show`, `task.search`, `task.validate`, `task.create`, `task.update`, `task.start`, `task.check` and `task.comment`. Changes go through the agent's [approval policy](/docs/guides/agent#approvals).
Other agents use the same files through the CLI. `dryv task init` writes instructions for them into `AGENTS.md`, and `dryv task setup` can add more agent guidance.
To hand work to someone:
1. Set who owns it: `dryv task update --assignee `.
2. Leave a note: `dryv task comment --text "What is done, what is left, where to look."`.
3. Read the history with `dryv task activity ` and `dryv task comments `.
## Command reference
Run `dryv task --help` for the same list. `dryv tasks` is an alias.
| Command | What it does |
| --- | --- |
| `dryv task` | Show the workspace overview. |
| `init [--workspace ]` | Set up the project for tasks. |
| `init update` | Update the workspace guide and the `AGENTS.md` instructions. |
| `init --refresh-docs` | Refresh the task docs without prompting. |
| `project inspect` | Inspect the repository and suggest guidance. Read-only. |
| `setup` | Review and apply project documentation and agent guidance. |
| `setup plan --json` | Print a setup plan without writing files. |
| `setup apply --path ` | Apply a saved setup plan. |
| `tui`, `-f` | Open the full-screen interface. |
| `run` | Start the local dashboard and open it in a browser. |
| `doctor` | Check Bun and workspace health. |
| `info`, `status`, `stats` | Show workspace information and counts. |
| `tree` | Show the Markdown workspace paths. |
| `wave create\|list` | Manage waves. `group` is an alias. |
| `migrate` | Move old flat waves into week folders. |
| `list [filters]` | List active tasks. Add `--archived` for archived ones. |
| `show ` | Show a task or document. |
| `search ` | Search metadata and Markdown text. |
| `create` | Create a task in a wave. |
| `update ` | Change task metadata. |
| `edit ` | Edit the Markdown body in `$EDITOR`. |
| `archive `, `restore ` | Archive or restore. |
| `start [--track]` | Move to in-progress, optionally recording git changes. |
| `changes [--diff ]` | Show the git changes made while the task was in progress. |
| `comment --text "…"`, `comments ` | Add or list comments. |
| `move (--before\|--after \| --order N \| --wave )` | Reorder or move a task. |
| `attach `, `detach ` | Manage small attachments and links. |
| `template create\|list` | Manage task templates. Use with `create --template `. |
| `bulk [--status …]` | Change many tasks at once. |
| `activity ` | Show a task's timeline. |
| `checklist ` | Show a task's checkboxes by heading. |
| `check\|uncheck (--item N \| --section "Heading" \| --all)` | Tick or untick checkboxes. |
| `delete [--yes] [--force] [--cascade]` | Move a task, wave or document to the trash. |
| `undelete `, `trash list` | Restore from the trash, or list it. |
| `validate [scope]` | Validate tasks, docs, links and references. |
| `docs list\|show\|search\|tree\|open\|create` | Work with documents. |
| `index status\|rebuild\|verify` | Inspect or rebuild the index. |
| `registry` | List every registered task and document (`dryv.task.yaml`). |
| `sync [status\|now\|enable\|disable]` | Sync tasks with your Dryv account. See [Sync](/docs/guides/sync). |
Task fields: `--title`, `--wave` (or `--group`), `--status`, `--priority`, `--assignee`, `--project`, `--tag a,b`, `--due YYYY-MM-DD`, `--depends-on TSK-…`, `--extra JSON`.
Common options: `--workspace `, `--json`, `--plain`, `--no-color`, `--quiet`, `--verbose`, `--no-open`.
## Configuration
Settings live in a `tasks:` block in `dryv.yaml`. If there is no such block, `task.yaml` is read instead.
```yaml title="dryv.yaml"
tasks:
workspace: tasks # folder with the task files
documents: [docs, notes] # other folders whose Markdown files are registered
sync:
enabled: false # turned on by `dryv task sync enable`
ignore: ["*.draft.md"] # files never uploaded
git:
track: false # true keeps the workspace visible to git
quality:
mode: reject # reject, warn or off
tracking:
enabled: true # record file changes while a task is in progress
```
Every key is optional; `tasks: {}` uses the defaults. The block also accepts `idPrefix`, `identity`, and `organization`. The CLI and the local daemon accept the same keys, so `registry` and `sync` work with any valid block.
## The registry
`dryv task registry` lists every file Dryv knows about: the files in the task workspace and the Markdown files under `documents` folders. The list is written to `dryv.task.yaml` at the project root. It is rebuilt from the files, so do not edit it.
Some files are never registered, so never uploaded: hidden files, links, files over 1 MB, `node_modules`, and names that often hold secrets (`.env*`, `*.pem`, `*.key`, `id_*`, `credentials*`, `secrets.*`).
`dryv task registry` and `dryv task sync` use the [local daemon](/docs/guides/local-daemon) and start it if needed.
## Troubleshooting
**"Write the missing content … then try again."** The task or its wave plan is too thin to start. Fill in the sections named in the message, or relax `quality.mode`.
**"No Task workspace in the project."** The CLI looks for the workspace only in the project root, the folder with `dryv.yaml`. It never uses a `tasks` folder from a parent directory. Run `dryv task init` in your project first, add a `tasks:` block, or pass `--workspace`.
**"The local Dryv daemon is not reachable."** Only `registry` and `sync` need the daemon. See [Local daemon](/docs/guides/local-daemon#troubleshooting).
---
# VS Code
The Dryv extension for VS Code brings the Dryv workflow, the [agent](/docs/guides/agent) and [tasks](/docs/guides/tasks) into the editor. It uses the [local daemon](/docs/guides/local-daemon) on your machine. It needs no account. Sign in only for Platform features such as [sync](/docs/guides/sync).
## Install
You need VS Code 1.108 or later and the `dryv` CLI. The extension starts the local daemon through the CLI.
1. Install the CLI. See [Installation](/docs/usage/installation).
2. Download the extension's `.vsix` from the [download page](/download).
3. In VS Code, open **Extensions**, choose **…** then **Install from VSIX**, and pick the file.
4. Open a folder that contains a `dryv.yaml` and trust the workspace.
The extension turns on when the folder has a `dryv.yaml` or `dryv.author.yaml`, or when you open one of its views.
> [!WARNING]
> Do not enable this extension and the open source Dryv extension at the same time. Both register `dryv.*` commands.
If `dryv` is not on your `PATH`, set **Dryv › Cli: Command** (`dryv.cli.command`) to its full path.
## Views
The extension adds two icons to the activity bar.
**Dryv**
- **Workspace.** Your Dryv projects, with buttons to refresh, open the output, show info, build authoring and restart the connection.
- **Tasks.** Tasks and documents from the project's [task registry](/docs/guides/tasks#the-registry). Create, filter, refresh, and show or hide archived tasks from the view's title bar. Right-click a task to start it or tick a step.
**Dryv Agent**
- **Chat.** A chat with the Dryv agent. You can move it to the secondary sidebar with **Dryv: Move Chat to Secondary Sidebar**.
## Generate code
Use the Command Palette (Ctrl+Shift+P or Cmd+Shift+P):
1. **Dryv: Validate** checks your contracts and `dryv.yaml`.
2. **Dryv: Plan** shows what would be generated.
3. **Dryv: Generate Dry Run** shows the diff without writing.
4. **Dryv: Generate** shows the changes and asks **Apply N Dryv generated changes?** before writing.
**Dryv: Check Generated Files** reports whether generated output is up to date. Results and diagnostics appear in the **Dryv** output and the Problems panel.
By default the extension validates again shortly after you change a Dryv file. Auto-validation never approves changes to your environment.
To learn where a generated file came from, right-click it in the Explorer and choose **Dryv: Trace Current File** or **Dryv: Explain Artifact**.
## Agent chat
1. Set a model provider key for the daemon. See [Dryv agent](/docs/guides/agent#set-your-provider-key).
2. Run **Dryv: Open Chat**.
3. Pick a model with **Dryv: Select Chat Model**.
4. Type a request.
To give the agent context, select code and right-click: **Dryv: Ask About Selection**, **Dryv: Add Selection to Context** or **Dryv: Add Current File to Context**.
Stop a response with **Dryv: Stop Current Response**. Start over with **Dryv: New Chat**. Changes still follow the agent's [approval policy](/docs/guides/agent#approvals).
## Commands
| Command | What it does |
| --- | --- |
| Dryv: Sign In | Sign in to the Dryv Platform in your browser. |
| Dryv: Sign Out | Sign out of the Dryv Platform. |
| Dryv: Info | Show the Engine and its template servers. |
| Dryv: Workflow Capabilities | List which workflows the Engine supports. |
| Dryv: Check Environment | Check that the project and Engine are ready. |
| Dryv: Build Authoring | Compile your authored source to Runtime IR. |
| Dryv: Validate | Validate the project. |
| Dryv: Plan | Show the planned files. |
| Dryv: Generate Dry Run | Show the diff without writing. |
| Dryv: Generate | Show the diff and apply it after you confirm. |
| Dryv: Check Generated Files | Check whether generated files are up to date. |
| Dryv: Show Changes | Show pending generated changes. |
| Dryv: Open Dryv Output | Open the Dryv output channel. |
| Dryv: Restart API Connection | Reconnect to the Engine. |
| Dryv: Refresh | Refresh the Workspace view. |
| Dryv: Trace Current File | Explain where the current generated file came from. |
| Dryv: Explain Artifact | Explain a generated file. |
| Dryv: Open Chat | Open the agent chat. |
| Dryv: New Chat | Start a new chat. |
| Dryv: Stop Current Response | Stop the agent's current answer. |
| Dryv: Select Chat Model | Choose the model for the chat. |
| Dryv: Open Managed Browser | Open a browser the agent can use. |
| Dryv: Show Runtime Status | Show the agent runtime's status. |
| Dryv: Move Chat to Secondary Sidebar | Show how to move the chat. |
| Dryv: Ask About Selection | Ask the agent about the selected code. |
| Dryv: Add Selection to Context | Add the selection to the chat. |
| Dryv: Add Current File to Context | Add the open file to the chat. |
| Dryv: Reconnect Local Daemon | Reconnect to, or restart, the local daemon. |
| Dryv: Refresh Tasks | Reload the Tasks view. |
| Dryv: Create Task | Create a task. |
| Dryv: Start Task | Start a planned or blocked task. |
| Dryv: Tick Task Step | Tick a checkbox in a task. |
| Dryv: Filter Tasks | Filter the Tasks view. |
| Dryv: Show or Hide Archived Tasks | Toggle archived tasks. |
## Settings
| Setting | Default | What it does |
| --- | --- | --- |
| `dryv.cli.command` | `dryv` | The CLI that starts the daemon and runs `dryv task`. Use a path, or a command such as `bun /path/to/dryv.ts`. |
| `dryv.local.runtimeHome` | empty | A different daemon home. Empty uses the default, `~/.dryv/local`. |
| `dryv.validation.auto` | `true` | Validate again after Dryv files change. |
| `dryv.validation.delayMs` | `1200` | How long to wait after a change before validating, in milliseconds. |
| `dryv.notifications` | `true` | Show short success and failure notifications. |
| `dryv.connection.refreshSeconds` | `30` | How often to check the connection while a Dryv workspace is open. |
| `dryv.debug` | `false` | Log more transport and process details. Project content and secrets are never logged. |
The extension also adds a **Dryv** file icon theme. Choose it under **Preferences: File Icon Theme**.
## Troubleshooting
**The views say they cannot connect.** Run **Dryv: Reconnect Local Daemon**. If that fails, run `dryv local logs` in a terminal. Check that `dryv.cli.command` points at a working CLI.
**Commands are missing or run twice.** Disable the open source Dryv extension.
**The chat has no models.** Set a provider key for the daemon, then run `dryv local restart` and **Dryv: Reconnect Local Daemon**.
**Agent commands are disabled in the editor menu.** They need a trusted workspace. Run **Workspaces: Manage Workspace Trust**.
---
# Local daemon
The local daemon is a background process on your machine. It runs:
- the **Dryv Engine**, which validates, plans and generates;
- the **agent runtime** behind [`dryv code`](/docs/guides/agent) and the VS Code chat;
- **task registry and sync** for [tasks](/docs/guides/tasks).
It listens only on your own machine (`127.0.0.1`). It needs no Dryv account and no key.
## How clients use it
You rarely start the daemon yourself.
- **CLI.** Commands that need the Engine, such as `dryv validate`, `plan` and `generate`, start the daemon when it is not running and use its Engine. `dryv code` and `dryv task sync` also start it.
- **VS Code.** The extension runs `dryv local connect --json` to start or find the daemon.
If you pass `--api ` or set `DRYV_API_URL`, the CLI uses that Engine instead and does not start the daemon.
## Ports
The daemon picks free ports when it starts. It serves two addresses:
- the agent API, for example `http://127.0.0.1:41000/v1`;
- the Engine, on its own port.
Each start creates a new random access token for the agent API. Clients read the addresses and token from the daemon's connection file. You never need to copy them.
To choose the agent API port, pass `--port` to `connect`, `start` or `restart`. The Engine port is always picked automatically.
## Commands
```bash
dryv local connect # start the daemon if needed and print how to reach it
dryv local status # is it running?
dryv local logs # print the log (last 200 lines)
dryv local restart # stop it and start a fresh one
dryv local stop # stop it
```
| Action | What it does | Options |
| --- | --- | --- |
| `connect` | Starts the daemon if it is not running, then prints its connection details. | `--host`, `--port`, `--runtime-home`, `--json` |
| `start` | Same as `connect`. | Same as `connect` |
| `status` | Reports whether the daemon is running. Exits with status 1 when it is not. | `--runtime-home`, `--json` |
| `restart` | Stops the daemon and starts a new one. Refuses while agent runs are active. | `--force`, `--host`, `--port`, `--runtime-home`, `--json` |
| `stop` | Stops the daemon gracefully. | `--runtime-home`, `--json` |
| `logs` | Prints the daemon log. | `--tail ` (default 200), `--runtime-home`, `--json` |
| `link status\|connect\|disconnect` | Shows or changes whether the daemon holds your Platform sign-in. | `--platform `, `--json` |
`restart` will not interrupt work. If runs are active it stops and tells you how many. Use `dryv local restart --force` to restart anyway.
## Where it keeps its files
The daemon home is `~/.dryv/local`. Set `DRYV_LOCAL_HOME` to use another folder.
| Path | Contents |
| --- | --- |
| `daemon.json` | How clients reach the running daemon. Removed when it stops. |
| `credentials.yaml` | Optional model provider keys. See [Dryv agent](/docs/guides/agent#set-your-provider-key). |
| `data/logs/api/api.log` | The log that `dryv local logs` prints. |
| `task-sync.json` | Projects with task sync turned on, so sync resumes after a restart. |
## Signing in and the daemon
`dryv login` stores your Platform session in your operating system's keychain. Each time the CLI reaches the daemon, it hands the session to the daemon, which keeps it in memory only. The daemon uses it for [task sync](/docs/guides/sync).
- `dryv local link status` shows whether the daemon holds a session.
- `dryv local link connect` hands it over now. It fails if you are not signed in.
- `dryv local link disconnect` makes the daemon forget it.
A daemon restarted without the CLI has no session until the next CLI command. Remote control of your machine from the web or mobile app is not available yet.
## Troubleshooting
**"dryv-local was not found."** The CLI looks for the daemon in this order: the `DRYV_LOCAL_COMMAND` variable, the copy packaged with the CLI, `dryv-local` on your `PATH`. Reinstall the CLI, or set `DRYV_LOCAL_COMMAND` to the command that runs `dryv-local`.
**A command hangs, then fails to connect.** Run `dryv local logs` to see why the daemon did not start, then `dryv local restart`.
**The agent does not see a new provider key.** Keys are read when the daemon starts. Run `dryv local restart`.
**You want to use another Engine.** Pass `--api ` or set `DRYV_API_URL`. The daemon is then not used for Engine commands.
---
# Playground
The Playground is a workspace in your browser. It has a file explorer, an editor, a terminal, diffs and a preview. Each Playground workspace has its own Dryv Engine. Only you and the members of your organization can reach it, through the Platform.
The Playground needs a Dryv account. To work on your own machine instead, use the [CLI](/docs/usage/cli) or [VS Code](/docs/guides/vscode), which need no account.
## When to use it
- You want to try Dryv without installing anything.
- You want to share a running preview with your team.
- You want to work on a project from any computer.
## Create a project
1. Sign in at [app.dryvcode.com](https://app.dryvcode.com) and open **Playground**.
2. Start a new project, or open `/playground/new`.
3. Choose the organization the project belongs to. You need permission to create projects there. See [Organizations](/docs/platform/organizations).
4. Name the project.
5. Choose a starter:
- **Contract authoring language:** TypeScript or Python.
- **Project type:** for example **Next.js + API contracts** or **OpenAPI + JSON Schema**.
- **Data storage:** no database (data resets when the app restarts), a PostgreSQL starter, or an existing PostgreSQL database.
6. Preview the starter files, then choose **Create and generate**.
Instead of a starter you can connect a GitHub repository. See [GitHub](#github).
## Work in the workbench
Open a project from **Playground** to get the workbench.
- **Explorer and editor.** Edit any file. Search files by name with the palette; type `>` for commands.
- **Snapshots.** Save your files as a snapshot. Runs use saved snapshots. You can restore an earlier snapshot; existing snapshots are kept.
- **Operations.** Run Dryv on a snapshot:
- **Validate**: check contracts and configuration.
- **Plan**: show what generation would change.
- **Generate**: write generated files to the run's output.
- **Runs.** See each run's output. Copy a run's output into the workspace, or stop a run.
- **Console.** Commands run on your Playground's Engine.
- **Activity.** See what happened in the project.
## Run your app
1. Open **Application** and choose **Start workspace**.
2. Install dependencies, then check and run your app from the terminal.
3. When the app is ready, its private preview opens.
Stopping the workspace interrupts running commands. Your files and the project database are kept.
### Database
A project can use:
- a **private PostgreSQL** database for the workspace, with no public port. Its data survives workspace stop and start;
- **your own PostgreSQL** database. Enter its connection string and, if needed, a custom certificate authority. Dryv can test the connection with a read-only query.
SQL files under `database/` are applied only after you review them.
## Share a preview
A preview starts private: only members of the organization can open it, and its address works for one hour. Reopen the preview for a fresh address.
To share it, choose **Share preview**, then:
- **Create unlisted link**: anyone with the link can open it;
- **Publish publicly**: it is published for anyone to open.
You can also open the generated site of a run, after confirming who will be able to see it.
## Download your work
- **Download the open snapshot as ZIP.**
- **Download the selected run's output as ZIP.**
## GitHub
The Playground connects to GitHub through the **Dryv GitHub App**.
1. Open **Source control** and choose **Connect a Git repository**.
2. Connect your GitHub account and choose which repositories the app can access.
3. Pick a repository. Connecting keeps the files already in the project.
4. Create or choose a branch, review the changed files, then commit and push.
Changes are reviewed before every commit. Deletions and replacements need your confirmation.
## Troubleshooting
**"Sign in to use the Playground."** The Playground needs an account. Sign in, or use the CLI locally.
**"Choose an organization where you have permission to create projects."** Your role in that organization cannot create projects. Ask an owner or admin.
**"Save files as a snapshot to run them."** Runs use saved snapshots. Save first.
**"Runtime connection lost."** The worker is busy or restarting. Wait, then retry.
---
# Sign in and sync
Everything in Dryv works without an account. Sign in when you want to:
- sync a project's [tasks](/docs/guides/tasks) to your account and see them in the web app;
- [publish packs](/docs/guides/publishing) or use private packs;
- use the [Playground](/docs/guides/playground);
- connect an [MCP client](/docs/guides/mcp);
- download or export your data.
## Sign in from the CLI
```bash
dryv login
```
The CLI prints a link and a code, and opens your browser. Sign in at [app.dryvcode.com](https://app.dryvcode.com) and approve the code. The CLI waits until you approve.
Check who you are signed in as:
```bash
dryv whoami
```
Sign out, which also revokes the session:
```bash
dryv logout
```
`dryv login`, `logout` and `whoami` use the Dryv Platform API at `https://api.dryvcode.com`. To use another Platform address, pass `--platform ` or set `DRYV_PLATFORM_URL`.
The session is stored in your operating system's keychain. Where no keychain is available, the CLI stores it in `~/.config/dryv/platform-session.json`, readable only by you, and tells you so. The CLI hands the session to the [local daemon](/docs/guides/local-daemon#signing-in-and-the-daemon), which keeps it in memory only.
Login options: `--platform `, `--json`, `--events` (print the device code as JSON on standard error, for tools). `--no-input` makes login fail at once, because it always needs a browser approval.
## Turn on task sync
Sync is off for every project until you turn it on.
```bash
dryv login
dryv task sync enable
```
Dryv asks before it uploads anything. In scripts, pass `--yes`. Turning sync on:
1. Creates a task workspace in your account, or links to one you name.
2. Uploads the task workspace and the registered documents.
3. Keeps watching the files and syncs changes a few seconds after you stop editing.
Only [registered files](/docs/guides/tasks#the-registry) are uploaded. Secret-looking files, hidden files and files over 1 MB never are.
Options for `enable`:
| Option | Meaning |
| --- | --- |
| `--workspace-id ` | Link to an existing task workspace, for example one you created on another computer. |
| `--project-key ` | The key for a new task workspace. Defaults to the folder name. |
| `--name ` | The display name for a new task workspace. Defaults to the folder name. |
| `--yes` | Confirm the upload without a prompt. |
## Check and control sync
```bash
dryv task sync status # on or off, state, workspace id, last sync, conflicts
dryv task sync now # sync immediately
dryv task sync disable # stop syncing this project
```
`status` shows one of `disabled`, `idle`, `syncing`, `offline` or `error`.
## Use the same tasks on another computer
1. On the first computer, run `dryv task sync status` and copy the workspace id.
2. On the second computer, clone the project, sign in, and run:
```bash
dryv task sync enable --workspace-id
```
Both computers should use the same `tasks:` settings, so commit `dryv.yaml`.
## Conflicts
If a file changed differently on two devices, Dryv keeps your local version and saves the other one next to it as `.conflict-.md`. `dryv task sync status` counts them. Merge the content by hand and delete the conflict copy.
A file you edit while a download is being applied is never overwritten. The incoming version becomes a conflict copy instead.
## Offline
When the network is down, changes queue up and Dryv retries with a growing delay, up to five minutes. When the daemon restarts, it resumes syncing every project that had sync on.
## See your tasks on the web
Open [app.dryvcode.com/tasks](https://app.dryvcode.com/tasks). Task workspaces are listed by organization. You can also open one by id. Each task shows its status, checklist, linked files and comments.
The mobile app is coming soon.
## Troubleshooting
**"Not signed in" or `sync enable` fails.** Run `dryv login`, then `dryv local link status` to check the daemon holds your session. If you restarted the daemon, run any `dryv` command once so the CLI hands the session over again.
**`dryv login` cannot connect.** Check your network. If you set `DRYV_PLATFORM_URL` or `--platform`, check that the address is right, or unset it to use `https://api.dryvcode.com`.
**State is `error`.** Run `dryv task sync status` to read the last error. Errors that retrying cannot fix, such as an archive over 25 MB or a revoked session, are not retried. Fix the cause, then run `dryv task sync now`.
**A file is missing on the other device.** It may not be registered. Run `dryv task registry` on both devices and compare.
---
# Publish packs
You can publish your own packs to the Dryv pack registry, under a namespace such as `@you`. A pack is **public**, so anyone can find and install it, or **private**, so only people with access to the namespace can use it.
Publishing needs a Dryv account. Building and testing a pack does not. See [Test and publish](/pack-builders/test-and-publish) for the checks to run first.
## 1. Create a namespace
1. Sign in at [app.dryvcode.com](https://app.dryvcode.com).
2. Open **Settings → Pack namespaces**.
3. Choose **Create a namespace**. Use lowercase letters, numbers and hyphens, starting with a letter or number.
You can move a namespace to another account or to an organization from the same page. The other side accepts it under **Incoming**.
## 2. Package the pack
Make an archive of the pack folder with `dryv.pack.yaml` and `README.md` at its root.
```bash
tar -czf clinic-pack.tar.gz -C path/to/clinic-pack .
```
The archive must be a `.tar.gz` or `.tgz` file of 48 MiB or less.
## 3. Release it
1. Open **Packs → Release a pack** (`/packs/release`).
2. Choose the namespace under **Publish under** and enter the pack name.
3. Under **Who can use it**, choose **Private** or **Public**.
4. Upload the archive and add release notes.
5. Choose **Check the release**. The registry reads the manifest, checks it and lists every file it will publish.
6. Review the list, then choose **Publish private** or **Publish public**.
Nothing is published until you confirm.
## Use a published pack
Find packs at [packs.dryvcode.com](https://packs.dryvcode.com), or with `dryv pack search`. Add one to a project by its package name in `dryv.yaml`:
```yaml title="dryv.yaml"
sources:
packs:
clinic:
package: "@you/clinic-pack"
```
Add `version:` to pin a version. See [Find and use packs](/docs/usage/packs) for how to activate it.
## Use private packs
Public packs need no sign-in. To use a private pack, sign in first so the CLI can send your session to the registry:
```bash
dryv login
dryv validate
```
The CLI uses the registry at `https://api.dryvcode.com`. Set `DRYV_PLATFORM_URL` only to use another Platform address. See [Sign in and sync](/docs/guides/sync#sign-in-from-the-cli).
## Troubleshooting
**"Create a namespace first."** You have no namespace yet. Create one in **Settings → Pack namespaces**.
**"The archive is larger than 48 MiB."** Remove build output and dependencies from the pack folder and package it again.
**A private pack is not found from the CLI.** Run `dryv whoami`. If you are not signed in, or signed in to another Platform address, sign in again with the right `DRYV_PLATFORM_URL`. Check that your account has access to the namespace.
---
# Connect an MCP client
The Dryv Platform has an MCP server. An AI assistant that supports MCP can use it to search the Dryv docs and to read, validate, plan and generate your Playground projects.
The server is at:
```text
https://api.dryvcode.com/mcp
```
It uses Streamable HTTP. You need a Dryv account. There are no tokens to copy: your client signs you in with OAuth in the browser.
## Connect
1. Add a remote MCP server in your client with the address above. Most clients call this a "remote", "HTTP" or "Streamable HTTP" server.
2. Connect. The client opens your browser.
3. Sign in to Dryv if you are not signed in. Your email must be verified.
4. The consent page shows the app's name, where the answer goes and what each permission allows. Choose **Approve** or **Decline**.
The client can now use the tools you approved.
## Permissions
| Scope | What the client can do |
| --- | --- |
| `mcp:read` | Search the docs, list your organizations and projects, read snapshots, files and activity, and start validate and plan runs. |
| `mcp:write` | Also start generate runs and restore snapshots. |
A client with read access only does not see the write tools.
## Tools
| Tool | Scope | What it does |
| --- | --- | --- |
| `documentation_search` | read | Search the public Dryv docs. Returns titles, links and short excerpts. |
| `organizations_list` | read | List your organizations and your role in each. |
| `projects_list` | read | List the projects in an organization you can read. |
| `project_snapshots_list` | read | List a project's saved snapshots. |
| `project_snapshot_files_list` | read | List the paths in a snapshot. No file contents. |
| `project_snapshot_text_file_read` | read | Read one UTF-8 text file of up to 64 KiB from a snapshot. |
| `project_activity_list` | read | List recent project activity. |
| `project_validate` | read | Validate a snapshot in a hosted run. Never changes files. |
| `project_plan` | read | Plan generation for a snapshot. Never writes files. |
| `project_run_get` | read | Read a run's status, report and output paths. |
| `project_generate` | write | Generate from a snapshot. The output stays a private run output; it is never written into the project. |
| `project_snapshot_restore_propose` | write | Prepare a snapshot restore. Changes nothing until confirmed. |
| `project_snapshot_restore_confirm` | write | Confirm a proposed restore within 10 minutes. |
Run tools use the latest snapshot when you do not name one. They wait up to 30 seconds by default for the result; use `project_run_get` to keep waiting.
## Disconnect a client
Open **Settings → Connected apps** in [app.dryvcode.com](https://app.dryvcode.com) and disconnect the app. Its access ends at once.
Access tokens last one hour. The client refreshes them for up to 30 days while you stay connected.
## Use Dryv on your machine instead
The MCP server works on your Playground projects. To let an assistant work on a project on your own machine, it can run the `dryv` CLI with `--json --no-input`. See [Agents and CI](/docs/usage/agents-and-ci). That needs no account.
## Troubleshooting
**The client gets "401 Unauthorized".** It has not signed in yet, or its access was revoked. Reconnect it.
**The browser shows an error before the consent page.** The client sent an address Dryv does not accept. Check the client's MCP setup, then try again.
**A write tool is missing.** You approved read access only. Disconnect the app and connect again, approving write access.
---
# Configure a project with dryv.yaml
Usage is intentionally the simplest Dryv tier.
The user-facing project file is `dryv.yaml`. It connects an authored source or
serialized Runtime IR with active packs, project-specific bindings, logical
destinations, and build behavior.
It does not become another semantic authoring language.
## The usage contract
A project configuration should answer:
1. What software description are we using?
2. Which packs are active?
3. What does each pack require from this project?
4. Where should generated artifacts go?
5. How should this generation run?
## Example
```yaml
version: dryv/v1alpha1
sources:
authoring:
model:
type: typescript
path: dryv/contracts
entrypoint: index.ts
packs:
local: { path: dryv/packs }
actions:
format:
stage: files
extensions: [.ts]
commands:
- run: [bun, x, prettier, --write, $(files)]
destinations:
ir:
compiled: { path: .dryv/ir }
models:
path: src/_gen/models
actions:
- { $ref: "#/actions/format" }
services:
path: src/_gen/services
actions:
- { $ref: "#/actions/format" }
authoring:
source: { $ref: "#/sources/authoring/model" }
destination: { $ref: "#/destinations/ir/compiled" }
packs:
models:
source:
$ref: "#/sources/packs/local"
path: models
destination: { $ref: "#/destinations/models" }
service-contracts:
source:
$ref: "#/sources/packs/local"
path: service-contracts
destination: { $ref: "#/destinations/services" }
build:
cache: reuse
default_action: generate
```
The top-level `actions` registry defines reusable project commands. Each action
declares `stage: files` or `stage: final`. Each code destination selects actions
in an ordered list of explicit `$ref` entries to `#/actions/`.
File actions run on staged generated files before comparison. Final actions
run after changed files are applied.
Dryv-owned keys use `snake_case`; Dryv-owned fixed values remain kebab-case or
dot-case. For keys you create, such as pack, template, selection and destination
names, prefer one word or kebab-case for two words (`entity-index`). Dryv
preserves these user-authored identifiers rather than rewriting them.
## Semantic source
A source can identify authored software that must be compiled by an Author
implementation, or it can identify serialized Canonical Runtime IR. Authored
source uses `path` for the source boundary and `entrypoint` for the compiler
entry file relative to that boundary.
The downstream runtime and pack model does not change based on which authoring
language originally produced the meaning.
## Packs
Projects can activate one or several packs.
Each pack remains responsible for declaring what it generates, what it selects,
what renderer capabilities it needs, and what options or bindings are required.
Usage chooses and configures packs. It does not redefine their selection logic.
## Project bindings
Reusable packs sometimes need project-specific values that cannot be portable
canonical meaning.
Those values belong in explicit project bindings or supported pack options, not
in hidden template conventions.
## Logical destinations
Destinations are resolved before real filesystem mutation.
That separation lets Dryv plan project-relative output while clients retain
control over the actual workspace.
Logical destinations make dry-runs, editor previews, remote execution, and safe
collision detection possible.
## Multiple packs
When several packs are active, Dryv must reason about the combined generation
plan.
The runtime should detect project-wide output conflicts rather than allowing one
pack to silently overwrite another pack's artifacts.
## Cache behavior
Usage can control supported cache modes independently from whether output is
applied.
Cache behavior must never change canonical meaning or hide an invalid plan.
## PostgreSQL partition layouts
Partitioning is canonical schema storage meaning under `facets.storage.partitioning`.
Declare it in the Author SDK or Runtime IR; project usage only supplies the connection
and pack activation. The owner explicitly changed the previous usage-only placement on
25 November 2026. There is one declaration authority and no usage override or compatibility
alias. All contracts remain v1alpha1.
```ts
storage("captures")
.primaryKey("id", "capturedOn")
.partitioning({
strategy: "range",
keys: ["capturedOn"],
partitions: [],
series: {
start: "2026-01-01",
end: "2027-01-01",
unit: "month",
name: "captures_{year}_{month}",
},
});
```
LIST supports one scalar key, as required by PostgreSQL. RANGE and HASH support ordered
composite `keys`. LIST bounds use scalar `values`; RANGE bounds are ordered `lower`/`upper`
tuples with the same arity as `keys`, with inclusive lower and exclusive upper bounds.
A null endpoint or trailing null tuple components mean MINVALUE/MAXVALUE. HASH bounds
use `modulus` and `remainder`; compatible mixed moduli are checked for divisibility and
overlap. Hash layouts cannot have a default partition. Explicit `default` bounds cover
otherwise uncovered LIST/RANGE values. Nested layouts are supported up to four levels
and 1024 physical children per logical table.
A bounded calendar `series` supports day, month and year units with a positive step.
Start/end dates and name placeholders (`{year}`, `{month}`, `{day}`) are explicit. Monthly
and yearly series start on calendar boundaries; the end must align with the chosen step.
The Engine expands the series deterministically without consulting a clock. Extending the
end produces additive migration steps for future partitions. No scheduler, automatic expiry,
implicit data deletion or distributed sharding is introduced.
Primary keys and unique indexes must contain all keys in the complete partition tree.
Composite references must include the target route keys; required companion fields let
one composite foreign key preserve the authored scalar relation. Nullable companions do
not silently replace stronger scalar enforcement. Canonical validation checks names, key
resolution/types, tuple arity, bounds, calendar intervals and effective key compatibility.
Physical child names are unique within their namespace, lowercase PostgreSQL identifiers
of at most 63 characters. SQL syntax and field naming variants remain pack responsibilities.
Capable persistence packs declare `capabilities.partitioning: true`. They receive the
normalized layout at `schema.facets.storage.partitioning`, with `keys` as NameContext lists
and parent-before-child flattened partitions; an aggregate projection is also available at
`pack.connection.partitioning`. SQL packs and migrations consume the same canonical layout.
Initial and additive SQL generation, exact numeric/UUID/timezone normalization, nested
parent ordering and catalog topology verification are supported. Converting populated tables,
changing/removing bounds or keys, or adding routes beside a populated default partition
requires an explicit reviewed migration intervention and verification. The Engine never
widens keys or moves/deletes existing rows implicitly. RANGE keys currently cover numeric,
date and timestamp values; expression keys, custom collations/operator classes and tablespaces
are outside the supported typed adapter. An inherited layout cannot be overridden.
---
# Find and use packs
Packs are reusable implementations: they turn your definitions into NestJS controllers, TypeORM entities, Zod schemas, FastAPI routes, Flutter clients and more. Official packs are published to the Dryv pack registry, which the Platform API serves publicly. The CLI and the [pack catalogue](https://packs.dryvcode.com) both read it, with no sign-in.
## Search and read
```bash
dryv pack search validation # find packs by name, language, framework or tag
dryv pack info inject/backend/nestjs
dryv pack describe inject/backend/nestjs # the full README, what it needs and provides
dryv pack explain inject/backend/nestjs # how to bind and activate it in dryv.yaml
```
Use `--json` for scripts and agents. Retired packs stay readable but are marked retired.
## Add a pack
```bash
dryv pack add inject/backend/nestjs --activation server --destination src/server --yes
```
This writes an explicit activation to `dryv.yaml`, pinned to the **commit** the registry has published, so your generation is repeatable. The registry only tracks each pack's latest state; GitHub (`dryvcode/packs`) keeps the history. Move to a newer commit on purpose with `dryv pack update`.
## Needs and provides
A pack can need capabilities from other packs, for example `schema.persistence`. Bind them in `dryv.yaml`:
```yaml
packs:
server:
source: { $ref: "#/sources/packs/official", path: inject/backend/nestjs }
destination: { $ref: "#/destinations/server" }
bind:
schema.persistence: { $ref: "#/packs/entities" }
```
`dryv pack explain` lists exactly which capabilities a pack needs.
## Offline and your own packs
Without network access the CLI falls back to a local checkout of the packs repository (`DRYV_PACKS_REPO`). To build your own packs see [Extensibility](/docs/ecosystem/extensibility) and `dryv pack init`.
---
# Agents and CI
Dryv is built to be driven by scripts and agents as safely as by people.
## Give an agent the context
`dryv init` writes `dryv/README.md` and a Dryv block in `AGENTS.md`. Refresh them any time:
```bash
dryv docs --write
```
Agents can read the built-in guides offline: `dryv docs`, `dryv docs dryv-yaml`, `dryv docs errors`, `dryv docs agents`.
## Rules an agent should follow
- Use `--json --no-input` and branch on `status` and `code`.
- Order: `dryv doctor`, `validate`, `plan`, `generate --dry-run`, then `generate --yes`.
- Never hand-edit managed generated files; change the definitions or the pack.
- Ask the user before choosing names, structure or behaviour.
- Use `dryv why ` before touching a generated file.
## CI
```bash
dryv generate --check --json --no-input
```
It exits with status 2 when generated output is out of date. Grant workspace trust explicitly with `dryv trust --yes`: Dryv never trusts a workspace on its own in CI. The engine needs no key or token.
See the [CLI reference](/docs/usage/cli) for every command and error code.
## The loop at a glance
```mermaid
flowchart TD
D["dryv doctor"] --> V["dryv validate"]
V --> P["dryv plan"]
P --> R["dryv generate --dry-run"]
R --> G{"Diff as expected?"}
G -- yes --> W["dryv generate --yes"]
G -- no --> E["Fix definitions or pack"]
E --> V
W --> X["dryv generate --check in CI"]
```
---
# Clean up generated code
Generated files can contain imports a particular output does not use, for example when a pack emits a shared header and a project needs only part of it. Dryv does not rewrite those imports itself. It runs **actions** you choose on the staged files, before they are written, so the cleanup is explicit, repeatable and part of your project.
## One command
```bash
dryv action list # the available presets
dryv action add clean-imports-typescript --yes # TypeScript and JavaScript
dryv action add clean-imports-python --yes # Python
```
This adds the action to `dryv.yaml` under `actions` and puts it **first** in the action list of every code destination, so it runs before your formatter. Use `--destination ` (repeatable) to attach it to specific destinations only, and `--dry-run` to preview. Running it again changes nothing.
| Preset | Runs | Needs |
| -------------------------- | ------------------------------------------------------------------- | ------------------------------- |
| `clean-imports-typescript` | Biome's `noUnusedImports` fix on `.ts .tsx .mts .cts .js .jsx .mjs` | Node.js (`npx` downloads Biome) |
| `clean-imports-python` | Ruff's `F401` fix on `.py` | `uv` (`uvx` runs Ruff) |
| `clean-imports-go` | `goimports -w` on `.go` (removes unused and adds missing imports) | `goimports` on the `PATH` |
| `clean-imports-dart` | `dart fix --apply --code=unused_import` after files are written | the Dart SDK |
The TypeScript and Python presets were run against real files and removed unused imports. The Go and Dart presets use those tools' standard commands but have not been run in CI.
## What it adds
```yaml
actions:
clean-imports-typescript:
stage: files
extensions: [.ts, .tsx, .mts, .cts, .js, .jsx, .mjs]
commands:
- run:
[
npx,
--yes,
"@biomejs/biome@2",
lint,
--write,
--unsafe,
--only=correctness/noUnusedImports,
$(files),
]
destinations:
entities:
path: src/entities
actions:
- { $ref: "#/actions/clean-imports-typescript" } # first: clean up
- { $ref: "#/actions/format" } # then format
```
`stage: files` actions run on the staged output before Dryv compares and writes it, so the diff you review is already clean. `stage: final` actions run after files are written, from the destination directory.
> [!NOTE]
> Biome only removes unused imports when the rule is selected and `--unsafe` is passed. A plain `biome lint --write` does **not** remove them. Removing one name from `{ a, b }` can leave `{ a, }`, so keep a formatter action after it.
## Write your own
Any command that rewrites files works: `eslint --fix` with the `unused-imports` plugin, `ruff check --select F401,I --fix`, `gofmt`, `cargo fix`, `google-java-format --replace`. Declare it once under `actions` with a `stage`, and select it on destinations with `$ref`. See [dryv.yaml](/docs/usage/dryv-yaml) and the action rules in [Actions and commands](/pack-builders/design/actions).
## Tips
- Run `dryv generate --dry-run` first: the diff shows the cleaned files.
- `dryv generate --no-actions` skips every action, which is useful when debugging a template.
- Actions run argv directly, without a shell, and project-controlled commands need workspace trust (`dryv trust`).
- In CI, `dryv generate --check` fails when the output, cleaned by your actions, differs from what is committed.
---
# CLI reference
The `dryv` CLI is the client that owns your filesystem. It compiles your authored source, talks to the engine, shows diffs and writes generated files only after you approve. Install it with [Installation](/docs/usage/installation). For every option of every command, see [All CLI commands](/docs/cli/commands).
## Global options
| Option | Meaning |
| --------------- | ------------------------------------------------------------------------ |
| `--api ` | Engine URL. Defaults to `DRYV_API_URL`, then the Engine of the [local daemon](/docs/guides/local-daemon), which the CLI starts when needed. |
| `--root ` | Project root. Defaults to the current directory. |
| `-y, --yes` | Approve a known change without prompting. It never picks missing values. |
| `--json` | Print one machine-readable JSON result. |
| `--no-input` | Never prompt. Fail with a clear code when input is required. |
| `-q, --quiet` | Print only errors and the final result. |
Use `--json --no-input` in CI and from agents. Results share one envelope (`dryv.cli.result/v1alpha1`) with stable codes such as `DRYV_INPUT_REQUIRED`, `DRYV_TRUST_REQUIRED`, `DRYV_PLAN_STALE` and `DRYV_NOT_FOUND`.
## Set up a project
| Command | What it does | Writes? |
| --------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
| `dryv init` | Previews and creates `dryv.yaml`, plus `dryv/README.md` and an `AGENTS.md` block for agents (`--no-docs` skips them). Refuses to overwrite one. | yes |
| `dryv configure` | Previews structured edits to `dryv.yaml`, such as build settings. | yes |
| `dryv pack search` | Searches the official pack catalogue. | no |
| `dryv pack list / info` | Lists packs, or shows one. Read from the Dryv registry. | no |
| `dryv pack describe ` | Prints a pack's README, what it needs and what it provides. | no |
| `dryv pack explain ` | Explains how to bind and activate it in `dryv.yaml`. | no |
| `dryv pack add ` | Adds a pack as an explicit activation in `dryv.yaml`. | yes |
| `dryv pack remove` | Removes an activation. | yes |
| `dryv pack update` | Moves a pack source to a new ref. | yes |
| `dryv action list / add ` | Adds a ready-made action such as removing unused imports and attaches it to your destinations. See [Clean up generated code](/docs/usage/clean-generated-code). | yes |
| `dryv pack catalog` | Inspects the official pack catalogue. | no |
| `dryv server setup` | Writes a `dryv.server.yaml` that wires the API and template servers. | yes |
The catalogue is for discovery only. `pack add` writes the exact source and ref into `dryv.yaml`, so what you generate with is always visible in your repository.
## Generate
| Command | What it does | Writes? |
| ------------------------- | ----------------------------------------------------------------- | ------------------- |
| `dryv build` | Compiles authored source to Runtime IR files (YAML, JSON, JSONL). | yes |
| `dryv validate` | Compiles and validates against the engine. | no |
| `dryv plan` | Shows every planned file, its template and its path. | no |
| `dryv generate --dry-run` | Renders and shows the diff. | no |
| `dryv generate` | Renders, shows the diff and asks before writing. | yes, after approval |
| `dryv generate --check` | Exits with status 2 when generated files are out of date (CI). | no |
| `dryv apply ` | Applies a saved plan without re-rendering. | yes |
| `dryv undo` | Reverts the most recent apply while its journal is still valid. | yes |
`--diff stat|names|full` controls how much of the diff is printed. `--no-actions` skips pack actions such as dependency installs.
### Edited generated files
If you changed a managed file and your definition changed it too, Dryv reports a conflict instead of overwriting. Choose with `--conflicts block|overwrite|keep` on `generate` or `apply`. `--yes` alone never resolves a conflict.
## Database schema changes
| Command | What it does | Writes? |
| ----------------------- | -------------------------------------------------------------------------------- | ------------------- |
| `dryv migrate plan / generate / apply / status / verify / adopt` | Plans, renders and applies reviewed PostgreSQL schema changes for your project. | yes, after approval |
| `dryv checkpoint approve / status` | Approves or inspects the durable generation baselines that migrations compare to. | yes |
## Tasks and agent
| Command | What it does |
| ---------------- | ------------------------------------------------------------------------------ |
| `dryv task` | Manages the project's tasks: create, list, update, check, comment, validate, sync. See [Tasks](/docs/guides/tasks). `dryv tasks` is an alias. |
| `dryv code` | Opens the Dryv coding agent, or runs one of its commands. See [Dryv agent](/docs/guides/agent). `dryv agent` and `dryvcode` are aliases. |
## Understand
| Command | What it does |
| --------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| `dryv status` | Shows generated output drift and freshness. |
| `dryv why ` | Explains why one generated path exists, from persisted evidence. |
| `dryv explain change` | Explains what caused the current or a past generated change. |
| `dryv context list / show ` | Lists the template context vocabulary the engine serves, or explains one path. |
| `dryv watch` | Follows project activity produced by any connected client. |
| `dryv ui` | Opens the optional full-screen terminal interface. |
| `dryv docs [topic]` | Prints built-in guides (workflow, dryv-yaml, pack-yaml, authoring, errors, agents). `--write` refreshes `dryv/README.md` and the `AGENTS.md` block. |
## Environment and trust
| Command | What it does |
| --------------------------- | ------------------------------------------------------------------------- |
| `dryv doctor` | Checks project, engine, pack catalogue and execution readiness. |
| `dryv info` | Shows the engine, its version and its template servers. |
| `dryv capabilities` | Shows which workflows this machine and engine support. |
| `dryv trust / trust revoke` | Grants or removes trust for running project-controlled code. |
| `dryv local ` | Manages the local daemon that runs your Engine: `connect`, `start`, `status`, `restart`, `stop`, `logs`, `link`. See [Local daemon](/docs/guides/local-daemon). |
| `dryv update` | Installs the latest Dryv release next to this one, verifies it and switches to it. See [Update the CLI](#update-the-cli). |
| `dryv login / logout` | Signs in to or out of the Dryv Platform. Only needed to sync, publish, use private packs, use the Playground or export your data. See [Sign in and sync](/docs/guides/sync). |
| `dryv whoami` | Shows the signed-in Dryv Platform identity. |
| `dryv clean` | Removes Dryv plans, journals, logs and caches stored outside the project. |
Trust lets Dryv run your author compiler, install dependencies and run pack actions. It never approves file changes. In CI, grant it explicitly: Dryv never trusts a workspace on its own without a prompt.
The engine needs no key or token, whether it runs on your machine or you host it yourself. Everything on this page except `login`, `logout`, `whoami` and Platform sync works without signing in.
## Build your own plugins
| Command | For |
| -------------------------------------------------------- | --------------------------------------- |
| `dryv pack init/inspect/validate/doctor/test` | Developing a pack. |
| `dryv author init/inspect/validate/doctor/test` | Developing an author and compiler pair. |
| `dryv template-server init/inspect/validate/doctor/test` | Developing a template server. |
| `dryv check [path]` | Validating any `dryv.*.yaml` artifact. |
| `dryv ir build` | Writing portable Runtime IR on its own. |
| `dryv server info/plugins/setup/inspect/validate/doctor` | Inspecting and configuring the API and template server wiring. |
| `dryv pack catalog validate` | Validating a pack catalogue. |
See [Extensibility](/docs/ecosystem/extensibility).
## Update the CLI
```bash
dryv update
```
`dryv update` downloads the latest release next to the one you run, verifies it, and switches to it.
| Option | Meaning |
| --- | --- |
| `--channel ` | Release channel. Defaults to `stable`, or `DRYV_CHANNEL`. |
| `--to ` | Install this exact version. |
| `--force` | Reinstall even when you already have the latest version. |
## Environment variables
| Variable | Used for |
| --- | --- |
| `DRYV_API_URL` | The Engine to use instead of the local daemon's Engine. |
| `DRYV_PLATFORM_URL` | The Dryv Platform API for `login`, `logout`, `whoami`, private packs and the pack catalogue, instead of `https://api.dryvcode.com`. Leave it unset to use Dryv. |
| `DRYV_LOCAL_HOME` | The local daemon's home. Defaults to `~/.dryv/local`. |
| `DRYV_LOCAL_COMMAND` | The command that runs the local daemon, when the CLI cannot find it. |
| `DRYV_CONFIG_HOME` | Where the Platform session file is stored when no keychain is available. |
| `DRYV_CHANNEL` | The release channel for `dryv update`. |
---
# All CLI commands
This page lists every `dryv` command with its options. It is generated from the CLI's own `--help` output, so it matches what the CLI accepts. For an overview, read the [CLI reference](/docs/usage/cli). Run `dryv --help` for the same text in your terminal.
`dryv code`, `dryv task`, `dryv local` and `dryv update` have their own pages: [Dryv agent](/docs/guides/agent), [Tasks](/docs/guides/tasks) and [Local daemon](/docs/guides/local-daemon). `dryv update` is described in the [CLI reference](/docs/usage/cli#update-the-cli).
When you do not pass `--api` or set `DRYV_API_URL`, commands use the Engine of your [local daemon](/docs/guides/local-daemon). The daemon starts it on demand on a free port on 127.0.0.1, so there is no fixed address. Run `dryv local status` to see it.
## dryv ui
Open the full-screen Dryv project interface.
```text
dryv ui [options]
```
| Option | Meaning |
| --- | --- |
| `--api ` | Dryv API base URL (default: the Engine served by the local daemon, started on demand on a free 127.0.0.1 port; see `dryv local status`) |
| `--root ` | project root (default: the current directory) |
## dryv capabilities
Show supported Dryv product workflows.
```text
dryv capabilities [options]
```
| Option | Meaning |
| --- | --- |
| `--api ` | Dryv API base URL (default: the Engine served by the local daemon, started on demand on a free 127.0.0.1 port; see `dryv local status`) |
| `--root ` | project root (default: the current directory) |
| `--json` | print one JSON result document to stdout (default: false) |
| `--no-input` | accepted for automation parity; capability inspection never prompts |
## dryv info
Show Dryv API, client-session, engine, and Template Server capabilities.
```text
dryv info [options]
```
| Option | Meaning |
| --- | --- |
| `--api ` | Dryv API base URL (default: the Engine served by the local daemon, started on demand on a free 127.0.0.1 port; see `dryv local status`) |
| `--root ` | project root for dryv.server.yaml resolution (default: the current directory) |
| `--json` | print one JSON result document to stdout (default: false) |
| `--no-input` | accepted for automation parity; info never prompts |
## dryv context
Discover the template context vocabulary served by the engine.
```text
dryv context [options] [command]
```
| Subcommand | What it does |
| --- | --- |
| `list [options]` | list context roots and types |
| `show [options] ` | show what one context path reads, e.g. schema.fields[].value.is.boolean |
## dryv context list
List context roots and types.
```text
dryv context list [options]
```
| Option | Meaning |
| --- | --- |
| `--api ` | Dryv API base URL (default: the Engine served by the local daemon, started on demand on a free 127.0.0.1 port; see `dryv local status`) |
| `--json` | print the catalog as JSON (default: false) |
| `--no-input` | accepted for automation parity; context inspection never prompts |
## dryv context show
Show what one context path reads, e.g. schema.fields[].value.is.boolean.
```text
dryv context show [options]
```
| Option | Meaning |
| --- | --- |
| `--api ` | Dryv API base URL (default: the Engine served by the local daemon, started on demand on a free 127.0.0.1 port; see `dryv local status`) |
| `--json` | print the result as JSON (default: false) |
| `--no-input` | accepted for automation parity; context inspection never prompts |
## dryv watch
Watch shared project activity produced by any connected Dryv client.
```text
dryv watch [options]
```
| Option | Meaning |
| --- | --- |
| `--api ` | Dryv API base URL (default: the Engine served by the local daemon, started on demand on a free 127.0.0.1 port; see `dryv local status`) |
| `--root ` | project root (default: the current directory) |
| `--system` | also watch API and Template Server system activity (default: false) |
| `--from-now` | do not replay buffered activity when subscribing (default: false) |
## dryv build
Resolve authoring requirements and compile authored source into canonical Runtime IR.
```text
dryv build [options]
```
| Option | Meaning |
| --- | --- |
| `--api ` | Dryv API base URL (default: the Engine served by the local daemon, started on demand on a free 127.0.0.1 port; see `dryv local status`) |
| `--root ` | project root (default: the current directory) |
| `--yes` | approve requested environment changes without prompting (default: false) |
| `--json` | print one JSON result document to stdout (default: false) |
| `--ir-out ` | override Runtime IR output directory for this invocation |
| `--ir-name ` | override Runtime IR output base filename for this invocation |
| `--ir-format ` | Runtime IR format to write; repeat for multiple formats (default: []) |
| `--no-input` | do not prompt; fail rather than request environment mutation approval |
## dryv init
Create an explicit dryv.yaml usage document for this project.
```text
dryv init [options]
```
| Option | Meaning |
| --- | --- |
| `--root ` | project root (default: the current directory) |
| `--author ` | authoring source: ir, typescript, or python (default: "ir") |
| `--author-path ` | IR file path or authored entrypoint path (defaults inside workspace.path) |
| `--pack ` | pack activation to add; repeatable (default: []) |
| `--workspace-path ` | Dryv working folder (default: "dryv") |
| `--pack-source-path ` | local pack source directory (defaults inside workspace.path) |
| `--destination ` | base generated-code destination (default: "generated") |
| `--dry-run` | preview dryv.yaml without writing (default: false) |
| `--no-docs` | do not seed documentation and agent resources |
| `-y, --yes` | write without prompting (default: false) |
| `--json` | print the planned init result as JSON (default: false) |
| `--no-input` | do not prompt; fail clearly when approval is required |
## dryv docs
Show built-in guides, or write them into this project.
```text
dryv docs [options] [topic] [query...]
```
| Option | Meaning |
| --- | --- |
| `topic` | guide topic; omit to list topics, or `search` to query the Dryv knowledge base |
| `query` | search words, with `dryv docs search` |
| `--root ` | project root (default: the current directory) |
| `--write` | refresh working-folder documentation and root agent pointer (default: false) |
| `--json` | print the result as JSON (default: false) |
## dryv configure
Preview and write structured dryv.yaml configuration edits.
```text
dryv configure [options]
```
| Option | Meaning |
| --- | --- |
| `--root ` | project root (default: the current directory) |
| `--default-action ` | build default action: plan or generate |
| `--cache ` | build cache mode: reuse, refresh, or disabled |
| `--dry-run` | preview dryv.yaml without writing (default: false) |
| `-y, --yes` | write without prompting (default: false) |
| `--json` | print the planned configure result as JSON (default: false) |
| `--no-input` | do not prompt; fail clearly when approval is required |
## dryv action
Add ready-made generation actions, such as removing unused imports.
```text
dryv action [options] [command]
```
| Subcommand | What it does |
| --- | --- |
| `list [options]` | list the available action presets |
| `add [options] ` | add a preset to dryv.yaml and attach it to your code destinations |
## dryv action list
List the available action presets.
```text
dryv action list [options]
```
| Option | Meaning |
| --- | --- |
| `--json` | print as JSON (default: false) |
## dryv action add
Add a preset to dryv.yaml and attach it to your code destinations.
```text
dryv action add [options]
```
| Option | Meaning |
| --- | --- |
| `--root ` | project root (default: the current directory) |
| `--destination ` | destination to attach it to; repeatable (default: all code destinations) (default: []) |
| `--name ` | action id in dryv.yaml (default: the preset id) |
| `--dry-run` | preview dryv.yaml without writing (default: false) |
| `-y, --yes` | write without prompting (default: false) |
| `--json` | print the planned edit as JSON (default: false) |
| `--no-input` | do not prompt |
## dryv pack
Develop, discover and manage Dryv packs.
```text
dryv pack [options] [command]
```
| Subcommand | What it does |
| --- | --- |
| `search [options] [query]` | search the official pack catalog projection |
| `list [options]` | list all official packs |
| `info [options] ` | show one catalog pack |
| `describe [options] ` | show a pack's README, needs and provides |
| `explain [options] ` | explain how to bind and activate a pack in dryv.yaml |
| `add [options] ` | add a catalog pack as an explicit dryv.yaml activation |
| `remove [options] ` | remove a pack activation from dryv.yaml |
| `update [options]` | update an explicit pack source ref in dryv.yaml |
| `catalog` | inspect the official pack catalog projection |
| `init [options] [path]` | create a minimal dryv.pack.yaml and pack filesystem |
| `inspect [options] [path]` | inspect one local pack using Engine-validated facts |
| `validate [options] [path]` | validate one local pack against filesystem and Engine semantics |
| `doctor [options] [path]` | check local pack renderer and action runtime readiness |
| `test [options] [path]` | run a local pack against Engine-owned canonical IR in an isolated temp workspace |
## dryv pack search
Search the official pack catalog projection.
```text
dryv pack search [options] [query]
```
| Option | Meaning |
| --- | --- |
| `--root ` | project root (default: the current directory) |
| `--json` | print catalog entries as JSON (default: false) |
| `-y, --yes` | accepted for option consistency; has no effect (default: false) |
| `--no-input` | do not prompt |
| `--dry-run` | accepted for option consistency; has no effect (default: false) |
## dryv pack list
List all official packs.
```text
dryv pack list [options]
```
| Option | Meaning |
| --- | --- |
| `--root ` | project root (default: the current directory) |
| `--json` | print catalog entries as JSON (default: false) |
| `-y, --yes` | accepted for option consistency; has no effect (default: false) |
| `--no-input` | do not prompt |
| `--dry-run` | accepted for option consistency; has no effect (default: false) |
## dryv pack info
Show one catalog pack.
```text
dryv pack info [options]
```
| Option | Meaning |
| --- | --- |
| `--root ` | project root (default: the current directory) |
| `--json` | print pack info as JSON (default: false) |
| `-y, --yes` | accepted for option consistency; has no effect (default: false) |
| `--no-input` | do not prompt |
| `--dry-run` | accepted for option consistency; has no effect (default: false) |
## dryv pack describe
Show a pack's README, needs and provides.
```text
dryv pack describe [options]
```
| Option | Meaning |
| --- | --- |
| `--root ` | project root (default: the current directory) |
| `--json` | print as JSON (default: false) |
| `-y, --yes` | accepted for option consistency (default: false) |
| `--no-input` | do not prompt |
| `--dry-run` | accepted for option consistency (default: false) |
## dryv pack explain
Explain how to bind and activate a pack in dryv.yaml.
```text
dryv pack explain [options]
```
| Option | Meaning |
| --- | --- |
| `--root ` | project root (default: the current directory) |
| `--json` | print as JSON (default: false) |
| `-y, --yes` | accepted for option consistency (default: false) |
| `--no-input` | do not prompt |
| `--dry-run` | accepted for option consistency (default: false) |
## dryv pack add
Add a catalog pack as an explicit dryv.yaml activation.
```text
dryv pack add [options]
```
| Option | Meaning |
| --- | --- |
| `--root ` | project root (default: the current directory) |
| `--activation ` | project activation key |
| `--destination ` | generated-code destination path |
| `--source-name ` | pack source key in dryv.yaml (default: "official") |
| `--dry-run` | preview dryv.yaml without writing (default: false) |
| `-y, --yes` | write without prompting (default: false) |
| `--json` | print the planned edit as JSON (default: false) |
| `--no-input` | do not prompt; fail clearly when approval is required |
## dryv pack remove
Remove a pack activation from dryv.yaml.
```text
dryv pack remove [options]
```
| Option | Meaning |
| --- | --- |
| `--root ` | project root (default: the current directory) |
| `--dry-run` | preview dryv.yaml without writing (default: false) |
| `-y, --yes` | write without prompting (default: false) |
| `--json` | print the planned edit as JSON (default: false) |
| `--no-input` | do not prompt; fail clearly when approval is required |
## dryv pack update
Update an explicit pack source ref in dryv.yaml.
```text
dryv pack update [options]
```
| Option | Meaning |
| --- | --- |
| `--root ` | project root (default: the current directory) |
| `--source-name ` | pack source key in dryv.yaml (default: "official") |
| `--ref [` | new source ref (default: "develop") |
| `--dry-run` | preview dryv.yaml without writing (default: false) |
| `-y, --yes` | write without prompting (default: false) |
| `--json` | print the planned edit as JSON (default: false) |
| `--no-input` | do not prompt; fail clearly when approval is required |
## dryv pack catalog
Inspect the official pack catalog projection.
```text
dryv pack catalog [options] [command]
```
| Subcommand | What it does |
| --- | --- |
| `validate [options]` | validate the local official catalog projection |
## dryv pack catalog validate
Validate the local official catalog projection.
```text
dryv pack catalog validate [options]
```
| Option | Meaning |
| --- | --- |
| `--root ` | project root (default: the current directory) |
| `--json` | print validation result as JSON (default: false) |
| `-y, --yes` | accepted for option consistency; has no effect (default: false) |
| `--no-input` | do not prompt |
| `--dry-run` | accepted for option consistency; has no effect (default: false) |
## dryv pack init
Create a minimal dryv.pack.yaml and pack filesystem.
```text
dryv pack init [options] [path]
```
| Option | Meaning |
| --- | --- |
| `--key ` | pack key; defaults from the target directory name |
| `--title ` | pack title; defaults to the key |
| `--version ` | pack version (default: "0.0.1") |
| `--layout ` | pack layout: inject or unit (default: "inject") |
| `--source ` | pack source directory (default: "templates") |
| `--renderer ` | required Template Server/provider name |
| `--renderer-version ` | required renderer version or compatible constraint |
| `--extension ` | renderer-owned terminal extension; repeatable (default: []) |
| `--starter-subject ` | optional neutral starter selection subject |
| `--api ` | Dryv API base URL (default: the Engine served by the local daemon, started on demand on a free 127.0.0.1 port; see `dryv local status`) |
| `--json` | print one JSON result document to stdout (default: false) |
| `-y, --yes` | approve requested writes without prompting (default: false) |
| `--no-input` | do not prompt |
## dryv pack inspect
Inspect one local pack using Engine-validated facts.
```text
dryv pack inspect [options] [path]
```
| Option | Meaning |
| --- | --- |
| `--api ` | Dryv API base URL (default: the Engine served by the local daemon, started on demand on a free 127.0.0.1 port; see `dryv local status`) |
| `--json` | print one JSON result document to stdout (default: false) |
| `-y, --yes` | approve requested writes without prompting (default: false) |
| `--no-input` | do not prompt |
## dryv pack validate
Validate one local pack against filesystem and Engine semantics.
```text
dryv pack validate [options] [path]
```
| Option | Meaning |
| --- | --- |
| `--api ` | Dryv API base URL (default: the Engine served by the local daemon, started on demand on a free 127.0.0.1 port; see `dryv local status`) |
| `--json` | print one JSON result document to stdout (default: false) |
| `-y, --yes` | approve requested writes without prompting (default: false) |
| `--no-input` | do not prompt |
## dryv pack doctor
Check local pack renderer and action runtime readiness.
```text
dryv pack doctor [options] [path]
```
| Option | Meaning |
| --- | --- |
| `--api ` | Dryv API base URL (default: the Engine served by the local daemon, started on demand on a free 127.0.0.1 port; see `dryv local status`) |
| `--json` | print one JSON result document to stdout (default: false) |
| `-y, --yes` | approve requested writes without prompting (default: false) |
| `--no-input` | do not prompt |
## dryv pack test
Run a local pack against Engine-owned canonical IR in an isolated temp workspace.
```text
dryv pack test [options] [path]
```
| Option | Meaning |
| --- | --- |
| `--no-actions` | skip Engine-resolved file and final actions |
| `--api ` | Dryv API base URL (default: the Engine served by the local daemon, started on demand on a free 127.0.0.1 port; see `dryv local status`) |
| `--json` | print one JSON result document to stdout (default: false) |
| `-y, --yes` | approve requested writes without prompting (default: false) |
| `--no-input` | do not prompt |
## dryv author
Develop and prove Dryv author/compiler plugins.
```text
dryv author [options] [command]
```
| Subcommand | What it does |
| --- | --- |
| `init [options] [path]` | create dryv.author.yaml and author/compiler package boundaries |
| `inspect [options] [path]` | inspect a local author/compiler plugin without executing it |
| `validate [options] [path]` | validate a local author manifest and package metadata |
| `doctor [options] [path]` | check compiler resolution, version and Authoring Protocol handshake |
| `test [options] [path]` | compile a language fixture and compare it with Dryv-owned canonical Runtime IR |
## dryv author init
Create dryv.author.yaml and author/compiler package boundaries.
```text
dryv author init [options] [path]
```
| Option | Meaning |
| --- | --- |
| `--id ` | author implementation id |
| `--language ` | language id |
| `--extension ` | language source extension |
| `--author-ecosystem ` | author package ecosystem |
| `--author-package ` | author package name |
| `--compiler-ecosystem ` | compiler package ecosystem |
| `--compiler-package ` | compiler package name |
| `--compiler-executable ` | compiler executable |
| `--version ` | initial author/compiler version (default: "0.0.1") |
| `--api ` | Dryv API base URL (default: the Engine served by the local daemon, started on demand on a free 127.0.0.1 port; see `dryv local status`) |
| `--json` | print one JSON result document to stdout (default: false) |
| `-y, --yes` | approve requested writes without prompting (default: false) |
| `--no-input` | do not prompt |
## dryv author inspect
Inspect a local author/compiler plugin without executing it.
```text
dryv author inspect [options] [path]
```
| Option | Meaning |
| --- | --- |
| `--api ` | Dryv API base URL (default: the Engine served by the local daemon, started on demand on a free 127.0.0.1 port; see `dryv local status`) |
| `--json` | print one JSON result document to stdout (default: false) |
| `-y, --yes` | approve requested writes without prompting (default: false) |
| `--no-input` | do not prompt |
## dryv author validate
Validate a local author manifest and package metadata.
```text
dryv author validate [options] [path]
```
| Option | Meaning |
| --- | --- |
| `--api ` | Dryv API base URL (default: the Engine served by the local daemon, started on demand on a free 127.0.0.1 port; see `dryv local status`) |
| `--json` | print one JSON result document to stdout (default: false) |
| `-y, --yes` | approve requested writes without prompting (default: false) |
| `--no-input` | do not prompt |
## dryv author doctor
Check compiler resolution, version and Authoring Protocol handshake.
```text
dryv author doctor [options] [path]
```
| Option | Meaning |
| --- | --- |
| `--compiler ` | override compiler executable for this invocation |
| `--api ` | Dryv API base URL (default: the Engine served by the local daemon, started on demand on a free 127.0.0.1 port; see `dryv local status`) |
| `--json` | print one JSON result document to stdout (default: false) |
| `-y, --yes` | approve requested writes without prompting (default: false) |
| `--no-input` | do not prompt |
## dryv author test
Compile a language fixture and compare it with Dryv-owned canonical Runtime IR.
```text
dryv author test [options] [path]
```
| Option | Meaning |
| --- | --- |
| `--compiler ` | override compiler executable for this invocation |
| `--entrypoint ` | language fixture entrypoint; defaults to fixtures/complete |
| `--api ` | Dryv API base URL (default: the Engine served by the local daemon, started on demand on a free 127.0.0.1 port; see `dryv local status`) |
| `--json` | print one JSON result document to stdout (default: false) |
| `-y, --yes` | approve requested writes without prompting (default: false) |
| `--no-input` | do not prompt |
## dryv template-server
Develop and prove Dryv Template Server plugins.
```text
dryv template-server [options] [command]
```
| Subcommand | What it does |
| --- | --- |
| `init [options] [path]` | create a dryv.server.yaml Template Server manifest |
| `inspect [options] [path]` | inspect Template Server manifest entries |
| `validate [options] [path]` | validate Template Server manifest wiring without launching it |
| `doctor [options] [path]` | connect to Template Server discovery endpoints and verify protocol identity |
| `test [options] [path]` | run Dryv-owned Template Server protocol conformance |
## dryv template-server init
Create a dryv.server.yaml Template Server manifest.
```text
dryv template-server init [options] [path]
```
| Option | Meaning |
| --- | --- |
| `--name ` | Template Server name (default: "custom") |
| `--url ` | Template Server endpoint (default: "http://127.0.0.1:8769") |
| `--command ` | launch command argument; repeatable (default: []) |
| `--api ` | Dryv API base URL (default: the Engine served by the local daemon, started on demand on a free 127.0.0.1 port; see `dryv local status`) |
| `--json` | print one JSON result document to stdout (default: false) |
| `-y, --yes` | approve requested writes without prompting (default: false) |
| `--no-input` | do not prompt |
## dryv template-server inspect
Inspect Template Server manifest entries.
```text
dryv template-server inspect [options] [path]
```
| Option | Meaning |
| --- | --- |
| `--name ` | inspect one Template Server entry |
| `--api ` | Dryv API base URL (default: the Engine served by the local daemon, started on demand on a free 127.0.0.1 port; see `dryv local status`) |
| `--json` | print one JSON result document to stdout (default: false) |
| `-y, --yes` | approve requested writes without prompting (default: false) |
| `--no-input` | do not prompt |
## dryv template-server validate
Validate Template Server manifest wiring without launching it.
```text
dryv template-server validate [options] [path]
```
| Option | Meaning |
| --- | --- |
| `--name ` | validate one Template Server entry |
| `--api ` | Dryv API base URL (default: the Engine served by the local daemon, started on demand on a free 127.0.0.1 port; see `dryv local status`) |
| `--json` | print one JSON result document to stdout (default: false) |
| `-y, --yes` | approve requested writes without prompting (default: false) |
| `--no-input` | do not prompt |
## dryv template-server doctor
Connect to Template Server discovery endpoints and verify protocol identity.
```text
dryv template-server doctor [options] [path]
```
| Option | Meaning |
| --- | --- |
| `--name ` | doctor one Template Server entry |
| `--launch` | launch an unreachable manifest-declared local command for this check (default: false) |
| `--api ` | Dryv API base URL (default: the Engine served by the local daemon, started on demand on a free 127.0.0.1 port; see `dryv local status`) |
| `--json` | print one JSON result document to stdout (default: false) |
| `-y, --yes` | approve requested writes without prompting (default: false) |
| `--no-input` | do not prompt |
## dryv template-server test
Run Dryv-owned Template Server protocol conformance.
```text
dryv template-server test [options] [path]
```
| Option | Meaning |
| --- | --- |
| `--name ` | test one Template Server entry |
| `--launch` | launch an unreachable manifest-declared local command for this test (default: false) |
| `--api ` | Dryv API base URL (default: the Engine served by the local daemon, started on demand on a free 127.0.0.1 port; see `dryv local status`) |
| `--json` | print one JSON result document to stdout (default: false) |
| `-y, --yes` | approve requested writes without prompting (default: false) |
| `--no-input` | do not prompt |
## dryv doctor
Inspect Dryv project, API, pack catalog and execution readiness.
```text
dryv doctor [options]
```
| Option | Meaning |
| --- | --- |
| `--api ` | Dryv API base URL (default: the Engine served by the local daemon, started on demand on a free 127.0.0.1 port; see `dryv local status`) |
| `--root ` | project root (default: the current directory) |
| `--json` | print the doctor report as JSON (default: false) |
| `--no-input` | do not prompt; doctor is observation-only |
## dryv clean
Remove Dryv plans, journals, logs and caches stored outside the project.
```text
dryv clean [options]
```
| Option | Meaning |
| --- | --- |
| `--root ` | project root (default: the current directory) |
| `--global` | clean every project and the shared cache (default: false) |
| `--all` | remove everything for the scope, ignoring retention (default: false) |
| `--dry-run` | show what would be removed (default: false) |
| `--json` | print the clean report as JSON (default: false) |
| `--no-input` | do not prompt; clean never prompts |
## dryv check
Detect and validate a Dryv artifact by explicit filename.
```text
dryv check [options] [path]
```
| Option | Meaning |
| --- | --- |
| `--artifact ` | artifact kind: project, pack, author, or server (choices: "project", "pack", "author", "server") |
| `--app ` | select application activation; repeatable (default: []) |
| `--pack ` | select pack activation; repeatable (default: []) |
| `--store ` | select logical store; repeatable (default: []) |
| `--with-dependencies` | include provider app outputs (default: false) |
| `--api ` | Dryv API base URL (default: the Engine served by the local daemon, started on demand on a free 127.0.0.1 port; see `dryv local status`) |
| `--root ` | project root (default: the current directory) |
| `--json` | print one JSON result document to stdout (default: false) |
| `--max-file-size-mb ` | maximum uploaded text file size in MiB (default: 5) |
| `--exclude ` | additional .gitignore-style upload exclusion; repeatable (default: []) |
| `-y, --yes` | approve requested environment changes without prompting (default: false) |
| `--conflicts ` | resolve managed-file drift conflicts: block, overwrite or keep |
| `--no-input` | do not prompt; fail clearly when input is required |
## dryv server
Inspect and configure explicit Dryv API/Template Server wiring.
```text
dryv server [options] [command]
```
| Subcommand | What it does |
| --- | --- |
| `info [options]` | show connected API, Engine and Template Server information |
| `plugins [options]` | list live Template Server/plugin connections exposed by the API |
| `setup [options]` | configure servers in dryv.yaml; does not deploy servers |
| `inspect [options]` | inspect servers in dryv.yaml without connecting |
| `validate [options]` | validate dryv.server.yaml wiring without connecting |
| `doctor [options]` | validate dryv.server.yaml and check configured API and Template Servers |
## dryv server info
Show connected API, Engine and Template Server information.
```text
dryv server info [options]
```
| Option | Meaning |
| --- | --- |
| `--api ` | Dryv API base URL (default: the Engine served by the local daemon, started on demand on a free 127.0.0.1 port; see `dryv local status`) |
| `--root ` | project root (default: the current directory) |
| `--json` | print server information as JSON (default: false) |
| `--no-input` | accepted for automation parity; server info never prompts |
## dryv server plugins
List live Template Server/plugin connections exposed by the API.
```text
dryv server plugins [options]
```
| Option | Meaning |
| --- | --- |
| `--api ` | Dryv API base URL (default: the Engine served by the local daemon, started on demand on a free 127.0.0.1 port; see `dryv local status`) |
| `--root ` | project root (default: the current directory) |
| `--json` | print Template Server information as JSON (default: false) |
| `--no-input` | accepted for automation parity; plugin inspection never prompts |
## dryv server setup
Configure servers in dryv.yaml; does not deploy servers.
```text
dryv server setup [options]
```
| Option | Meaning |
| --- | --- |
| `--root ` | workspace root for the manifest (default: the current directory) |
| `--output ` | project configuration filename (default: "dryv.yaml") |
| `--name ` | API server manifest name (default: "local") |
| `--url ` | Dryv API endpoint (default: "http://127.0.0.1:8750") |
| `--template ` | Template Server endpoint; repeatable (default: []) |
| `--dry-run` | preview the server manifest without writing (default: false) |
| `-y, --yes` | write without prompting (default: false) |
| `--json` | print the planned server manifest as JSON (default: false) |
| `--no-input` | do not prompt; fail clearly when approval is required |
## dryv server inspect
Inspect servers in dryv.yaml without connecting.
```text
dryv server inspect [options]
```
| Option | Meaning |
| --- | --- |
| `--root ` | project root (default: the current directory) |
| `--json` | print server manifest facts as JSON (default: false) |
| `--no-input` | accepted for automation parity; server inspect never prompts |
## dryv server validate
Validate dryv.server.yaml wiring without connecting.
```text
dryv server validate [options]
```
| Option | Meaning |
| --- | --- |
| `--root ` | project root (default: the current directory) |
| `--json` | print validation result as JSON (default: false) |
| `--no-input` | accepted for automation parity; server validate never prompts |
## dryv server doctor
Validate dryv.server.yaml and check configured API and Template Servers.
```text
dryv server doctor [options]
```
| Option | Meaning |
| --- | --- |
| `--api ` | Dryv API base URL (default: the Engine served by the local daemon, started on demand on a free 127.0.0.1 port; see `dryv local status`) |
| `--root ` | project root (default: the current directory) |
| `--launch` | launch unreachable manifest-declared local Template Server commands for this check (default: false) |
| `--json` | print server doctor result as JSON (default: false) |
| `--no-input` | do not prompt; fail if --launch requires ungranted workspace trust |
## dryv trust
Manage local trust for project-controlled Dryv execution.
```text
dryv trust [options] [command]
```
| Subcommand | What it does |
| --- | --- |
| `status [options]` | show whether this workspace is locally trusted |
| `revoke [options]` | remove local trust for this workspace |
| Option | Meaning |
| --- | --- |
| `--root ` | project root (default: the current directory) |
| `-y, --yes` | grant trust without prompting (default: false) |
| `--json` | print trust result as JSON (default: false) |
| `--no-input` | do not prompt; fail clearly when trust cannot be granted |
## dryv trust status
Show whether this workspace is locally trusted.
```text
dryv trust status [options]
```
| Option | Meaning |
| --- | --- |
| `--root ` | project root (default: the current directory) |
| `-y, --yes` | accepted for option consistency; has no effect (default: false) |
| `--json` | print trust status as JSON (default: false) |
| `--no-input` | do not prompt |
## dryv trust revoke
Remove local trust for this workspace.
```text
dryv trust revoke [options]
```
| Option | Meaning |
| --- | --- |
| `--root ` | project root (default: the current directory) |
| `-y, --yes` | accepted for option consistency; has no effect (default: false) |
| `--json` | print trust status as JSON (default: false) |
| `--no-input` | do not prompt |
## dryv migrate
Plan, render and apply reviewed PostgreSQL schema changes.
```text
dryv migrate [options] [command]
```
| Subcommand | What it does |
| --- | --- |
| `plan [options]` | See below. |
| `generate [options]` | See below. |
| `apply [options] ` | See below. |
| `status [options]` | See below. |
| `verify [options]` | See below. |
| `adopt [options]` | See below. |
## dryv migrate plan
```text
dryv migrate plan [options]
```
| Option | Meaning |
| --- | --- |
| `--root ` | project root (default: the current directory) |
| `--api ` | Engine API (default: the Engine served by the local daemon, started on demand on a free 127.0.0.1 port; see `dryv local status`) |
| `--store ` | explicit logical store |
| `--interventions ` | project-relative reviewed intervention JSON |
| `--allow-destructive` | acknowledge reviewed destructive steps (default: false) |
| `--json` | print one JSON result (default: false) |
## dryv migrate generate
```text
dryv migrate generate [options]
```
| Option | Meaning |
| --- | --- |
| `--root ` | project root (default: the current directory) |
| `--api ` | Engine API (default: the Engine served by the local daemon, started on demand on a free 127.0.0.1 port; see `dryv local status`) |
| `--store ` | explicit logical store |
| `--interventions ` | project-relative reviewed intervention JSON |
| `--allow-destructive` | acknowledge reviewed destructive steps (default: false) |
| `--json` | print one JSON result (default: false) |
## dryv migrate apply
```text
dryv migrate apply [options]
```
| Option | Meaning |
| --- | --- |
| `--root ` | project root (default: the current directory) |
| `--api ` | Engine API (default: the Engine served by the local daemon, started on demand on a free 127.0.0.1 port; see `dryv local status`) |
| `--store ` | explicit logical store |
| `--interventions ` | project-relative reviewed intervention JSON |
| `--allow-destructive` | acknowledge reviewed destructive steps (default: false) |
| `--json` | print one JSON result (default: false) |
## dryv migrate status
```text
dryv migrate status [options]
```
| Option | Meaning |
| --- | --- |
| `--root ` | project root (default: the current directory) |
| `--api ` | Engine API (default: the Engine served by the local daemon, started on demand on a free 127.0.0.1 port; see `dryv local status`) |
| `--store ` | explicit logical store |
| `--interventions ` | project-relative reviewed intervention JSON |
| `--allow-destructive` | acknowledge reviewed destructive steps (default: false) |
| `--json` | print one JSON result (default: false) |
## dryv migrate verify
```text
dryv migrate verify [options]
```
| Option | Meaning |
| --- | --- |
| `--root ` | project root (default: the current directory) |
| `--api ` | Engine API (default: the Engine served by the local daemon, started on demand on a free 127.0.0.1 port; see `dryv local status`) |
| `--store ` | explicit logical store |
| `--interventions ` | project-relative reviewed intervention JSON |
| `--allow-destructive` | acknowledge reviewed destructive steps (default: false) |
| `--json` | print one JSON result (default: false) |
## dryv migrate adopt
```text
dryv migrate adopt [options]
```
| Option | Meaning |
| --- | --- |
| `--root ` | project root (default: the current directory) |
| `--api ` | Engine API (default: the Engine served by the local daemon, started on demand on a free 127.0.0.1 port; see `dryv local status`) |
| `--store ` | explicit logical store |
| `--interventions ` | project-relative reviewed intervention JSON |
| `--allow-destructive` | acknowledge reviewed destructive steps (default: false) |
| `--json` | print one JSON result (default: false) |
## dryv checkpoint
Explicitly approve or inspect durable generation baselines.
```text
dryv checkpoint [options] [command]
```
| Subcommand | What it does |
| --- | --- |
| `approve [options]` | See below. |
| `status [options]` | See below. |
## dryv checkpoint approve
```text
dryv checkpoint approve [options]
```
| Option | Meaning |
| --- | --- |
| `--root ` | project root (default: the current directory) |
| `--app ]