Skip to content

feat(cli): add update alias for upgrade command - #1125

Merged
RealKai42 merged 1 commit into
mainfrom
kaiyi/dubai
Jun 26, 2026
Merged

feat(cli): add update alias for upgrade command#1125
RealKai42 merged 1 commit into
mainfrom
kaiyi/dubai

Conversation

@RealKai42

Copy link
Copy Markdown
Collaborator

Related Issue

No related issue.

Problem

Users often reach for kimi update as a natural synonym for upgrading the CLI, but only kimi upgrade was accepted, so kimi update fell through to the unknown-command error.

What changed

  • Registered update as a commander alias of the existing upgrade subcommand, so kimi update runs the exact same upgrade flow (telemetry, prompts, and install behavior are unchanged).
  • Added a routing test confirming kimi update dispatches to the upgrade handler without invoking the main action.
  • Documented the alias in the kimi upgrade section of the command reference (English and Chinese).
  • Added a patch changeset for @moonshot-ai/kimi-code.

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue, or explained the problem above.
  • I have added tests that prove my feature works.
  • Ran `gen-changesets` skill, or this PR needs no changeset.
  • Ran `gen-docs` skill, or this PR needs no doc update.

Register a `kimi update` alias for the existing `kimi upgrade` command via commander's .alias(), so both forms run the same upgrade flow. Document the alias in the command reference and add a routing test.
@changeset-bot

changeset-bot Bot commented Jun 26, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 7483dc2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@moonshot-ai/kimi-code Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Jun 26, 2026

Copy link
Copy Markdown
pnpm dlx https://pkg.pr.new/@moonshot-ai/kimi-code@7483dc2
npx https://pkg.pr.new/@moonshot-ai/kimi-code@7483dc2

commit: 7483dc2

@RealKai42
RealKai42 merged commit e9a3b7c into main Jun 26, 2026
10 checks passed
@RealKai42
RealKai42 deleted the kaiyi/dubai branch June 26, 2026 08:48
@github-actions github-actions Bot mentioned this pull request Jun 26, 2026
7723qqq pushed a commit to 7723qqq/kimi-code that referenced this pull request Jul 11, 2026
Register a `kimi update` alias for the existing `kimi upgrade` command via commander's .alias(), so both forms run the same upgrade flow. Document the alias in the command reference and add a routing test.

(cherry picked from commit e9a3b7c)
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