The CLI golang-cli-boilerplate provides binary distributions for every release which are generated using GoReleaser. To install it, you can use the pre-built binaries which are available for Linux, Windows, and macOS:
- Navigate to the Releases page.
- Download the archive for your respective OS and architecture.
- Extract the archive.
- Move the
golang-cli-boilerplatebinary into your$PATH.
Or, based on your OS. For Mac, you can use Homebrew:
brew tap Excoriate/homebrew-tap https://github.com/Excoriate/homebrew-tap.git
brew install golang-cli-boilerplateNOTE: There are compiled binaries available for most of the common platforms, including Windows. Check the Releases page.
brew tap Excoriate/homebrew-tap
brew install golang-cli-boilerplate
RPM-based installation (RedHat/CentOS/Fedora)
32 bit:
curl -LO https://github.com/Excoriate/golang-cli-boilerplate/releases/download/v0.3.14/golang-cli-boilerplate_386.rpm
sudo rpm -ivh golang-cli-boilerplate_386.rpm
64 bit:
curl -LO https://github.com/Excoriate/golang-cli-boilerplate/releases/download/v0.3.14/golang-cli-boilerplate_amd64.rpm
sudo rpm -ivh -i golang-cli-boilerplate_amd64.rpm
DEB-based installation (Ubuntu/Debian)
32 bit:
curl -LO https://github.com/Excoriate/golang-cli-boilerplate/releases/download/v0.3.14/golang-cli-boilerplate_386.deb
sudo dpkg -i golang-cli-boilerplate_386.deb
64 bit:
curl -LO https://github.com/Excoriate/golang-cli-boilerplate/releases/download/v0.3.14/golang-cli-boilerplate_amd64.deb
sudo dpkg -i golang-cli-boilerplate_amd64.deb
APK-based installation (Alpine)
32 bit:
curl -LO https://github.com/Excoriate/golang-cli-boilerplate/releases/download/v0.3.14/golang-cli-boilerplate_386.apk
apk add golang-cli-boilerplate_386.apk
64 bit:
curl -LO https://github.com/Excoriate/golang-cli-boilerplate/releases/download/v0.3.14/golang-cli-boilerplate_amd64.apk
apk add golang-cli-boilerplate_amd64.apk
Failing Installation on WSL or Linux (missing gcc)
When installing Homebrew on WSL or Linux, you may encounter the following error:==> Installing golang-cli-boilerplate from golang-cli-boilerplate-ai/golang-cli-boilerplate Error: The following formula cannot be installed from a bottle and must be
built from the source. golang-cli-boilerplate Install Clang or run brew install gcc.
If you install gcc as suggested, the problem will persist. Therefore, you need to install the build-essential package.
sudo apt-get update
sudo apt-get install build-essential
- Download the latest Windows binaries of golang-cli-boilerplate from the Release tab based on your system architecture.
- Extract the downloaded package to your desired location. Configure the system path variable with the binary location