Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
npm-completion.md37 linesDownload Raw Back to commands
1---
2title: npm-completion
3section: 1
4description: Tab Completion for npm
5---
6
7### Synopsis
8
9```bash
10npm completion
11```
12
13Note: This command is unaware of workspaces.
14
15### Description
16
17Enables tab-completion in all npm commands.
18
19The synopsis above loads the completions into your current shell.
20Adding it to your ~/.bashrc or ~/.zshrc will make the completions available everywhere:
21
22```bash
23npm completion >> ~/.bashrc
24npm completion >> ~/.zshrc
25```
26
27You may of course also pipe the output of `npm completion` to a file such as `/usr/local/etc/bash_completion.d/npm` or
28`/etc/bash_completion.d/npm` if you have a system that will read 
29that file for you.
30
31When `COMP_CWORD`, `COMP_LINE`, and `COMP_POINT` are defined in the environment, `npm completion` acts in "plumbing mode", and outputs completions based on the arguments.
32
33### See Also
34
35* [npm developers](/using-npm/developers)
36* [npm](/commands/npm)
37 
codekingpro/portable-devtools · Team Ai