Installation
Required Prerequisites
| Requirement | Version | Notes |
|---|---|---|
| Go | 1.25.0+ | Required by both goforge-cli and goforge-template. |
| Git | Any recent | Used by goforge new to clone the template and initialize your repository. |
C Compiler (gcc) | Any recent | Required for CGO_ENABLED=1 when using SQLite (mattn/go-sqlite3). Not needed if you prune SQLite and use pure-Go Postgres/MySQL drivers. |
Verify Go and Git:
bash
go version # go1.25.0 or higher
git --versionOptional Development Tools
Install these depending on which GoForge features you use:
| Tool | Purpose | Install |
|---|---|---|
| Atlas CLI | Schema-driven SQL migrations (DB_MIGRATOR=atlas, default) | curl -sSf https://atlasgo.sh | sh |
| sqlc | Type-safe Go code from .sql queries | go install github.com/sqlc-dev/sqlc/cmd/sqlc@latest |
| protoc | Protocol Buffer compiler for gen:proto | System package manager (apt, brew, pacman) |
| protoc-gen-go | Go protobuf codegen | go install google.golang.org/protobuf/cmd/protoc-gen-go@latest |
| protoc-gen-go-grpc | Go gRPC service codegen | go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest |
| Air | Hot-reload during local development (air.toml) | go install github.com/air-verse/air@latest |
| grpcurl | Testing gRPC endpoints from the terminal | go install github.com/fullstorydev/grpcurl/cmd/grpcurl@latest |
| Docker | Multi-stage -tags prod container builds | docs.docker.com |
Installing goforge CLI
Choose any of the three methods below.
Option 1: Pre-Built Binary (Recommended)
Download the archive for your OS/architecture (linux, darwin, windows × amd64, arm64) from GitHub Releases, extract the goforge binary, and place it on your PATH:
bash
# Example (Linux amd64)
tar -xzf goforge_*.tar.gz
sudo mv goforge /usr/local/bin/goforgeOption 2: go install
bash
go install github.com/mmycin/GoForge@latestEnsure $(go env GOPATH)/bin is in your PATH:
bash
export PATH="$PATH:$(go env GOPATH)/bin"Binary Name with go install
Because goforge-cli's go.mod module path is github.com/mmycin/GoForge (mixed case), go install writes the binary as GoForge instead of goforge. Create a lowercase symlink so all goforge ... commands work identically:
bash
ln -sf "$(go env GOPATH)/bin/GoForge" "$(go env GOPATH)/bin/goforge"Option 3: Build from Source
bash
git clone https://github.com/mmycin/GoForge.git
cd GoForge
go build -o goforge .
sudo mv goforge /usr/local/bin/goforgeVerify Installation
bash
goforge versionRunning goforge with no arguments opens the Interactive Command Center (Bubble Tea TUI) where you can browse and launch scaffolding commands:
bash
goforgeNext: 5-Minute Quick Start →
