Installation
The quickest way to install Runbooks is to download the pre-built binaries from the GitHub releases page.
Installing pre-built binaries
Section titled “Installing pre-built binaries”Using curl (Apple Silicon M1/M2/M3/etc.):
# Download the latest releasecurl -Lo runbooks https://github.com/gruntwork-io/runbooks/releases/latest/download/runbooks_darwin_arm64
# Make it executablechmod +x runbooks
# Move to your PATHsudo mv runbooks /usr/local/bin/Using curl (Intel Mac):
# Download the latest releasecurl -Lo runbooks https://github.com/gruntwork-io/runbooks/releases/latest/download/runbooks_darwin_amd64
# Make it executablechmod +x runbooks
# Move to your PATHsudo mv runbooks /usr/local/bin/Using curl (x86_64/AMD64):
# Download the latest releasecurl -Lo runbooks https://github.com/gruntwork-io/runbooks/releases/latest/download/runbooks_linux_amd64
# Make it executablechmod +x runbooks
# Move to your PATHsudo mv runbooks /usr/local/bin/Using curl (ARM64):
# Download the latest releasecurl -Lo runbooks https://github.com/gruntwork-io/runbooks/releases/latest/download/runbooks_linux_arm64
# Make it executablechmod +x runbooks
# Move to your PATHsudo mv runbooks /usr/local/bin/Using PowerShell:
# Download the latest releaseInvoke-WebRequest -Uri "https://github.com/gruntwork-io/runbooks/releases/latest/download/runbooks_windows_amd64.exe" -OutFile "runbooks.exe"
# Move to a directory in your PATH (create if needed)New-Item -ItemType Directory -Force -Path "$env:LOCALAPPDATA\runbooks"Move-Item -Force runbooks.exe "$env:LOCALAPPDATA\runbooks\runbooks.exe"Then add %LOCALAPPDATA%\runbooks to your PATH:
- Press
Win + R, typesysdm.cpl, and press Enter - Go to the Advanced tab and click Environment Variables
- Under “User variables”, select Path and click Edit
- Click New and add
%LOCALAPPDATA%\runbooks - Click OK to save
Building from source
Section titled “Building from source”As an alternative to downloading pre-built binaries, you can build the binaries yourself:
-
Clone the repository:
Terminal window git clone https://github.com/gruntwork-io/runbooks.gitcd runbooks -
Build the frontend:
Terminal window cd webbun installbun run build -
Build the binary:
Terminal window go build -o runbooks main.go -
Move the binary to your PATH (optional):
Terminal window sudo mv runbooks /usr/local/bin/ -
Enable execute permissions for your binary
Terminal window chmod u+x /usr/local/bin/runbooks -
Verify installation:
Terminal window runbooks
Verifying installation
Section titled “Verifying installation”Once installed, you can verify that runbooks is working by running:
runbooks versionNow that you have Runbooks installed, let’s write your first runbook!