GoForge — Build | Test | Ship | Collaborate GoForge — Build | Test | Ship | Collaborate

GoForge

Commands

Every GoForge subcommand and what it does.

GoForge is a single binary with poly-style arguments: key:value and :flag. Add color-mode:none to any command to disable ANSI color.

CommandPurpose
createScaffold a workspace, component, base, or project
infoBrick × project matrix, with changed bricks/projects marked (:loc for line counts)
checkValidate structure, the interface boundary, worker-type rules (declared and inferred), and project deps
classifyDeclared vs. inferred vs. effective worker type per brick (explain:<brick> for the why)
depsBrick dependencies, forward and reverse (brick: / project:)
diffFiles, bricks, and projects changed since the stable point (since:)
testRun tests for changed bricks/projects (:all, :dev, brick:, project:)
libsThird-party libraries and which bricks use them
wsWorkspace as YAML data (get:KEY.PATH, out:FILE)
migrateBootstrap goforge config for an existing Go module
shellInteractive command shell
version / helpTool version / usage

Examples

goforge create component name:user interface:api
goforge info :loc
goforge test :all
goforge deps brick:user
goforge diff since:main
goforge ws get:components.user.type

Migrating an existing module

Already have a Go module? Bootstrap GoForge config in place:

cd your-module
goforge migrate
goforge check