The @output.ai/cli provides commands for initializing projects, running workflows, and AI-assisted development.
Installation
npm install -g @output.ai/cli
Quick Reference
| Command | Description |
|---|
output init | Initialize a new project |
output dev | Start development services |
output agents init | Initialize AI agent configurations |
output workflow plan | Generate a workflow plan |
output workflow generate | Generate a workflow from plan |
output workflow list | List available workflows |
output workflow run | Execute a workflow synchronously |
output workflow start | Start a workflow asynchronously |
output workflow status | Get workflow execution status |
output workflow output | Get workflow execution output |
output workflow stop | Stop a workflow execution |
Project Commands
output init
Initialize a new Output Framework workflow project.
output init [folder-name]
Name of the project folder to create
Flags:
| Flag | Type | Default | Description |
|---|
--skip-env | boolean | false | Skip interactive environment variable configuration |
output dev
Start all development services.
This command starts:
| Service | URL | Description |
|---|
| Temporal UI | http://localhost:8080 | Monitor and debug workflows |
| Temporal Server | localhost:7233 | gRPC endpoint |
| API Server | http://localhost:3001 | REST API for workflow execution |
| Worker | — | Processes workflows with auto-reload |
| PostgreSQL | localhost:5432 | Temporal persistence |
| Redis | localhost:6379 | Caching layer |
Flags:
| Flag | Type | Default | Description |
|---|
--compose-file, -f | string | — | Path to custom docker-compose file |
--no-watch | boolean | false | Disable file watching |
output dev eject
Eject Docker Compose configuration for customization.
Flags:
| Flag | Type | Default | Description |
|---|
--output, -o | string | docker-compose.yml | Output path |
--force, -f | boolean | false | Overwrite existing file |
Agent Commands
output agents init
Initialize agent configuration files for AI assistant integration.
This creates:
.outputai/ directory with agent and command configurations
.claude/ directory with symlinks for Claude Code integration
Flags:
| Flag | Type | Default | Description |
|---|
--agent-provider | string | claude-code | Agent provider |
--force, -f | boolean | false | Overwrite existing files |
Workflow Commands
output workflow plan
Generate a workflow plan from a natural language description.
The command prompts for a workflow description, generates a plan using AI, and provides an interactive modification loop. Type ACCEPT to save the plan.
Flags:
| Flag | Type | Default | Description |
|---|
--description, -d | string | — | Workflow description (prompts if not provided) |
--force-agent-file-write | boolean | false | Force overwrite agent templates |
Example:
output workflow plan --description "A workflow that summarizes news articles"
output workflow generate
Generate a new Output Framework workflow.
output workflow generate <name>
Name of the workflow to generate
Flags:
| Flag | Type | Default | Description |
|---|
--skeleton, -s | boolean | false | Generate minimal skeleton without examples |
--description, -d | string | — | Workflow description |
--output-dir, -o | string | workflows/ | Output directory |
--force, -f | boolean | false | Overwrite existing directory |
--plan-file, -p | string | — | Path to plan file for AI-assisted implementation |
Examples:
# Generate skeleton workflow
output workflow generate my-workflow --skeleton
# Generate from a plan file
output workflow generate summarize --plan-file .outputai/plans/2025_01_15_summarize/PLAN.md
output workflow list
List available workflows from the catalog.
Flags:
| Flag | Type | Default | Description |
|---|
--format, -f | string | list | Output format: list, table, json |
--detailed, -d | boolean | false | Show detailed information |
--filter | string | — | Filter by name |
output workflow run
Execute a workflow synchronously and wait for completion.
output workflow run <workflowName>
Name of the workflow to execute
Flags:
| Flag | Type | Default | Description |
|---|
--input, -i | string | — | JSON input or file path (required) |
--task-queue, -q | string | — | Task queue name |
--format, -f | string | text | Output format: json, text |
Example:
output workflow run simple --input '{"question": "who is ada lovelace?"}'
output workflow start
Start a workflow asynchronously without waiting for completion.
output workflow start <workflowName>
Name of the workflow to start
Flags:
| Flag | Type | Default | Description |
|---|
--input, -i | string | — | JSON input or file path (required) |
--task-queue, -q | string | — | Task queue name |
Returns the workflow ID immediately.
output workflow status
Get the status of a workflow execution.
output workflow status <workflowId>
The workflow execution ID
Flags:
| Flag | Type | Default | Description |
|---|
--format, -f | string | text | Output format: json, text |
output workflow output
Get the output of a completed workflow execution.
output workflow output <workflowId>
The workflow execution ID
Flags:
| Flag | Type | Default | Description |
|---|
--format, -f | string | text | Output format: json, text |
output workflow stop
Stop a running workflow execution.
output workflow stop <workflowId>
The workflow execution ID to stop
Environment Variables
The CLI respects the following environment variables:
| Variable | Description |
|---|
API_URL | Custom API server URL (default: http://localhost:3001) |
TEMPORAL_ADDRESS | Temporal server address |
TEMPORAL_NAMESPACE | Temporal namespace |
ANTHROPIC_API_KEY | Anthropic API key for Claude-based workflows |
OPENAI_API_KEY | OpenAI API key for GPT-based workflows |