Skip to content

feat: add u as alias for update command#9246

Merged
owlstronaut merged 1 commit intorelease/v11from
backport/v11/9163
Apr 16, 2026
Merged

feat: add u as alias for update command#9246
owlstronaut merged 1 commit intorelease/v11from
backport/v11/9163

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

Backport of #9163 to release/v11.

## Summary

Adds `u` as a short alias for the `update` command, making it consistent
with `i` for `install`.

## Motivation

`npm i` is the canonical short form for `npm install` — the most
commonly used npm command. However, `npm update` lacks an equivalent
single-character alias. The existing `npm up` alias works, but feels
inconsistent compared to `i`.

Adding `u` makes the CLI more ergonomic and intuitive:

```sh
npm i    # install   ✅ already exists
npm u    # update    ✅ this PR
```

## Changes

- Added `u: 'update'` alias in `lib/utils/cmd-list.js`, grouped
alongside the existing `up: 'update'` alias

## Notes

- `u` is not currently used by any other alias or command, so there is
no conflict
- Follows the same pattern as other single-character aliases (`i`, `r`,
`t`, `c`, `s`, `v`, `x`)

(cherry picked from commit db7c1f8)
@github-actions github-actions Bot requested a review from a team as a code owner April 16, 2026 16:12
@owlstronaut owlstronaut reopened this Apr 16, 2026
@owlstronaut owlstronaut merged commit 8e8dadb into release/v11 Apr 16, 2026
39 checks passed
@owlstronaut owlstronaut deleted the backport/v11/9163 branch April 16, 2026 16:20
@github-actions github-actions Bot mentioned this pull request Apr 15, 2026
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.

2 participants