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

95 lines
1.5 KiB
Groff
Raw Normal View History

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