Skip to main content

Examples

Examples

Stable

Learn how to synchronize project versions using common Version Update scenarios.

Commandcusty version

Category

Versioning

Quick Command

custy version update

examplesversion

Overview

The following examples demonstrate common ways to synchronize version information across supported project files.

Each example focuses on a single concept so that individual options can be combined as needed.


Basic Examples

Examples

Practical command examples.

Synchronize Project Version

Update project version files using the configured defaults.

CLI
custy version update


Selecting a Version Strategy

Examples

Practical command examples.

Use Semantic Versioning

Generate the next version using the SemVer strategy.

CLI
custy version update --strategy semver

Use PEP 440

Generate the next version using the Python PEP 440 strategy.

CLI
custy version update --strategy pep440


Version Generation

Examples

Practical command examples.

Minor Release

Generate the next minor version.

CLI
custy version update --bump minor

Explicit Version

Synchronize project files using a specific version.

CLI
custy version update --tag v2.5.0


Pre-release Examples

Examples

Practical command examples.

Beta Release

Generate a beta pre-release.

CLI
custy version update --pre-release beta

Development Release

Generate a development release.

CLI
custy version update --dev-release


Global Options

Examples

Practical command examples.

Preview Version Update

Review version synchronization without modifying project files.

CLI
custy --dry-run version update

Debug Version Update

Display additional diagnostic information.

CLI
custy --debug version update



What's Next?

Continue to the Output page to learn how Custy reports successful version synchronization.