Skip to content

Latest commit

 

History

History
129 lines (90 loc) · 4.96 KB

File metadata and controls

129 lines (90 loc) · 4.96 KB

CLI reference

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

Global options

Option Description
-f, --config <path> Path to the config file. Defaults to agents.yaml.
-v, --verbose Increase logging verbosity. Repeat: -vv.
-q, --quiet Suppress non-error output.
--no-color Disable colored output.
-V, --version Print the CLI version.

Most commands accept --config <path> and --provider <name> to target a single provider. Run agents <command> --help for the definitive 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.

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

agents validate

Validate the configuration file offline — checks YAML shape and field validity without making API calls.

agents plan

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

Option Description
--provider <name> Target provider (all by default).
--refresh <bool> Refresh state from remote before planning (default true).
--refresh-only Refresh state and show drift without planning remote mutations.
--json Output as JSON.

agents apply

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

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

agents destroy

Destroy all managed resources.

Option Description
-y, --yes Skip confirmation prompt.
--cascade Auto-delete dependent resources (e.g. sessions referencing an environment).

agents sync

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

Option Description
--provider <name> Source provider to sync from.
-o, --out <path> Output file (default agents.synced.yaml).
--force Overwrite the output file if it exists.

agents migrate

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

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

agents state

Inspect and manage the state file.

Subcommand Description
state list List 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.

Subcommand Description
session create [agent-name] Create a new session.
session list List 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 stream the response.
session send <session-id> <message> Send a message to an existing session and stream the response.
session events <session-id> List event history for a session.
session delete <session-id> Delete a session.

session create / session run accept --agent, --environment, --vault, --memory-stores, --title, and --provider. session run and session send accept --json (JSONL output) and --no-stream (polling instead of SSE). session list accepts --agent and --all; session events accepts --limit, --all, --json.

agents deployment

Manage scheduled / triggered deployments.

Subcommand Description
deployment list List deployments tracked in state.
deployment get <name> Show a deployment's status and resolved bindings.
deployment run <name> Trigger a deployment run (native on Claude, emulated as a session on Bailian/Qoder/Volcengine Ark).

agents models

Subcommand Description
models list List models available on the configured provider(s). Accepts --json.