diff --git a/skillhub-cli/src/commands/publish.ts b/skillhub-cli/src/commands/publish.ts index 47828795b..26e02aec9 100644 --- a/skillhub-cli/src/commands/publish.ts +++ b/skillhub-cli/src/commands/publish.ts @@ -16,7 +16,7 @@ export function registerPublish(program: Command) { .description("Publish a skill to SkillHub registry") .option("--namespace ", "Target namespace (default: global)") .option("--slug ", "Skill slug") - .option("--skill-version ", "Version (semver)") + .option("-v, --skill-version ", "Version (semver)") .option("--name ", "Display name") .option("--changelog ", "Changelog text") .option("--tag ", "Comma-separated tags (e.g. beta,stable)", "latest") @@ -29,7 +29,7 @@ export function registerPublish(program: Command) { } const slug = opts.slug || basename(folder); - let version = opts["skill-version"] || opts.v; + let version = opts["skill-version"] || opts.ver; if (!version) { const now = new Date(); const yyyymmdd = now.getFullYear() * 10000 + (now.getMonth() + 1) * 100 + now.getDate();