Skip to content

Release and Upgrade

Arsfy edited this page May 24, 2026 · 2 revisions

Release And Upgrade

This page explains how GCORM CLI versions are built, checked, and upgraded.

Version Output

gco version

The command prints the local CLI version. It does not upgrade the binary.

Upgrade Command

gco upgrade

gco upgrade checks the latest available release and upgrades the CLI only when the current binary was installed with:

go install github.com/arsfy/gcorm/cmd/gco@version

The upgrade path uses the concrete latest GitHub release tag:

go install github.com/arsfy/gcorm/cmd/gco@va.b.c

Manual Binary Installs

If you installed gco from a release archive, update manually:

  1. Download the new archive from GitHub Releases.
  2. Replace the old gco binary.
  3. Run gco version.

Manual binaries are not replaced by gco upgrade.

Source Builds

For local development:

go build ./cmd/gco

Release builds can inject a version with linker flags:

go build -ldflags "-X main.Version=v0.1.0" ./cmd/gco

When installed through go install, Go build metadata can also provide module version information.

Update Checks

GCORM does not need to check for updates on every normal command. The intended update workflow is explicit:

gco upgrade

This keeps normal CLI commands predictable and avoids unexpected network checks during validation, generation, or database workflows.

Clone this wiki locally