Skip to Content
DojOps — AI DevOps Automation Engine. Learn more →
UsageCLI Reference

CLI Reference

Complete reference for the dojops command-line interface.


Commands

Generation & Planning

CommandDescription
dojops <prompt>Generate DevOps config (default command)
dojops generate <prompt>Explicit generation (same as default)
dojops plan <prompt>Decompose goal into dependency-aware task graph
dojops plan --execute <prompt>Plan + execute with approval workflow
dojops apply [<plan-id>]Execute a saved plan
dojops apply --skip-verifySkip external config verification (on by default)
dojops apply --allow-all-pathsBypass DevOps file write allowlist
dojops apply --resumeResume a partially-failed plan
dojops apply --replayDeterministic replay: temp=0, validate env match
dojops apply --dry-runPreview changes without writing files
dojops validate [<plan-id>]Validate plan against schemas
dojops explain [<plan-id>]LLM explains a plan in plain language

Diagnostics & Analysis

CommandDescription
dojops checkLLM-powered DevOps config quality check (score 0-100)
dojops check --output jsonOutput check report as JSON
dojops debug ci <log>Diagnose CI/CD log failures (root cause, fixes)
dojops analyze diff <diff>Analyze infrastructure diff (risk, cost, security)
dojops scanSecurity scan: vulnerabilities, deps, IaC, secrets
dojops scan --securityRun security scanners only (trivy, gitleaks)
dojops scan --depsRun dependency audit only (npm, pip)
dojops scan --iacRun IaC scanners only (checkov, hadolint)
dojops scan --sbomGenerate SBOM (CycloneDX) with hash tracking
dojops scan --fixGenerate and apply LLM-powered remediation
dojops scan --compareCompare findings with previous scan report

Interactive

CommandDescription
dojops chatInteractive multi-turn AI DevOps session
dojops chat --session=NAMEResume or create a named session
dojops chat --resumeResume the most recent session
dojops chat --agent=NAMEPin conversation to a specialist agent

Chat supports slash commands: /exit, /agent <name>, /plan <goal>, /apply, /scan, /history, /clear, /save.

Agents & Tools

CommandDescription
dojops agents listList all agents (built-in + custom)
dojops agents info <name>Show agent details and tool dependencies
dojops agents create <desc>Create a custom agent (LLM-generated)
dojops agents create --manualCreate a custom agent interactively
dojops agents remove <name>Remove a custom agent
dojops tools listList discovered custom tools (global + project)
dojops tools validate <path>Validate a custom tool manifest
dojops tools init <name>Scaffold a new custom tool with template files
dojops tools publish <file>Publish a .dops tool to the DojOps Hub
dojops tools install <name>Install a .dops tool from the DojOps Hub
dojops tools search <query>Search the DojOps Hub for tools
dojops toolchain listList system toolchain binaries with install status
dojops toolchain install <name>Download binary into toolchain (~/.dojops/toolchain/)
dojops toolchain remove <name>Remove a toolchain binary
dojops toolchain cleanRemove all toolchain binaries
dojops inspect <target>Inspect config or session state

History & Audit

CommandDescription
dojops history listView execution history
dojops history show <plan-id>Show plan details and per-task results
dojops history verifyVerify audit log hash chain integrity
dojops destroy <plan-id>Remove generated artifacts from a plan
dojops rollback <plan-id>Reverse an applied plan (delete created files + restore .bak backups)

Provider Management

CommandDescription
dojops providerList all providers with status (alias: list)
dojops provider add <name> [--token KEY]Add/configure a provider token
dojops provider remove <name>Remove a provider token
dojops provider default <name>Set the default provider
dojops provider switchInteractive picker to switch default provider
dojops provider --as-default <name>Set default provider (shortcut)
dojops provider list --output jsonList providers as JSON

Configuration & Server

CommandDescription
dojops configConfigure provider, model, tokens (interactive)
dojops config showDisplay current configuration
dojops config profile create NAMESave current config as a named profile
dojops config profile use NAMESwitch to a named profile
dojops config profile listList all profiles
dojops auth loginAuthenticate with LLM provider
dojops auth statusShow saved tokens and default provider
dojops serve [--port=N]Start API server + web dashboard
dojops serve credentialsGenerate API key for dashboard/API authentication
dojops initInitialize .dojops/ + comprehensive repo scan (11 CI, IaC, scripts, security)
dojops doctorSystem health diagnostics + project metrics

Global Options

OptionDescription
--provider=NAMELLM provider: openai, anthropic, ollama, deepseek, gemini, github-copilot
--model=NAMELLM model override
--temperature=NLLM temperature (0-2) for deterministic reproducibility
--profile=NAMEUse named config profile
--tool=NAMEForce a specific tool for generate, plan, or apply (bypasses agent routing)
--output=FORMATOutput: table (default), json, yaml
--verboseVerbose output
--debugDebug-level output with stack traces
--quietSuppress non-essential output
--no-colorDisable color output
--non-interactiveDisable interactive prompts
--yesAuto-approve all confirmations (implies --non-interactive)
--help, -hShow help message

Exit Codes

