Installation
If you use mise, you can install Boilerplate with a single command:
mise use --global boilerplatePre-built Binaries
Section titled “Pre-built Binaries”You can also download a pre-built binary from the GitHub Releases page.
Apple Silicon (M1/M2/M3/M4):
curl -Lo boilerplate https://github.com/gruntwork-io/boilerplate/releases/latest/download/boilerplate_darwin_arm64chmod +x boilerplatesudo mv boilerplate /usr/local/bin/Intel:
curl -Lo boilerplate https://github.com/gruntwork-io/boilerplate/releases/latest/download/boilerplate_darwin_amd64chmod +x boilerplatesudo mv boilerplate /usr/local/bin/# x86_64curl -Lo boilerplate https://github.com/gruntwork-io/boilerplate/releases/latest/download/boilerplate_linux_amd64
# ARM64curl -Lo boilerplate https://github.com/gruntwork-io/boilerplate/releases/latest/download/boilerplate_linux_arm64Then install it:
chmod +x boilerplatesudo mv boilerplate /usr/local/bin/-
Download
boilerplate_windows_amd64.exefrom the latest release (orboilerplate_windows_386.exefor 32-bit systems). -
Rename the file to
boilerplate.exe. -
Move it to a directory on your
PATH, for example:Terminal window mkdir -Force "$env:LOCALAPPDATA\Boilerplate"Move-Item boilerplate.exe "$env:LOCALAPPDATA\Boilerplate\boilerplate.exe" -
Add that directory to your
PATHif it isn’t already:Terminal window [Environment]::SetEnvironmentVariable("Path", "$env:Path;$env:LOCALAPPDATA\Boilerplate", "User") -
Restart your terminal for the
PATHchange to take effect.
Build from Source
Section titled “Build from Source”If you prefer to build from source, you’ll need Go 1.21 or later:
git clone https://github.com/gruntwork-io/boilerplate.gitcd boilerplatego build -o boilerplate .sudo mv boilerplate /usr/local/bin/Verify Installation
Section titled “Verify Installation”After installing, verify that Boilerplate is available:
boilerplate --versionYou should see the version number printed to the console.
Next Steps
Section titled “Next Steps”Now that Boilerplate is installed, create your first template.