1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 15:22:08 +02:00
tldr/pages/common/ncu.md
Valentin Vetter ef5c47d934
ncu: add use cases, use long options (#11555)
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: Juri Dispan <juri.dispan@posteo.net>
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
2023-11-23 16:19:41 +01:00

37 lines
914 B
Markdown

# ncu
> Find newer versions of package dependencies and check outdated npm packages locally or globally.
> `ncu` only updates dependency versions in `package.json`. To install the new versions, run `npm install` afterwards.
> More information: <https://github.com/raineorshine/npm-check-updates>.
- List outdated dependencies in the current directory:
`ncu`
- List outdated global npm packages:
`ncu --global`
- Upgrade all dependencies in the current directory:
`ncu --upgrade`
- Interactively upgrade dependencies in the current directory:
`ncu --interactive`
- List outdated dependencies up to the highest minor version:
`ncu --target {{minor}}`
- List outdated dependencies that match a keyword or regular expression:
`ncu --filter {{keyword|/regex/}}`
- List only a specific section of outdated dependencies:
`ncu --dep {{dev|optional|peer|prod|packageManager}}`
- Display help:
`ncu --help`