Skip to content

SDK Commands

Nine commands cover the developer day.

CommandDescription
glacier initScaffold a new Glacier project
glacier newAdd a package, command, or option to an existing project
glacier generateRun every Glacier code generator (cli, mock, httpmock)
glacier lintRun gofmt, go vet, staticcheck, and Glacier-specific lints
glacier testRun the Go test suite with a live status panel and summary
glacier versionPrint the Glacier SDK version; --check compares against latest
glacier explainPrint an explanation for a marker, exit code, or config key
glacier vibeRun the Glacier vibes animation
glacier completionsPrint a shell-completion script for the named shell

Global flags

Every command inherits these flags from the root command:

FlagShortDescription
--help-hPrint help text
--quiet-qSuppress non-error output and animations; keep final summary
--verbose-VRaise log level to Debug
--very-verboseRaise log level to Trace
--no-animateForce plain output even on a TTY
--no-bannerSuppress the banner on this invocation
--no-colorDisable all ANSI color output
--force-colorForce color output even when not a TTY
--profileWrite pprof CPU, heap, and goroutine profiles
--otel-endpointOverride OTEL_EXPORTER_OTLP_ENDPOINT for this invocation

--quiet and --verbose / --very-verbose are mutually exclusive (exit 2 if combined).

Exit codes

See Configuration for the full exit-code table. Use glacier explain <code> for details on any specific code.

Apache-2.0