Install the Kubiya CLI on macOS, Linux, Windows, Docker, or build from source
The Kubiya CLI is available for multiple platforms and can be installed using package managers or direct download.
On-Demand Execution: Run AI tasks without needing a queue in advance - perfect for CI/CD pipelines! Just use kubiya exec "your task" and the Control Plane creates an ephemeral worker queue, provisions a worker on managed infrastructure, runs your task, and automatically cleans up. No queue setup needed!
Worker Flexibility: If you want to run persistent workers, they can run on nearly any compute environment - your local machine (Mac, Linux, Windows), Kubernetes clusters, Docker containers, VMs (EC2, GCE, Azure), or bare metal servers. This makes them incredibly powerful and easy to deploy wherever your infrastructure lives!
# Using PowerShell$VERSION = (Invoke-WebRequest -Uri "https://api.github.com/repos/kubiyabot/cli/releases/latest" | ConvertFrom-Json).tag_name$URL = "https://github.com/kubiyabot/cli/releases/download/$VERSION/kubiya-cli-windows-amd64.exe"Invoke-WebRequest -Uri $URL -OutFile "kubiya.exe"# Move to a directory in your PATHMove-Item kubiya.exe C:\Windows\System32\kubiya.exe# Verify installationkubiya version
After installation, verify that the CLI is working correctly:
# Check versionkubiya version# Verify help is accessiblekubiya --help# Test with a simple command (requires API key)export KUBIYA_API_KEY="your-api-key"kubiya agent list
# Pull the latest imagedocker pull kubiyabot/cli:latest# Run CLI commandsdocker run --rm -e KUBIYA_API_KEY="your-api-key" kubiyabot/cli:latest version# Interactive modedocker run -it --rm -e KUBIYA_API_KEY="your-api-key" kubiyabot/cli:latest# Run with volume mount for persistent configdocker run -it --rm \ -e KUBIYA_API_KEY="your-api-key" \ -v ~/.kubiya:/root/.kubiya \ kubiyabot/cli:latest# Create an alias for conveniencealias kubiya='docker run --rm -e KUBIYA_API_KEY="$KUBIYA_API_KEY" kubiyabot/cli:latest'