Quick install (recommended)
The fastest way to get started is using our installation script, which automatically detects your platform and installs the latest version.The installation script automatically:
- Detects your operating system and architecture
- Downloads the appropriate binary
- Verifies the checksum for security
- Installs to
/usr/local/bin(or your custom directory) - Makes the binary executable
Verify the installation
After installation, verify that hc is available:Manual installation
If you prefer to install manually or the quick install script doesn’t work for your environment, you can download the binary directly.Download the binary
Visit the releases page and download the binary for your platform:
- Linux (x86_64):
hc-linux-amd64 - Linux (ARM64):
hc-linux-arm64 - macOS (Intel):
hc-darwin-amd64 - macOS (Apple Silicon):
hc-darwin-arm64 - Windows (x86_64):
hc-windows-amd64.exe
Building from source
For development or if you need the absolute latest features, you can build the CLI from source.Install Go
Build the binary
Use the provided Makefile to build:This creates a
hc binary in the current directory.Development workflow
If you’re developing the CLI, you can use these additional commands:Platform-specific notes
macOS
macOS
Gatekeeper warning
On macOS, you may see a security warning when first running the CLI. This is because the binary is not signed with an Apple Developer certificate.To allow the CLI to run:- Try to run
hcin Terminal - Go to System Preferences → Security & Privacy
- Click Allow Anyway next to the warning about
hc - Run
hcagain and click Open in the confirmation dialog
Linux
Linux
Windows
Windows
PowerShell execution
- Download
hc-windows-amd64.exefrom the releases page - Rename it to
hc.exe - Move it to a directory in your PATH (e.g.,
C:\Windows\System32orC:\Users\YourName\bin)
Adding to PATH
If the installation directory is not in your PATH:- Right-click This PC → Properties
- Click Advanced system settings
- Click Environment Variables
- Edit the Path variable and add your directory
- Restart PowerShell or Command Prompt
Upgrading
To upgrade to the latest version, use the built-in upgrade command:The upgrade command automatically downloads and installs the latest version, preserving your configuration.
Uninstalling
To uninstall the Harness CLI:Next steps
Now that you have the CLI installed, you’re ready to get started:Quickstart guide
Get from installation to your first successful command in minutes.
Authentication
Learn how to authenticate with Harness services.
Configuration
Configure the CLI for your environment.
Command reference
Explore all available commands.