Skip to content

Latest commit

History

History
162 lines (117 loc) · 7.25 KB

File metadata and controls

162 lines (117 loc) · 7.25 KB

CLI reference

The agents command. This page documents every command and option defined in packages/cli/src/program.ts.

Global options

OptionDescription
-f, --file <path>Path to the config file. Defaults to agents.yaml.
-v, --verboseIncrease logging verbosity. Repeat: -vv.
-q, --quietSuppress non-error output.
--no-colorDisable colored output.
-V, --versionPrint the CLI version.

Provider-backed commands such as plan, apply, models, session, and deployment accept --provider <name> to target a single provider. validate is an offline whole-file check and does not accept a provider filter. Run agents <command> --help for the definitive option list.

agents init

Create a new agents.yaml template via an interactive wizard (provider selection + agent name). Appends agents.state.json and .env to .gitignore.

agents playground

Launch the local web UI (fetches @openagentpack/playground on demand) and open it in a browser.

OptionDescription
--port <n>Port to serve on (default 4848).
--provider <name>Provider the UI targets (bailian, qoder, ark, or claude).
--no-openDo not open a browser automatically.

agents validate

Validate the whole configuration file offline — checks YAML shape and field validity without making API calls. This command does not accept --provider; use plan --provider <name> --refresh false when you want to inspect one provider's projected changes without contacting remote APIs.

agents plan

Show what changes would be applied. Refreshes remote state and detects drift by default.

OptionDescription
--provider <name>Target provider (all by default).
--refresh <bool>Refresh state from remote before planning (default true).
--refresh-onlyRefresh state and show drift without planning remote mutations.
--jsonOutput as JSON.

agents apply

Apply the planned changes to create / update / delete resources.

OptionDescription
-y, --yesSkip confirmation prompt.
--provider <name>Target provider (all by default).
--refresh <bool>Refresh state from remote before planning (default true).
--refresh-onlyRefresh state without mutating remote resources.
--concurrency <n>Max independent resources to apply in parallel (default 6, max 10).

agents destroy

Destroy all managed resources.

OptionDescription
-y, --yesSkip confirmation prompt.
--cascadeAuto-delete dependent resources (e.g. sessions referencing an environment).

agents sync

Export a provider's remote configuration into a local agents.yaml.

OptionDescription
--provider <name>Source provider to sync from.
-o, --out <path>Output file (default agents.synced.yaml).
--forceOverwrite the output file if it exists.
--skip-missing-filesDo not prompt for remote files that cannot be downloaded; omit them from the synced output.

agents migrate

Merge synced resources into the project agents.yaml (incremental, skips existing).

OptionDescription
--from <path>Source synced file (default agents.synced.yaml).
--to <path>Target file (default agents.yaml).

agents state

Inspect and manage the state file.

SubcommandDescription
state listList all resources in state.
state show <address>Show details of a resource in state.
state rm <address>Remove a resource from state without destroying it remotely.
state import <address> <remote-id>Import an existing remote resource into state.

state import accepts --resource-version <number> for versioned resources (agents).

agents session

Manage runtime agent sessions.

SubcommandDescription
session create [agent-name]Create a new session.
session listList sessions from the provider.
session get <session-id>Get details of a session.
session run <prompt-or-agent> [prompt]Create a session, send a message, and poll until the response completes.
session send <session-id> <message>Send a message to an existing session and poll until the response completes.
session events <session-id>List event history for a session.
session delete <session-id>Delete a session.

session create / session run accept --agent, --identity-id, --environment, --vault, --memory-stores, --title, and --provider. Forward Sessions resolve the declared logical defaults.identity; --identity-id overrides it with an existing provider id for one invocation. session run and session send use polling by default and accept --stream to opt into SSE streaming, plus --json for JSON output. session list accepts --agent and --all; session events accepts --limit, --all, --json.

agents deployment

Manage scheduled / triggered deployments.

SubcommandDescription
deployment listList deployments tracked in state.
deployment list --remote --provider <provider>List deployments from a native provider API; supports status, agent, archive, limit, and pagination filters.
deployment get <name>Show a deployment's status and resolved bindings.
deployment pause <name>Pause scheduled runs for a native deployment.
deployment unpause <name>Resume a paused native deployment.
deployment run <name>Trigger a deployment run (native on Bailian/Qoder/Claude, emulated as a session on Volcengine Ark).

agents memory-store

Manage persistent stores directly. Store creation through agents apply remains the recommended declarative workflow.

CommandDescription
create <name>Create a store (--description).
listList stores (--limit, --cursor, --include-archived).
get <store-id>Retrieve a store.
update <store-id>Update --name and/or --description.
archive <store-id>Archive a store (Qoder/Claude).
delete <store-id>Permanently delete a store and its memories.

agents memory

Manage individual text memories. Content can be passed with --content or --content-file. Portable paths are relative; adapters handle wire-format differences.

CommandDescription
create <store-id> <path>Create one memory.
batch-create <store-id> <json-file>Ark batch create; supports --on-conflict overwrite|fail.
list <store-id>List memories; supports pagination, prefix/depth and --full.
get <store-id> <memory-id>Retrieve full content.
update <store-id> <memory-id>Update content/path; --expected-sha256 enables optimistic concurrency where supported.
delete <store-id> <memory-id>Delete one memory.
`version listget

agents models

SubcommandDescription
models listList models available on the configured provider(s). Accepts --json.