CodeMeaning
0Success
1General error
2Validation error
3Approval required
4Lock conflict (concurrent operation)
5No .dojops/ project
6HIGH security findings detected
7CRITICAL security findings detected

Examples

Generating Configs

# Generate with automatic agent routing dojops "Create a Terraform config for S3 with versioning" dojops "Write a Kubernetes deployment for nginx with 3 replicas" dojops "Set up monitoring with Prometheus and alerting rules" dojops "Create a multi-stage Dockerfile for a Go application" # Update existing configs (auto-detects existing files, creates .bak backup) dojops "Add caching to the GitHub Actions workflow" dojops "Add a Redis service to docker-compose" dojops "Add an S3 bucket to the existing Terraform config" # Override provider/model for a single command dojops --provider=anthropic "Create a Helm chart for Redis" dojops --model=gpt-4o "Design a VPC with public and private subnets" # Force a specific tool (bypass agent routing) dojops --tool=terraform "Create an S3 bucket with versioning" dojops --tool=kubernetes "Create a deployment for nginx"

Planning and Execution

# Decompose a complex goal into tasks dojops plan "Set up CI/CD for a Node.js app with Docker and Kubernetes" # Plan and execute immediately dojops plan --execute --yes "Create CI pipeline for a Python project" # Execute a saved plan dojops apply dojops apply --dry-run # preview only dojops apply --skip-verify # skip external validation (on by default) dojops apply --force # skip git dirty working tree check dojops apply --allow-all-paths # bypass DevOps file write allowlist dojops apply --resume --yes # resume failed tasks, auto-approve dojops apply --replay # deterministic: temp=0, validate env match dojops apply --replay --yes # force replay despite mismatches # Force a specific tool for planning or execution dojops --tool=terraform plan "Set up S3 with CloudFront" dojops apply plan-abc --tool=terraform # only run terraform tasks from plan

Diagnostics

# Debug CI failures dojops debug ci "ERROR: tsc failed with exit code 1..." dojops debug ci "npm ERR! ERESOLVE unable to resolve dependency tree" # Analyze infrastructure diffs dojops analyze diff "terraform plan output..." dojops explain last

DevOps Quality Check

# Analyze detected DevOps files for quality, security, and best practices dojops check # Machine-readable output dojops check --output json

Security Scanning

# Full project scan dojops scan # Targeted scans dojops scan --security # trivy + gitleaks dojops scan --deps # npm-audit + pip-audit dojops scan --iac # checkov + hadolint dojops scan --sbom # generate SBOM with hash tracking # Compare with previous scan dojops scan --compare # Auto-remediation dojops scan --fix --yes

Interactive Chat

# Start a new session dojops chat # Named session with agent pinning dojops chat --session=infra --agent=terraform # Resume the most recent session dojops chat --resume

Toolchain Management

# Check available toolchain binaries dojops toolchain list # Install external validators dojops toolchain install terraform dojops toolchain install kubectl dojops toolchain install hadolint # Cleanup dojops toolchain clean

Custom Tool Management

# List discovered custom tools (global + project) dojops tools list # Scaffold a new custom tool dojops tools init my-tool # Validate a custom tool manifest dojops tools validate .dojops/tools/my-tool/ # Publish a tool to DojOps Hub (requires DOJOPS_HUB_TOKEN) dojops tools publish my-tool.dops --changelog "Initial release" # Install a tool from DojOps Hub dojops tools install nginx-config dojops tools install nginx-config --version 1.0.0 --global # Search the DojOps Hub for tools dojops tools search docker dojops tools search terraform --limit 5 dojops tools search k8s --output json

Hub Publishing Setup

Publishing tools to the DojOps Hub  requires an API token:

# 1. Sign in at hub.dojops.ai → Settings → API Tokens # 2. Generate a token (format: dojops_<40-hex-chars>) # 3. Set the environment variable: export DOJOPS_HUB_TOKEN="dojops_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2" # Publish a tool dojops tools publish my-tool.dops # Publish with changelog dojops tools publish my-tool.dops --changelog "v1.1.0: Added Redis support" # Install from hub (no token required) dojops tools install my-tool dojops tools install my-tool --version 1.0.0 --global

The CLI sends the token as a Bearer header. Tokens can be managed (created, viewed, revoked) from the Hub Settings page at /settings/tokens. See DevOps Tools — Hub Integration for the full publish/install flow.

Provider Management

# List all providers with status dojops provider dojops provider list --output json # Add providers dojops provider add openai --token sk-... dojops provider add anthropic --token sk-ant-... # Switch default provider dojops provider switch # interactive picker dojops provider default anthropic # direct dojops provider --as-default openai # shortcut flag # Remove a provider dojops provider remove deepseek

Administration

# System diagnostics dojops doctor # Browse agents dojops agents list dojops agents info terraform-specialist # Create custom agents dojops agents create "an SRE specialist for incident response" dojops agents create --manual dojops agents remove sre-specialist # Audit trail dojops history list dojops history show plan-abc123 dojops history verify # Start dashboard dojops serve --port=8080 # Generate API credentials and start with auth dojops serve credentials # generates key, saves to ~/.dojops/server.json dojops serve # auto-loads key from server.json # Configuration profiles dojops config profile create staging dojops config profile use staging dojops config profile list