Introduction to the Kubiya CLI - your command-line interface for AI-powered automation
The Kubiya CLI is a comprehensive command-line interface that empowers you to build, deploy, and manage AI-powered automation from your terminal. Whether you’re managing infrastructure, orchestrating agents, or executing complex tasks, the CLI provides full control over the Kubiya Control Plane.
The Kubiya CLI is your command-line interface to Kubiya’s AI automation platform. Execute tasks, manage agents, and automate workflows - all from your terminal.
The kubiya exec command is your main interface to Kubiya:
Copy
Ask AI
# Execute any task with automatic planningkubiya exec "Deploy my app to production"# Local development modekubiya exec --local "Run tests" --yes# CI/CD automationkubiya exec "Deploy version 2.0" --yes --non-interactive
What Makes It Powerful:
🤖 Automatic Agent Selection: Analyzes your task and picks the best agent
📋 Intelligent Planning: Creates detailed execution plans with cost estimates
⚡ Zero Setup: On-demand workers provision automatically
💰 Cost Transparent: Shows estimated costs before execution
📦 Plan Storage: All plans saved for audit and repeatability
The kubiya exec command is your go-to for executing any task with automatic planning:
Production Deployment
Local Development
CI/CD Automation
Copy
Ask AI
# Full planning with cost estimates and approvalkubiya exec "Deploy version 2.5.0 to production"# What happens:# 1. Analyzes task → selects best agent# 2. Creates execution plan → shows costs# 3. You approve → provisions worker# 4. Executes task → shows results# 5. Auto-cleanup → done!
Copy
Ask AI
# Run locally for dev/test (uses your machine)kubiya exec --local "Run integration tests" --yes# Fast iterations with cached dependencieskubiya exec --local "Analyze code quality"
Run tasks without pre-configuring queues - perfect for CI/CD and automation:
Copy
Ask AI
# Zero setup needed - worker auto-provisionskubiya exec "Rollback to version 2.4.0" --yes# Ephemeral execution with automatic cleanupkubiya exec --local "Test new feature"
Ephemeral Workers: Perfect for CI/CD, automation, and development. Auto-provision, execute, and clean up automatically.
Deploy long-running workers for high-frequency tasks. Run on any compute environment - local, cloud VMs, Kubernetes, Docker:
Copy
Ask AI
# Start persistent worker on your infrastructurekubiya worker start --queue prod-queue# Or install + start in one command (daemon mode)curl -fsSL https://raw.githubusercontent.com/kubiyabot/cli/main/install.sh | bash -s -- \ --worker --queue-id=prod-queue --mode=daemon --start
When to Use: High-frequency operations, real-time monitoring, custom infrastructure, low-latency requirements. For occasional tasks, use ephemeral workers instead.
# List agentskubiya agent list# Create an agentkubiya agent create --file agent.yaml# Execute with agentkubiya agent exec <agent-id> "Deploy to staging"# Chat with an agentkubiya agent chat <agent-id>