Skip to content

Installation ​

Required Prerequisites ​

RequirementVersionNotes
Go1.25.0+Required by both goforge-cli and goforge-template.
GitAny recentUsed by goforge new to clone the template and initialize your repository.
C Compiler (gcc)Any recentRequired 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 --version

Optional Development Tools ​

Install these depending on which GoForge features you use:

ToolPurposeInstall
Atlas CLISchema-driven SQL migrations (DB_MIGRATOR=atlas, default)curl -sSf https://atlasgo.sh | sh
sqlcType-safe Go code from .sql queriesgo install github.com/sqlc-dev/sqlc/cmd/sqlc@latest
protocProtocol Buffer compiler for gen:protoSystem package manager (apt, brew, pacman)
protoc-gen-goGo protobuf codegengo install google.golang.org/protobuf/cmd/protoc-gen-go@latest
protoc-gen-go-grpcGo gRPC service codegengo install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
AirHot-reload during local development (air.toml)go install github.com/air-verse/air@latest
grpcurlTesting gRPC endpoints from the terminalgo install github.com/fullstorydev/grpcurl/cmd/grpcurl@latest
DockerMulti-stage -tags prod container buildsdocs.docker.com

Installing goforge CLI ​

Choose any of the three methods below.

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/goforge

Option 2: go install ​

bash
go install github.com/mmycin/GoForge@latest

Ensure $(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/goforge

Verify Installation ​

bash
goforge version

Running goforge with no arguments opens the Interactive Command Center (Bubble Tea TUI) where you can browse and launch scaffolding commands:

bash
goforge

Next: 5-Minute Quick Start →

Released under the Apache-2.0 License.