From f701ca0d301680d6a25c3587d97539378367d7b2 Mon Sep 17 00:00:00 2001 From: Alade YESSOUFOU Date: Fri, 2 Oct 2026 21:10:41 +0200 Subject: [PATCH] fix(cli): accept -v as well as --version --- CHANGELOG.md | 3 +++ src/cli/index.ts | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3679e69..177db4e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ All notable changes to `@devalade/shipnode` will be documented here. ## [Unreleased] +### Fixed +- **`shipnode -v` prints the version.** The CLI only accepted Commander's default `-V`; `-v` now works alongside `--version`. + ## [3.2.0-rc.0] - 2026-10-02 ### Added diff --git a/src/cli/index.ts b/src/cli/index.ts index a69c226..cb08fec 100644 --- a/src/cli/index.ts +++ b/src/cli/index.ts @@ -48,7 +48,7 @@ const program = new Command(); program .name('shipnode') .description('Deploy Node.js apps to a single VPS') - .version(version); + .version(version, '-v, --version', 'Output the version number'); // ── Core ──────────────────────────────────────────────────────────