Skip to content

cli: add --version / -V / version - #25

Merged
adamsiwiec1 merged 1 commit into
mainfrom
feat/cli-version-flag
Oct 26, 2026
Merged

adamsiwiec1 merged 1 commit into
mainfrom
feat/cli-version-flag

Conversation

@adamsiwiec1

Copy link
Copy Markdown
Contributor

phishkit --version previously errored with unknown command: --version. Adds --version, -V, and a version subcommand to both phishkit and phishkit_ctl, printing a single line like phishkit 0.1.1-alpha.6.

Version resolves from build-time PHISHKIT_VERSION (baked by release.yml from the tag) with a CARGO_PKG_VERSION fallback, so cask/prebuilt users get the real release version. Tested locally: default prints phishkit 0.1.0, PHISHKIT_VERSION=0.1.1-alpha.6 prints phishkit 0.1.1-alpha.6; all of --version/-V/version work on both binaries.

Release note: brew/cask users only get --version after a new tagged release (the prebuilt CLI tarball must be rebuilt).

`phishkit --version` returned a JSON "unknown command" error. Add a
`--version`, `-V`, and `version` subcommand to both the `phishkit` and
`phishkit_ctl` binaries that print a single line, e.g. `phishkit 0.1.1-alpha.6`.

The version prefers the build-time `PHISHKIT_VERSION` env (baked by the
release workflow from the tag) and falls back to `CARGO_PKG_VERSION`, so
brew/cask builds report the shipped release version. release.yml now exports
PHISHKIT_VERSION during the CLI build.
@adamsiwiec1
adamsiwiec1 merged commit 2a6899e into main Oct 26, 2026
5 checks passed
@adamsiwiec1
adamsiwiec1 deleted the feat/cli-version-flag branch October 26, 2026 11:25
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.

1 participant