AgenticFlow CLI
Install
# Run without installing
npx @pixelml/agenticflow-cli doctor
# Or install globally
npm install -g @pixelml/agenticflow-cliQuick Start
# 1. Set your API key
export AGENTICFLOW_API_KEY=your_key
# 2. Verify setup (CI-safe: non-zero exit if required checks fail)
agenticflow doctor --json --strict
# 3. List your workflows
agenticflow workflow list --json
# 4. Prime local template cache (workflow + agent + workforce samples)
agenticflow templates sync --json
agenticflow templates index --json
# 4b. Duplicate from templates (cache-first)
agenticflow templates duplicate workflow --template-id <workflow_template_id> --cache-dir .agenticflow/templates --json
agenticflow templates duplicate agent --template-id <agent_template_id> --cache-dir .agenticflow/templates --json
# 5. Run a workflow
agenticflow workflow run --workflow-id <id> --input '{"query": "hello"}' --json
# 6. Check run status
agenticflow workflow run-status --workflow-run-id <run_id> --json
# 7. Create + stream an agent
agenticflow agent create --body @agent.json
agenticflow agent stream --agent-id <id> --body @stream.json --jsonAuthentication
Method
Usage
Best For
Interactive Login (recommended)
Import from .env
Environment Variables
Variable
Purpose
Machine Output Contract
Global Options
Flag
Purpose
Next Steps
Last updated