node/deps/npm/man/man1/npm-config.1

96 lines
1.5 KiB
Groff
Raw Normal View History

2014-09-17 06:38:50 +08:00
.TH "NPM\-CONFIG" "1" "September 2014" "" ""
2013-07-12 23:55:57 +08:00
.SH "NAME"
2014-09-25 05:41:07 +08:00
\fBnpm-config\fR \- Manage the npm configuration files
.SH SYNOPSIS
.P
.RS 2
.EX
2013-07-12 23:55:57 +08:00
npm config set <key> <value> [\-\-global]
npm config get <key>
npm config delete <key>
npm config list
npm config edit
2013-09-06 08:13:50 +08:00
npm c [set|get|delete|list]
2013-07-12 23:55:57 +08:00
npm get <key>
npm set <key> <value> [\-\-global]
2014-09-25 05:41:07 +08:00
.EE
.RE
.SH DESCRIPTION
.P
2013-07-12 23:55:57 +08:00
npm gets its config settings from the command line, environment
variables, \fBnpmrc\fR files, and in some cases, the \fBpackage\.json\fR file\.
.P
2014-09-17 06:38:50 +08:00
See npm help 5 npmrc for more information about the npmrc files\.
2013-07-12 23:55:57 +08:00
.P
2014-09-17 06:38:50 +08:00
See npm help 7 \fBnpm\-config\fR for a more thorough discussion of the mechanisms
2013-07-12 23:55:57 +08:00
involved\.
.P
The \fBnpm config\fR command can be used to update and edit the contents
of the user and global npmrc files\.
2014-09-25 05:41:07 +08:00
.SH Sub\-commands
.P
2013-07-12 23:55:57 +08:00
Config supports the following sub\-commands:
2014-09-25 05:41:07 +08:00
.SS set
.P
.RS 2
.EX
2013-07-12 23:55:57 +08:00
npm config set key value
2014-09-25 05:41:07 +08:00
.EE
.RE
2013-07-12 23:55:57 +08:00
.P
Sets the config key to the value\.
.P
If value is omitted, then it sets it to "true"\.
2014-09-25 05:41:07 +08:00
.SS get
.P
.RS 2
.EX
2013-07-12 23:55:57 +08:00
npm config get key
2014-09-25 05:41:07 +08:00
.EE
.RE
2013-07-12 23:55:57 +08:00
.P
Echo the config value to stdout\.
2014-09-25 05:41:07 +08:00
.SS list
.P
.RS 2
.EX
2013-07-12 23:55:57 +08:00
npm config list
2014-09-25 05:41:07 +08:00
.EE
.RE
2013-07-12 23:55:57 +08:00
.P
Show all the config settings\.
2014-09-25 05:41:07 +08:00
.SS delete
.P
.RS 2
.EX
2013-07-12 23:55:57 +08:00
npm config delete key
2014-09-25 05:41:07 +08:00
.EE
.RE
2013-07-12 23:55:57 +08:00
.P
Deletes the key from all configuration files\.
2014-09-25 05:41:07 +08:00
.SS edit
.P
.RS 2
.EX
2013-07-12 23:55:57 +08:00
npm config edit
2014-09-25 05:41:07 +08:00
.EE
.RE
2013-07-12 23:55:57 +08:00
.P
Opens the config file in an editor\. Use the \fB\-\-global\fR flag to edit the
global config\.
2014-09-25 05:41:07 +08:00
.SH SEE ALSO
.RS 0
.IP \(bu 2
2014-09-17 06:38:50 +08:00
npm help 5 folders
2014-09-25 05:41:07 +08:00
.IP \(bu 2
2014-09-17 06:38:50 +08:00
npm help 7 config
2014-09-25 05:41:07 +08:00
.IP \(bu 2
2014-09-17 06:38:50 +08:00
npm help 5 package\.json
2014-09-25 05:41:07 +08:00
.IP \(bu 2
2014-09-17 06:38:50 +08:00
npm help 5 npmrc
2014-09-25 05:41:07 +08:00
.IP \(bu 2
2013-07-12 23:55:57 +08:00
npm help npm
2014-09-25 05:41:07 +08:00
.RE
2013-07-12 23:55:57 +08:00