Skip to content

Add version and update CLI commands - #35

Open
richardbenson wants to merge 1 commit into
mainfrom
feat/version-and-update-commands
Open

richardbenson wants to merge 1 commit into
mainfrom
feat/version-and-update-commands

Conversation

@richardbenson

@richardbenson richardbenson commented May 27, 2026

Copy link
Copy Markdown
Owner

Summary

Adds two new CLI commands:

  • cpe version — displays the current cpe version string
  • cpe update — checks for and optionally installs the latest release

cpe update behavior

  • Fetches the latest release tag via gh api
  • Compares semver against the current version
  • Displays a prompt in interactive mode to install the latest release
  • Skips gracefully in dev mode (CPE_VERSION === 'dev')
  • In non-interactive mode, prints a hint to run interactively

Closes #34

Add  to display the current cpe version.
Add  to check for and install the latest release.
- fetches latest release tag via
- compares semver against current version
- installs via the repo's install.sh when user confirms
- handles dev/non-interactive modes gracefully

Refs #34
Refs #36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add an update command to the cli

1 participant