.TH "NPM\-COMPLETION" "1" "November 2022" "9.1.1" .SH "NAME" \fBnpm-completion\fR .SH Synopsis .P Note: This command is unaware of workspaces\. .SH Description .P Enables tab\-completion in all npm commands\. .P The synopsis above .br loads the completions into your current shell\. Adding it to .br your ~/\.bashrc or ~/\.zshrc will make the completions available .br everywhere: .RS 2 .nf npm completion >> ~/\.bashrc npm completion >> ~/\.zshrc .fi .RE .P You may of course also pipe the output of \fBnpm completion\fP to a file .br such as \fB/usr/local/etc/bash_completion\.d/npm\fP or .br \fB/etc/bash_completion\.d/npm\fP if you have a system that will read .br that file for you\. .P When \fBCOMP_CWORD\fP, \fBCOMP_LINE\fP, and \fBCOMP_POINT\fP are defined in the .br environment, \fBnpm completion\fP acts in "plumbing mode", and outputs .br completions based on the arguments\. .SH See Also .RS 1 .IP \(bu 2 npm developers .IP \(bu 2 npm .RE