@obora/cli
v0.1.3
Published
Obora CLI — command-line interface for AI Control Runtime
Maintainers
Readme
@obora/cli
Command-line interface for Obora AI Control Runtime.
Installation
npm install -g @obora/cliCommands
obora init [project-name]
Initialize a new Obora project.
obora init my-project
obora init . # Current directory
obora init my-project --template standardOptions:
--template <name>- Project template (default, standard)--yes- Skip prompts, use defaults
obora run <workflow>
Execute a workflow.
obora run workflow.yaml
obora run workflow.yaml --input '{"task": "Build API"}'
obora run workflow.yaml --dry-runOptions:
--input <json>- Input variables--var <key=value>- Set variable (repeatable)--dry-run- Show execution plan without running--json- Output results as JSON--quiet- Suppress non-essential output--verbose- Show detailed execution info--output-dir <dir>- Output directory for artifacts
obora validate <workflow>
Validate a workflow definition.
obora validate workflow.yamlobora config
Manage configuration.
obora config list
obora config get providers.zai.model
obora config set providers.zai.model glm-4.7obora auth
Manage authentication for LLM providers.
obora auth login zai
obora auth logout zai
obora auth statusConfiguration
Project Config (.obora/config.yaml)
project:
name: my-project
providers:
zai:
api_key_env: ZAI_API_KEY
model: glm-4.7
defaults:
provider: zai
model: glm-4.7Global Config (~/.obora/config.yaml)
providers:
zai:
api_key_env: ZAI_API_KEY
openai:
api_key_env: OPENAI_API_KEY
anthropic:
api_key_env: ANTHROPIC_API_KEYEnvironment Variables
| Variable | Description |
|----------|-------------|
| ZAI_API_KEY | ZAI provider API key |
| OPENAI_API_KEY | OpenAI API key |
| ANTHROPIC_API_KEY | Anthropic API key |
| OBORA_LLM_PROVIDER | Default provider |
| OBORA_LLM_MODEL | Default model |
Project Structure
my-project/
├── .obora/
│ ├── config.yaml # Project configuration
│ ├── workflows/ # Workflow definitions
│ ├── agents.yaml # Agent definitions
│ └── policies/ # Policy definitions
├── features/ # Feature workspaces
├── archive/ # Completed features
└── output/ # Generated outputsExamples
Simple Pipeline
# Create project
obora init pipeline-demo
cd pipeline-demo
# Run example workflow
obora run .obora/workflows/simple.yamlWith Custom Input
obora run workflow.yaml \
--input '{"task": "Create REST API for users"}' \
--output-dir ./outputDry Run
obora run workflow.yaml --dry-run
# Shows: Execution plan with step order and dependenciesLicense
MIT
