@shipdit/cli
v0.6.0
Published
shipd's command-line interface
Readme
@shipdit/cli
Command-line interface for shipd config-as-code workflows.
pnpm --filter @shipdit/cli build
shipd login # approve org → project → environment in the browser
shipd pull
shipd diff
shipd push --yes
shipd types genshipd login stores a scoped management API key. Use SHIPD_API_KEY for CI — keys carry org/project/environment metadata.
Go projects
The CLI reads shipd.config.go directly. Declare an exported
var Config = config.ShipdConfig{...} using
github.com/alasti-company/useshipd.com/sdks/go/config. Go 1.23+ and Node.js 22.12+
are needed for CLI commands; the application runtime only needs Go.
shipd diff
shipd push
shipd types gen
shipd pullGo input automatically selects Go output in internal/flags/flags_gen.go.
Generation emits per-flag accessors, key and variant constants, and Defaults().
Pull writes Go definitions back to shipd.config.go. No JSON flag file is needed.
The definition file is evaluated on its own inside the Go module: imports and
helpers declared in that file work; sibling files are not loaded. Do not define
main in it. See examples/go-examples for a complete example.
