CLI Commands¶
releasio provides a powerful command-line interface for managing releases.
Command Overview¶
| Command | Description | Modifies Files |
|---|---|---|
check |
Preview what would happen | No |
update |
Update version and changelog | Yes |
release-pr |
Create/update release PR | Yes |
release |
Tag and publish release | Yes |
do-release |
Complete release workflow | Yes |
check-pr |
Validate PR title | No |
init |
Initialize configuration | Yes |
Global Options¶
All commands support these options:
| Option | Short | Description |
|---|---|---|
--help |
-h |
Show help message |
--version |
Show releasio version | |
--verbose |
-v |
Enable verbose output |
Typical Workflows¶
Preview → Release PR → Merge → Publish¶
%%{init: {'theme': 'neutral'}}%%
graph LR
A[releasio check] --> B[releasio release-pr]
B --> C[Review & Merge PR]
C --> D[releasio release]
This is the recommended workflow for most projects:
- Preview with
checkto see upcoming changes - Create PR with
release-prfor review - Merge the PR after approval
- Publish with
releaseafter merge
One-Command Release¶
For simpler workflows, do-release combines everything:
- Update version and changelog
- Commit changes
- Create and push tag
- Publish to PyPI
Dry-Run Mode¶
By default, commands that modify files run in dry-run mode:
# Shows what would happen (dry-run)
releasio release-pr
# Actually executes
releasio release-pr --execute
Safe by Default
Commands never make changes unless you explicitly pass --execute.
Always preview first!
Exit Codes¶
| Code | Meaning |
|---|---|
0 |
Success |
1 |
Error occurred |
2 |
Invalid arguments |
Command Details¶
-
check
Preview release without changes
-
update
Update version and changelog locally
-
:material-pull-request:{ .lg .middle } release-pr
Create or update release PR
-
release
Tag and publish release
-
do-release
Complete release workflow
-
check-pr
Validate PR title format