Skip to content

Installation

Prerequisites

Before you begin, ensure you have the following installed:

Installation Methods

1
go install github.com/mavogel/cli-template@latest

Option 2: Download Binary

  1. Visit the Releases page
  2. Download the appropriate binary for your OS
  3. Extract and place in your PATH

Option 3: Homebrew (macOS/Linux)

1
2
brew tap mavogel/homebrew-tap
brew install cli-template

Option 4: Build from Source

1
2
3
4
5
6
7
8
9
# Clone the repository
git clone https://github.com/mavogel/cli-template.git
cd cli-template

# Build the binary
make build

# Install to your PATH
make install

Verify Installation

1
2
cli-template --version
cli-template --help

Development Setup

If you plan to contribute or modify the code:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
# Clone the repository
git clone https://github.com/mavogel/cli-template.git
cd cli-template

# Install dependencies
go mod download

# Install development tools
make dev-tools

# Run tests
make test

# Run linting
make lint

Development Dependencies

The following tools are recommended for development:

  • golangci-lint: Code linting
  • GoReleaser: Release automation
  • MkDocs: Documentation generation

Install them with:

1
2
3
4
5
6
7
8
# golangci-lint
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest

# GoReleaser
go install github.com/goreleaser/goreleaser@latest

# Docker (for MkDocs documentation)
brew install --cask docker