System Requirements
zCLI supports the following platforms:- Linux - x86 and x64 architectures
- macOS - x86-64 and ARM64 (Apple Silicon)
- Windows - x64 architecture
Installation Methods
- Linux/macOS
- Windows
- npm/yarn
- Manual
- NixOS
Quick Install Script
The easiest way to install zCLI on Linux or macOS is using the installation script:- Download the latest version of zCLI
- Install it to
/usr/binor/usr/local/bin - Make it executable and ready to use
Verify Installation
After installation, verify that zCLI is working: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:Get Your Access Token
- Log in to the Zerops GUI
- Navigate to Access Token management
- Click “Generate a new access token”
- Copy the generated token
Shell Completion (Optional)
Enable shell autocompletion for a better experience:Updating zCLI
Using Installation Scripts
Run the same installation command to update to the latest version:Using Package Managers
Troubleshooting
Command not found after installation
Command not found after installation
If you get a “command not found” error after installation:
- Restart your terminal - This ensures your PATH is refreshed
- Check your PATH - Make sure the installation directory is in your PATH:
- Manual PATH addition - Add the installation directory to your PATH if needed
Permission denied on Linux/macOS
Permission denied on Linux/macOS
If you encounter permission errors:
- Use sudo - The installation script may need elevated privileges
- Check ownership - Ensure you have write permissions to the installation directory
- Use user directory - Consider installing to
~/.local/bininstead
Windows execution policy error
Windows execution policy error
If PowerShell blocks the installation script:Then run the installation command again.
Network/download issues
Network/download issues
If the installation fails due to network issues:
- Check your connection - Ensure you can access GitHub and zerops.io
- Use manual installation - Download from GitHub releases directly
- 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