CLI Release Workflow
Complete release workflow for the CLI package.
Usage
/cli-release bump [patch|minor|major]
Bump version, run full checks, commit.
/cli-release publish
Full release: bump patch → checks → commit → tag → push.
Workflow: bump
- •
Read current version
- •Parse version from
cli/pyproject.tomlorcli/umans_cli/__init__.py
- •Parse version from
- •
Calculate new version
- •patch: 0.1.2 → 0.1.3
- •minor: 0.1.2 → 0.2.0
- •major: 0.1.2 → 1.0.0
- •
Update version files
- •
cli/pyproject.toml - •
cli/umans_cli/__init__.py(if version defined)
- •
- •
Run just cli-checks
- •Must pass before commit
- •
Commit
codechore: bump CLI version to X.Y.Z 📦
- •
Push
codegit push origin main
Workflow: publish
- •Run
bump patchworkflow above - •Create tag
code
git tag cli-vX.Y.Z
- •Push tag
code
git push origin cli-vX.Y.Z
Safety Checks
- •Must be on main branch
- •Working directory clean
- •All cli-checks must pass
- •Version must be newer than current
Examples
code
/cli-release bump patch → Bump 0.1.2 → 0.1.3 → Run just cli-checks... → Commit: chore: bump CLI version to 0.1.3 📦 → Push to origin/main /cli-release publish → Full workflow: bump → checks → commit → tag → push → Created tag cli-v0.1.3
Errors
- •Not on main → "Error: Must be on main branch"
- •Uncommitted changes → "Error: Working directory not clean"
- •Checks fail → "Error: cli-checks failed. Fix before release."
- •Version already exists → "Error: Version X.Y.Z already tagged"