CLI Commands Reference
Complete reference for the Conductor CLI.Getting Started
No installation needed - usenpx to run the CLI:
Usage
All Conductor commands are accessed through the unified Ensemble CLI:Global Commands
init
Initialize a new Conductor project.
Setup Types:
Examples:
- Creates project directory structure
- Installs dependencies (
@ensemble-edge/conductor, etc.) - Copies project templates (for
fullandstartermodes) - Configures dev scripts for your environment
- Provides next steps
configure
Configure AI providers, authentication, and other settings after project creation.
Options:
Examples:
- Prompts for AI provider selection
- Prompts for API key (except Cloudflare AI)
- Stores secret via
wrangler secret put - Enables
[ai]binding in wrangler.toml
- Checks if already logged in to Cloudflare
- Opens browser for OAuth login if needed
The
configure command requires a wrangler.toml file. Run it from your project directory after init. The same wizards are used during ensemble conductor init to ensure consistency.info
Show comprehensive project info including configuration, components, triggers, Cloudflare services, and deployment health.Command Naming:
info is the official command. status is an alias that works identically.dev
Start local development server.--port, -p <port>- Port number (default: 8787, auto-finds if busy)--background, -b- Run in background (detached)--no-auto-host- Disable auto--ip 0.0.0.0in containers--persist-to <dir>- Persist D1/KV data to directory
This wraps
npx wrangler dev. For dev containers, add --ip 0.0.0.0:deploy
Deploy to Cloudflare Workers.--env <environment>- Environment name (default: production)--dry-run- Show what would be deployed
test
Run tests.--watch- Watch mode--coverage- Generate coverage report--verbose- Verbose output
build
Execute all build triggers in the project. Build triggers run at build time to generate static assets like documentation, OpenAPI specs, or pre-rendered pages.--env <environment>- Target environment (default: production)--output <path>- Override output directory--verbose- Verbose output
- Finds all ensembles with
type: buildtriggers - Executes them sequentially
- Outputs generated files to configured directories
- Reports build status and timing
pnpm run buildbefore deployment (CI/CD)- Generate OpenAPI documentation
- Pre-render static pages
- Build search indexes
run
Execute a CLI trigger by command name. CLI triggers are custom commands defined in ensemble YAML files.
Options:
Options are defined in the ensemble’s CLI trigger configuration. They can be:
--<option-name> <value>- For string/number options--<flag-name>- For boolean flags- Multiple values supported for array options
Validate Command
validate
Validate ensemble and agent configuration files (YAML or TypeScript).
Options:
Supported File Types:
.yaml,.yml- YAML ensemble and agent definitions.ts- TypeScript agents and ensembles
- Default export - Must export a default handler function
- Function signature - Should accept
AgentExecutionContext - Return type - Should return a value or Promise
Bundle & Import Commands
bundle
Export an ensemble or agent with all its dependencies into a portable archive.
Options:
Examples:
import
Import a bundled ensemble or agent into the current project.
Options:
Examples:
Ensemble Commands
ensemble:list
List all ensembles.ensemble:run
Execute an ensemble locally.Agent Commands
agent:list
List all agents.agent:run
Execute an agent locally.agent:validate
Validate agent YAML.Component Commands
component:list
List all components.component:create
Create a new component.--type <type>- Component type (prompt, template, schema, config)--version <version>- Initial version (default: v1.0.0)
Edgit Commands
edgit:init
Initialize Edgit in project.edgit:info
Show Edgit project info.edgit status passes through to git status since Edgit is git-native. Use info for Edgit project information.edgit:commit
Commit changes.edgit:tag
Create version tag.edgit:log
Show commit history.edgit:diff
Show changes.Config Commands
config:get
Get configuration value.config:set
Set configuration value.config:list
List all configuration.API Key Commands
Manage API keys for authentication. Keys are stored in Cloudflare KV.keys generate
Generate a new API key with optional scoped permissions.
Examples:
keys list
List all API keys.keys revoke
Revoke an API key.keys info
Show information about an API key.keys rotate
Rotate an API key (generates new key, keeps metadata).Secrets Commands
secret:set
Set a secret.secret:list
List secret names (not values).secret:delete
Delete a secret.Database Commands
db:create
Create D1 database.db:migrate
Run database migrations.db:query
Execute SQL query.Storage Commands
storage:create
Create KV namespace or R2 bucket.kv, r2, vectorize
Example:
storage:list
List storage resources.Logs Commands
logs
Tail production logs.--env <environment>- Environment name--follow- Follow logs in real-time--filter <pattern>- Filter by pattern
Info Commands
info
Show project information.version
Show CLI version and scan for all Ensemble projects.- Tree view of all discovered Ensemble projects (Conductor, Edgit)
- Installed packages and their versions per project
- Latest available versions from npm
- Update status indicators (✓ up-to-date, ⬆ update available)
upgrade
Interactively upgrade Ensemble packages across all discovered projects.
See Upgrade Command for detailed examples.
help
Show help.Environment Management
env:list
List environments.env:create
Create environment.env:switch
Switch active environment.Common Options
Most commands support these options:--help- Show help--verbose- Verbose output--quiet- Quiet output--env <environment>- Target environment--config <path>- Config file path
Configuration File
Commands read fromconductor.config.js:
Next Steps
Unified CLI
Full Ensemble CLI documentation
YAML Schema
YAML configuration reference
TypeScript API
TypeScript API reference
Your First Project
Get started

