Skip to main content
zCLI is available for all major operating systems and can be installed using various methods. Choose the installation method that works best for your environment.

System Requirements

zCLI supports the following platforms:
  • Linux - x86 and x64 architectures
  • macOS - x86-64 and ARM64 (Apple Silicon)
  • Windows - x64 architecture

Installation Methods

Quick Install Script

The easiest way to install zCLI on Linux or macOS is using the installation script:
curl -L https://zerops.io/zcli/install.sh | sh
This script will:
  • Download the latest version of zCLI
  • Install it to /usr/bin or /usr/local/bin
  • Make it executable and ready to use

Verify Installation

After installation, verify that zCLI is working:
zcli version
You may need to restart your terminal or run source ~/.bashrc (or your shell’s equivalent) for the zcli command to be available.

Post-Installation

Authentication

After installing zCLI, you need to authenticate with your Zerops account:
1

Get Your Access Token

  1. Log in to the Zerops GUI
  2. Navigate to Access Token management
  3. Click “Generate a new access token”
  4. Copy the generated token
2

Log in with zCLI

Use the token to log in:
zcli login <your-token>

Shell Completion (Optional)

Enable shell autocompletion for a better experience:
zcli completion bash > ~/.zerops-completion.bash
echo 'source ~/.zerops-completion.bash' >> ~/.bashrc
source ~/.bashrc

Updating zCLI

Using Installation Scripts

Run the same installation command to update to the latest version:
curl -L https://zerops.io/zcli/install.sh | sh

Using Package Managers

npm update -g @zerops/zcli

Troubleshooting

If you get a “command not found” error after installation:
  1. Restart your terminal - This ensures your PATH is refreshed
  2. Check your PATH - Make sure the installation directory is in your PATH:
    echo $PATH  # Linux/macOS
    echo $env:PATH  # Windows PowerShell
    
  3. Manual PATH addition - Add the installation directory to your PATH if needed
If you encounter permission errors:
  1. Use sudo - The installation script may need elevated privileges
  2. Check ownership - Ensure you have write permissions to the installation directory
  3. Use user directory - Consider installing to ~/.local/bin instead
If PowerShell blocks the installation script:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Then run the installation command again.
If the installation fails due to network issues:
  1. Check your connection - Ensure you can access GitHub and zerops.io
  2. Use manual installation - Download from GitHub releases directly
  3. Use npm/yarn - Try installing via package managers instead

Next Steps

Commands Reference

Explore all available zCLI commands

Configuration

Learn how to configure zCLI for your workflow

Build docs developers (and LLMs) love