CLI Installation
Planton CLI
The Planton CLI provides terminal access to all platform capabilities. Deploy infrastructure, manage resources, and automate workflows from the command line.
Why use the CLI?
- Scriptable deployments - Integrate Planton into CI/CD pipelines and automation scripts
- Faster workflows - Power users can move faster with keyboard-driven commands
- Local validation - Validate configurations before deploying to catch errors early
- Offline editing - Work with YAML manifests locally, deploy when ready
Quick install
Choose your platform:
| Platform | Command |
|---|---|
| macOS | brew install plantonhq/tap/planton |
| Windows | See Windows installation |
| Linux | See Linux installation |
Install on macOS
Homebrew (recommended)
The recommended way to install on macOS is via Homebrew:
brew install plantonhq/tap/planton
Homebrew automatically:
- Downloads the correct binary for your Mac (Intel or Apple Silicon)
- Places it in your PATH
- Removes the macOS quarantine attribute (no Gatekeeper warnings)
To verify the installation:
planton version
Direct download
If you prefer not to use Homebrew, download the binary directly:
Apple Silicon (M1/M2/M3):
curl -Lo planton https://downloads.planton.ai/cli/v0.0.3/planton-v0.0.3-darwin-arm64
chmod +x planton
sudo mv planton /usr/local/bin/
Intel Mac:
curl -Lo planton https://downloads.planton.ai/cli/v0.0.3/planton-v0.0.3-darwin-amd64
chmod +x planton
sudo mv planton /usr/local/bin/
Remove Gatekeeper quarantine:
macOS flags downloaded binaries as untrusted. Remove the quarantine attribute:
xattr -dr com.apple.quarantine /usr/local/bin/planton
Tip: Not sure which Mac you have? Run
uname -m. If it showsarm64, you have Apple Silicon. If it showsx86_64, you have Intel.
Install on Windows
Windows Subsystem for Linux (WSL)
If you use WSL, install the Linux binary using curl:
x86_64 (most systems):
curl -Lo planton https://downloads.planton.ai/cli/v0.0.3/planton-v0.0.3-linux-amd64
chmod +x planton
sudo mv planton /usr/local/bin/
ARM64:
curl -Lo planton https://downloads.planton.ai/cli/v0.0.3/planton-v0.0.3-linux-arm64
chmod +x planton
sudo mv planton /usr/local/bin/
PowerShell (native Windows)
For native Windows without WSL, open PowerShell as Administrator and run:
Windows x64 (most systems):
# Download the CLI
Invoke-WebRequest -Uri "https://downloads.planton.ai/cli/v0.0.3/planton-v0.0.3-windows-amd64.exe" -OutFile "planton.exe"
# Move to a directory in your PATH (create if needed)
New-Item -ItemType Directory -Force -Path "$env:USERPROFILE\bin"
Move-Item -Path "planton.exe" -Destination "$env:USERPROFILE\bin\planton.exe"
# Add to PATH (run once)
$userPath = [Environment]::GetEnvironmentVariable("Path", "User")
if ($userPath -notlike "*$env:USERPROFILE\bin*") {
[Environment]::SetEnvironmentVariable("Path", "$userPath;$env:USERPROFILE\bin", "User")
}
Windows ARM64:
# Download the CLI
Invoke-WebRequest -Uri "https://downloads.planton.ai/cli/v0.0.3/planton-v0.0.3-windows-arm64.exe" -OutFile "planton.exe"
# Move to a directory in your PATH (create if needed)
New-Item -ItemType Directory -Force -Path "$env:USERPROFILE\bin"
Move-Item -Path "planton.exe" -Destination "$env:USERPROFILE\bin\planton.exe"
# Add to PATH (run once)
$userPath = [Environment]::GetEnvironmentVariable("Path", "User")
if ($userPath -notlike "*$env:USERPROFILE\bin*") {
[Environment]::SetEnvironmentVariable("Path", "$userPath;$env:USERPROFILE\bin", "User")
}
After adding to PATH, restart your terminal for changes to take effect.
Tip: Check your architecture in PowerShell with
$env:PROCESSOR_ARCHITECTURE.AMD64is x64,ARM64is ARM.
Verify checksum on Windows
# Download checksums
Invoke-WebRequest -Uri "https://downloads.planton.ai/cli/v0.0.3/checksums.txt" -OutFile "checksums.txt"
# Calculate hash of downloaded file
(Get-FileHash -Path "planton.exe" -Algorithm SHA256).Hash.ToLower()
# Compare with checksum in checksums.txt
Get-Content checksums.txt | Select-String "windows-amd64"
Install on Linux
Download the binary directly for your architecture.
x86_64 (amd64)
Most Linux servers and desktops use x86_64:
curl -Lo planton https://downloads.planton.ai/cli/v0.0.3/planton-v0.0.3-linux-amd64
chmod +x planton
sudo mv planton /usr/local/bin/
ARM64 (aarch64)
For ARM-based systems like Raspberry Pi 4, AWS Graviton, or ARM cloud instances:
curl -Lo planton https://downloads.planton.ai/cli/v0.0.3/planton-v0.0.3-linux-arm64
chmod +x planton
sudo mv planton /usr/local/bin/
Tip: Run
uname -mto check your architecture.x86_64means amd64,aarch64means arm64.
Verify checksum on Linux
For security-conscious installations, verify the download:
# Download checksums
curl -LO https://downloads.planton.ai/cli/v0.0.3/checksums.txt
# Verify (replace filename with your download)
sha256sum -c checksums.txt --ignore-missing
Verify installation
After installing, verify the CLI works:
planton version
You should see output like:
planton version v0.0.3
If you get a "command not found" error, ensure the binary location is in your PATH.
Authentication
Before using the CLI, authenticate with your Planton account:
Step 1: Log in
planton auth login
This opens your browser to authenticate with your Planton credentials. After successful login, the CLI stores your session locally.
Step 2: Set your organization context
planton context set --org your-org-name
This sets the default organization for all CLI commands. Replace your-org-name with your actual organization ID.
Step 3: (Optional) Set environment context
planton context set --org your-org-name --env prod
Setting an environment makes it the default for resource operations, so you don't need to specify --env with every command.
Verify context
planton context show
Upgrading
Self-Update (Recommended)
The CLI includes a built-in upgrade command that works on all platforms:
planton upgrade
This automatically:
- Checks for the latest version
- Downloads and installs the update
- On macOS with Homebrew: runs
brew upgrade planton - On other platforms: downloads the binary directly
Additional options:
# Check for updates without installing
planton upgrade --check
# Force upgrade even if already on latest
planton upgrade --force
Manual Upgrade
macOS (Homebrew)
brew update && brew upgrade planton
Linux and Windows (direct download)
Download the latest version using the same installation steps above. Check the current version:
planton version
Troubleshooting
"command not found" after installation
The binary isn't in your PATH. Either:
- Move the binary to a directory already in your PATH (like
/usr/local/bin) - Add the binary's directory to your PATH
macOS: "cannot verify developer" dialog
Run this to remove the quarantine flag:
xattr -dr com.apple.quarantine /usr/local/bin/planton
Or if you used Homebrew, reinstall:
brew reinstall planton
Permission denied when installing
Use sudo to move the binary to system directories:
sudo mv planton /usr/local/bin/
Or install to a user directory that doesn't require root:
mkdir -p ~/.local/bin
mv planton ~/.local/bin/
# Add ~/.local/bin to your PATH in .bashrc or .zshrc
Windows: "execution policy" error
If PowerShell blocks script execution, run:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
What's next?
Now that you have the CLI installed:
- Getting Started Guide - Deploy your first resource
- Platform Overview - Understand how Planton works
- Infrastructure - Deploy cloud infrastructure via CLI
For CLI command reference:
planton --help
Next article