Installation
Multiple ways to install the Kubiya CLI on your system
Quick Installation
Linux/macOS (Recommended)
The fastest way to get started is with our installation script:
curl -fsSL https://cli.kubiya.ai/install.sh | bash
This script will:
- Detect your operating system and architecture
- Download the latest release
- Install the binary to
/usr/local/bin - Set up shell completion
- Verify the installation
Windows
For Windows users, use PowerShell:
iwr -useb https://cli.kubiya.ai/install.ps1 | iex
Or download the Windows binary directly from our releases page.
Package Managers
APT (Debian/Ubuntu)
Add our official APT repository:
# Add Kubiya's GPG key
curl -fsSL https://cli.kubiya.ai/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/kubiya-archive-keyring.gpg
# Add the repository
echo "deb [signed-by=/usr/share/keyrings/kubiya-archive-keyring.gpg] https://cli.kubiya.ai/apt stable main" | sudo tee /etc/apt/sources.list.d/kubiya.list
# Update package list and install
sudo apt update
sudo apt install kubiya-cli
Homebrew (macOS)
Coming soon! We’re working on Homebrew support.
Snap (Linux)
Coming soon! Snap package will be available shortly.
Manual Installation
Download Binary
- Go to the releases page
- Download the appropriate binary for your system:
kubiya-linux-amd64- Linux x86_64kubiya-linux-arm64- Linux ARM64kubiya-darwin-amd64- macOS Intelkubiya-darwin-arm64- macOS Apple Siliconkubiya-windows-amd64.exe- Windows x86_64
- Make it executable and move to your PATH:
# Linux/macOS
chmod +x kubiya-*
sudo mv kubiya-* /usr/local/bin/kubiya
# Windows
# Move kubiya-windows-amd64.exe to a directory in your PATH and rename to kubiya.exe
Build from Source
Requirements:
- Go 1.19 or later
- Git
# Clone the repository
git clone https://github.com/kubiyabot/cli.git
cd cli
# Build the binary
make build
# Install locally
make install
Verify Installation
After installation, verify that Kubiya CLI is working correctly:
# Check version
kubiya version
# Check help
kubiya --help
Expected output:
Kubiya CLI v2.0.0
Built with Go 1.19
Platform: linux/amd64
Configuration
Environment Variables
Set up your API key and configuration:
# Required: Your Kubiya API key
export KUBIYA_API_KEY="your-api-key-here"
# Optional: Custom API URL (defaults to https://api.kubiya.ai/api/v1)
export KUBIYA_BASE_URL="https://api.kubiya.ai/api/v1"
# Optional: Enable debug mode
export KUBIYA_DEBUG=true
# Optional: Default runner
export KUBIYA_DEFAULT_RUNNER="my-runner"
This creates ~/.kubiya/config.yaml with default settings:
api_key: ""
base_url: "https://api.kubiya.ai/api/v1"
debug: false
default_runner: ""
timeout: "300s"
Shell Completion
Enable tab completion for enhanced CLI experience:
Bash
# Add to your ~/.bashrc
echo 'source <(kubiya completion bash)' >> ~/.bashrc
source ~/.bashrc
Zsh
# Add to your ~/.zshrc
echo 'source <(kubiya completion zsh)' >> ~/.zshrc
source ~/.zshrc
Fish
# Add to Fish config
kubiya completion fish | source
PowerShell
# Add to your PowerShell profile
kubiya completion powershell | Out-String | Invoke-Expression
Docker
Run Kubiya CLI in a Docker container:
# Pull the image
docker pull kubiya/cli:latest
# Run with environment variables
docker run -e KUBIYA_API_KEY="your-api-key" kubiya/cli:latest version
# Run interactively
docker run -it -e KUBIYA_API_KEY="your-api-key" kubiya/cli:latest
Kubernetes
Deploy Kubiya CLI as a Kubernetes job:
apiVersion: batch/v1
kind: Job
metadata:
name: kubiya-cli-job
spec:
template:
spec:
containers:
- name: kubiya-cli
image: kubiya/cli:latest
command: ["kubiya"]
args: ["workflow", "execute", "myorg/deploy-workflow"]
env:
- name: KUBIYA_API_KEY
valueFrom:
secretKeyRef:
name: kubiya-secret
key: api-key
restartPolicy: Never
Troubleshooting
Common Issues
Permission Denied
# If you get permission denied, ensure the binary is executable
chmod +x /usr/local/bin/kubiya
Command Not Found
# Ensure the binary is in your PATH
export PATH=$PATH:/usr/local/bin
SSL Certificate Issues
# If you encounter SSL issues, try:
export KUBIYA_SKIP_SSL_VERIFY=true
Uninstallation
To remove Kubiya CLI:
# Remove binary
sudo rm /usr/local/bin/kubiya
# Remove configuration
rm -rf ~/.kubiya
# Remove shell completion (if added)
# Edit your shell RC file to remove the completion line
For APT installations:
sudo apt remove kubiya-cli
sudo rm /etc/apt/sources.list.d/kubiya.list
Getting Help
If you encounter issues during installation:
- Check our troubleshooting guide
- Search existing GitHub issues
- Create a new issue with:
- Your operating system and version
- Installation method used
- Complete error messages
- Output of
kubiya version(if available)
Next Steps
Once installed, you can: