cms

command
v1.1.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2026 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Command cms generates a new website built on the cms module.

From an empty directory:

go run github.com/tsawler/cms/cmd/cms@latest init mysite
cd mysite
docker compose up -d
go mod tidy
go generate .
go run .

Or install it once and use it anywhere:

go install github.com/tsawler/cms/cmd/cms@latest
cms init mysite

init never overwrites a file that already exists unless -force is given, so it is safe to re-run inside a project that has moved on — a second run picks up starter files the first one did not write.

This command deliberately depends on nothing but the standard library and the scaffold package, so that fetching it with @latest does not pull down the database drivers, the AWS SDK, and testcontainers along the way.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL