Skip to content

Commit 4576fbf

Browse files
committed
docs(claws): document agent export
1 parent b98e5ec commit 4576fbf

2 files changed

Lines changed: 21 additions & 6 deletions

File tree

‎docs/cli/claws.md‎

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -185,14 +185,28 @@ Use `--force-referenced` only after reviewing the displayed dependents,
185185
independent owners, and pre-existing origin. It allows selected cleanup despite
186186
those conflicts; it does not skip plan-integrity consent.
187187

188+
## Export an installed agent
189+
190+
Export creates a new package directory and fails if the destination exists or
191+
managed state has drifted:
192+
193+
```bash
194+
openclaw claws export incident-triage --out ./incident-triage-export --json
195+
```
196+
197+
The result contains `package.json`, `openclaw.claw.json`, and managed workspace
198+
sidecars. It is a portable Claw package, not a whole-instance backup: unrelated
199+
agents, credentials, sessions, and unowned local state are excluded.
200+
188201
## Command reference
189202

190-
| Command | Purpose |
191-
| ------------------------------ | --------------------------------------------------- |
192-
| `claws inspect <source>` | Validate a package directory or JSON manifest. |
193-
| `claws add <source>` | Preview or create one new agent and workspace. |
194-
| `claws status [claw-or-agent]` | Report installed state, ownership, and drift. |
195-
| `claws remove <claw-or-agent>` | Preview or remove the agent and eligible resources. |
203+
| Command | Purpose |
204+
| ----------------------------------- | --------------------------------------------------- |
205+
| `claws inspect <source>` | Validate a package directory or JSON manifest. |
206+
| `claws add <source>` | Preview or create one new agent and workspace. |
207+
| `claws status [claw-or-agent]` | Report installed state, ownership, and drift. |
208+
| `claws remove <claw-or-agent>` | Preview or remove the agent and eligible resources. |
209+
| `claws export <agent> --out <path>` | Create a portable package from an installed agent. |
196210

197211
Use `--json` for experimental machine-readable output.
198212

‎docs/docs_map.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1355,6 +1355,7 @@ Do not edit it by hand; run `pnpm docs:map:gen`.
13551355
- H2: Inspect and preview
13561356
- H2: Inspect installed state
13571357
- H2: Remove an installed Claw
1358+
- H2: Export an installed agent
13581359
- H2: Command reference
13591360
- H2: See also
13601361

0 commit comments

Comments
 (0)