← Back to issue list

snapcraft should have a 'version' command

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1590349
Type
issue
State
closed
Author
~sabdfl
Labels
bitesize ui
Created
Updated
Closed

Current evaluation

Added the version subcommand via snapcore/snapcraft PR #1746 (commit 0820103ae); the change was merged and released in Snapcraft 2.40.

Resolution: closed resolved

Reason: PR #1746 implemented snapcraft version and was merged as commit 0820103ae. A maintainer confirmed the command was included in version 2.40.

Evaluated by: mr-cal-bot

No scores available.

Issue body

'snapcraft version' should produce the same output as 'snapcraft --version'

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Added the version subcommand via snapcore/snapcraft PR #1746 (commit 0820103ae); the change was merged and released in Snapcraft 2.40.
stealth/space-bunny-alpha — closed resolved Added snapcraft version as an alias for snapcraft --version via merged PR snapcore/snapcraft#1746; shipped in Snapcraft 2.40.
stealth/space-bunny-alpha — closed stale Closed without a recorded fix. The requested command was later added in canonical/snapcraft#1746 (commit 0820103ae).
qwen/qwen3.6-35b-a3b — — Requesting a 'snapcraft version' command to match 'snapcraft --version' was closed without implementation. Zero comments and over a decade of inactivity indicate it was abandoned or superseded.
qwen/qwen3.6-35b-a3b — — Feature request for a snapcraft version command alias was closed without implementation. No comments or resolution details were provided, indicating the request was abandoned due to prolonged inactivity.
qwen/qwen3.6-35b-a3b — — Abandoned. The request to add a 'snapcraft version' command was closed without implementation or linked pull requests.
qwen3.6-35b-a3b-mtp-q6 — — Feature request to add a 'snapcraft version' command aliasing '--version' was closed without implementation. No pull requests were submitted, and the request was abandoned.

Update history

Date Change
created

Related work

  • Likely Fixed By: snapcore/snapcraft#1746 (confidence 99%)

    Adds the version command and was linked from this issue as its implementation.

Related issues

Issue Project State Summary Similarity
#1692752 snapcraft 2.30 has no version command snapcraft (launchpad) closed Resolved by merged PR canonical/snapcraft#1366 (commit be4a92ad7), adding global snapcraft --version; expected in Snapcraft 2.32.
82%
#1746 cli: add version command snapcraft merged Merged in snapcraft#1746 via commit 0820103ae, adding snapcraft version and snapcraft --version with matching output and tests.
80%
#1366 cli: Add --version command snapcraft merged Merged in snapcraft#1366 as commit be4a92ad7, adding a global --version flag; the fix was expected in Snapcraft 2.32.
80%
#1501222 Snapcraft should respond to "help", "version", "-v", "--version" snapcraft (launchpad) closed Snapcraft 0.4 shipped help, -h, --help and --version handling; the bare version subcommand and -v alias were not supported.
73%
#23 Snapcraft should respond to "help", "version", "-v", "--version" snapcraft closed Implemented help and --version handling; later PRs #1366 and #1746 expanded version support.
73%
#1549221 snapcraft.yaml should have a version field snapcraft (launchpad) closed Rejected as unnecessary: maintainers said Snapcraft 2.x rolled with Ubuntu releases 16.04, 17.04 and 18.04, so no format/version field was added to resolve the issue.
72%
#3626 cli: integrate craft-cli and add version command (CRAFT-730) snapcraft merged Merged into snapcraft 7.0 via commit 0457d6572: integrated craft-cli, added the version command, and retained the legacy CLI fallback for other commands.
70%