Commit db7c1f8
authored
## 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`)
1 parent 9669d31 commit db7c1f8
2 files changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
| |||
6033 | 6034 | | |
6034 | 6035 | | |
6035 | 6036 | | |
6036 | | - | |
| 6037 | + | |
6037 | 6038 | | |
6038 | 6039 | | |
6039 | 6040 | | |
6040 | 6041 | | |
6041 | 6042 | | |
6042 | 6043 | | |
6043 | | - | |
| 6044 | + | |
6044 | 6045 | | |
6045 | 6046 | | |
6046 | 6047 | | |
| |||
0 commit comments