Skip to main content
Version: Latest - 1.0.2

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
init—Scaffold config and CI workflow
changecngAdd a new changenote
commit—Commit a staged changenote using its title
prepareprepCalculate version and write prepare config
versionvrsnBump version, generate changelog, publish, and release
repreparereprepReattempt a failed release
preview—Generate 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