@govforge/cli
v0.1.1
Published
GovForge CLI — governance for AI coding agents. Wraps the gf binary so MCP-aware tooling can install it via npx.
Maintainers
Readme
@govforge/cli — npm wrapper
Thin Node wrapper around the gf CLI binary. Lets MCP-aware tooling
that prefers npx install GovForge without separately downloading the
Go binary.
# One-off:
npx @govforge/cli init
# Globally:
npm install -g @govforge/cli
gf initWhat this package does
- The
postinstallhook downloads the matchinggfbinary from GitHub Releases for your OS + arch. - It verifies the SHA-256 against the
checksums.txtshipped with the release before extracting. - Installs the binary into
node_modules/@govforge/cli/bin/. Thebin/gf.cjsshim execs it with the user's arguments.
What it doesn't do
- It doesn't ship a JavaScript reimplementation of
gf. The Go binary is the only thing that runs. - It doesn't auto-update. To upgrade, bump the package:
npm install -g @govforge/cli@latest. - It doesn't bundle the Python backend. For the backend, see
pip install govforgeor thegf api servecommand (which spawns the Python entry point).
Source of truth
The actual CLI code lives in
cli/.
This wrapper exists in
npm/ of
the same monorepo.
