Skip to main content
Version: Latest - 0.0.1

CLI Reference

Cngpac provides seven commands that cover the full release lifecycle. This page gives an overview — see the individual command pages for full details.

Commands at a Glance

CommandAliasDescription
initScaffold config and CI workflow
changecngAdd a new changenote
commitCommit a staged changenote using its title
prepareprepCalculate version and write prepare config
versionvrsnBump version, generate changelog, publish, and release
repreparereprepReattempt a failed release
previewGenerate changelog preview and open in browser

Typical Workflow

# One-time setup
npx cngpac init

# During development (per change)
cngpac change
cngpac commit --push

# When ready to release
cngpac prepare release --push

# CI runs automatically:
# cngpac version --commit --tag --push --publish --release

Global Options

--version Show the CLI version
--help Show help for any command