Installation
This guide outlines how to download, install, and configure the Terrakube CLI (terrakube) on Linux, macOS, and Windows.
1. Download Official Release Binaries
Pre-compiled binary releases of terrakube are available on the Terrakube CLI Releases page.
Snap Package (Ubuntu / Linux)
On Ubuntu and systems with snapd, you can install Terrakube CLI via the Snap package:
sudo snap install --dangerous terrakube-cli_*.snapBoth terrakube and terrakube-cli commands will be available:
terrakube --version
terrakube-cli --helpLinux / macOS (Direct Binary Download)
Download the archive matching your operating system and architecture from the GitHub Releases page.
Extract the binary:
tar -xzf terrakube_<version>_<os>_<arch>.tar.gzMove the binary into a system directory in your executable
PATH(such as/usr/local/bin):sudo mv terrakube /usr/local/bin/ sudo chmod +x /usr/local/bin/terrakubeVerify the installation:
terrakube --help
Windows
Download the
terrakube_<version>_windows_<arch>.ziparchive from the GitHub Releases page.Extract
terrakube.exeinto a folder of your choice (e.g.,C:\Program Files\Terrakube).Add the installation directory to your system
PATHenvironment variable:Open System Properties > Environment Variables.
Under System Variables, select
Pathand click Edit.Click New and add
C:\Program Files\Terrakube.
Open a new PowerShell or Command Prompt terminal and verify:
2. Building from Source
If you prefer to build the terrakube binary directly from source:
Prerequisites
Go version 1.22 or higher.
gitinstalled.
Steps
Clone the
terrakube-iorepository:Compile the binary:
Move the binary to a directory in your system
PATH:Confirm installation:
Last updated
Was this helpful?