1NPM-COMPLETION(1) NPM-COMPLETION(1)
2
3
4
6 npm-completion - Tab Completion for npm
7
8 Synopsis
9 npm completion
10
11 Note: This command is unaware of workspaces.
12
13 Description
14 Enables tab-completion in all npm commands.
15
16 The synopsis above loads the completions into your current shell.
17 Adding it to your ~/.bashrc or ~/.zshrc will make the completions
18 available everywhere:
19
20 npm completion >> ~/.bashrc
21 npm completion >> ~/.zshrc
22
23 You may of course also pipe the output of npm completion to a file such
24 as /usr/local/etc/bash_completion.d/npm or /etc/bash_completion.d/npm
25 if you have a system that will read that file for you.
26
27 When COMP_CWORD, COMP_LINE, and COMP_POINT are defined in the environ‐
28 ment, npm completion acts in "plumbing mode", and outputs completions
29 based on the arguments.
30
31 See Also
32 • npm help developers
33
34 • npm help npm
35
36
37
38 November 2023 NPM-COMPLETION(1)