-
Notifications
You must be signed in to change notification settings - Fork 30.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes: #16280 PR-URL: #16509 Fixes: #14161 Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michaël Zasso <targos@protonmail.com>
- Loading branch information
1 parent
4359a93
commit 0d7e4d2
Showing
1,388 changed files
with
92,493 additions
and
19,935 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
npm-profile(1) -- Change settings on your registry profile | ||
========================================================== | ||
|
||
## SYNOPSIS | ||
|
||
npm profile get [--json|--parseable] [<property>] | ||
npm profile set [--json|--parseable] <property> <value> | ||
npm profile set password | ||
npm profile enable-2fa [auth-and-writes|auth-only] | ||
npm profile disable-2fa | ||
|
||
## DESCRIPTION | ||
|
||
Change your profile information on the registry. This not be available if | ||
you're using a non-npmjs registry. | ||
|
||
* `npm profile get [<property>]`: | ||
Display all of the properties of your profile, or one or more specific | ||
properties. It looks like: | ||
|
||
``` | ||
+-----------------+---------------------------+ | ||
| name | example | | ||
+-----------------+---------------------------+ | ||
| email | me@example.com (verified) | | ||
+-----------------+---------------------------+ | ||
| two factor auth | auth-and-writes | | ||
+-----------------+---------------------------+ | ||
| fullname | Example User | | ||
+-----------------+---------------------------+ | ||
| homepage | | | ||
+-----------------+---------------------------+ | ||
| freenode | | | ||
+-----------------+---------------------------+ | ||
| twitter | | | ||
+-----------------+---------------------------+ | ||
| github | | | ||
+-----------------+---------------------------+ | ||
| created | 2015-02-26T01:38:35.892Z | | ||
+-----------------+---------------------------+ | ||
| updated | 2017-10-02T21:29:45.922Z | | ||
+-----------------+---------------------------+ | ||
``` | ||
|
||
* `npm profile set <property> <value>`: | ||
Set the value of a profile property. You can set the following properties this way: | ||
email, fullname, homepage, freenode, twitter, github | ||
|
||
* `npm profile set password`: | ||
Change your password. This is interactive, you'll be prompted for your | ||
current password and a new password. You'll also be prompted for an OTP | ||
if you have two-factor authentication enabled. | ||
|
||
* `npm profile enable-2fa [auth-and-writes|auth-only]`: | ||
Enables two-factor authentication. Defaults to `auth-and-writes` mode. Modes are: | ||
* `auth-only`: Require an OTP when logging in or making changes to your | ||
account's authentication. The OTP will be required on both the website | ||
and the command line. | ||
* `auth-and-writes`: Requires an OTP at all the times `auth-only` does, and also requires one when | ||
publishing a module, setting the `latest` dist-tag, or changing access | ||
via `npm access` and `npm owner`. | ||
|
||
* `npm profile disable-2fa`: | ||
Disables two-factor authentication. | ||
|
||
## DETAILS | ||
|
||
All of the `npm profile` subcommands accept `--json` and `--parseable` and | ||
will tailor their output based on those. Some of these commands may not be | ||
available on non npmjs.com registries. | ||
|
||
## SEE ALSO | ||
|
||
* npm-config(7) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
npm-token(1) -- Manage your authentication tokens | ||
================================================= | ||
|
||
## SYNOPSIS | ||
|
||
npm token list [--json|--parseable] | ||
npm token create [--read-only] [--cidr=1.1.1.1/24,2.2.2.2/16] | ||
npm token delete <id|token> | ||
|
||
## DESCRIPTION | ||
|
||
This list you list, create and delete authentication tokens. | ||
|
||
* `npm token list`: | ||
Shows a table of all active authentication tokens. You can request this as | ||
JSON with `--json` or tab-separated values with `--parseable`. | ||
``` | ||
+--------+---------+------------+----------+----------------+ | ||
| id | token | created | read-only | CIDR whitelist | | ||
+--------+---------+------------+----------+----------------+ | ||
| 7f3134 | 1fa9ba… | 2017-10-02 | yes | | | ||
+--------+---------+------------+----------+----------------+ | ||
| c03241 | af7aef… | 2017-10-02 | no | 192.168.0.1/24 | | ||
+--------+---------+------------+----------+----------------+ | ||
| e0cf92 | 3a436a… | 2017-10-02 | no | | | ||
+--------+---------+------------+----------+----------------+ | ||
| 63eb9d | 74ef35… | 2017-09-28 | no | | | ||
+--------+---------+------------+----------+----------------+ | ||
| 2daaa8 | cbad5f… | 2017-09-26 | no | | | ||
+--------+---------+------------+----------+----------------+ | ||
| 68c2fe | 127e51… | 2017-09-23 | no | | | ||
+--------+---------+------------+----------+----------------+ | ||
| 6334e1 | 1dadd1… | 2017-09-23 | no | | | ||
+--------+---------+------------+----------+----------------+ | ||
``` | ||
|
||
* `npm token create [--read-only] [--cidr=<cidr-ranges>]`: | ||
Create a new authentication token. It can be `--read-only` or accept a list of | ||
[CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) ranges to | ||
limit use of this token to. This will prompt you for your password, and, if you have | ||
two-factor authentication enabled, an otp. | ||
|
||
``` | ||
+----------------+--------------------------------------+ | ||
| token | a73c9572-f1b9-8983-983d-ba3ac3cc913d | | ||
+----------------+--------------------------------------+ | ||
| cidr_whitelist | | | ||
+----------------+--------------------------------------+ | ||
| readonly | false | | ||
+----------------+--------------------------------------+ | ||
| created | 2017-10-02T07:52:24.838Z | | ||
+----------------+--------------------------------------+ | ||
``` | ||
|
||
* `npm token delete <token|id>`: | ||
This removes an authentication token, making it immediately unusable. This can accept | ||
both complete tokens (as you get back from `npm token create` and will | ||
find in your `.npmrc`) and ids as seen in the `npm token list` output. | ||
This will NOT accept the truncated token found in `npm token list` output. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.