Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4ad2214

Browse files
Bernard Kitchensdarcyclarke
authored andcommitted
docs(teams): updated team docs to reflect new MFA workflow for npm team api
PR-URL: #1020 Credit: @ Close: #1020 Reviewed-by: @darcyclarke
1 parent 7d8e5b9 commit 4ad2214

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

docs/content/cli-commands/npm-team.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ handle permissions for packages.
3030
Teams must always be fully qualified with the organization/scope they belong to
3131
when operating on them, separated by a colon (`:`). That is, if you have a `wombats` team in a `wisdom` organization, you must always refer to that team as `wisdom:wombats` in these commands.
3232

33+
If you have two-factor authentication enabled in `auth-and-writes` mode, then you can provide a code from your authenticator with `[--otp <otpcode>]`. If you don't include this then you will be prompted.
34+
3335
* create / destroy:
3436
Create a new team, or destroy an existing one. Note: You cannot remove the `developers` team, <a href="https://docs.npmjs.com/about-developers-team" target="_blank">learn more.</a>
3537
* add / rm:

lib/team.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ team.subcommands = ['create', 'destroy', 'add', 'rm', 'ls', 'edit']
1414

1515
team.usage = usage(
1616
'team',
17-
'npm team create <scope:team>\n' +
18-
'npm team destroy <scope:team>\n' +
19-
'npm team add <scope:team> <user>\n' +
20-
'npm team rm <scope:team> <user>\n' +
17+
'npm team create <scope:team> [--otp <otpcode>]\n' +
18+
'npm team destroy <scope:team> [--otp <otpcode>]\n' +
19+
'npm team add <scope:team> <user> [--otp <otpcode>]\n' +
20+
'npm team rm <scope:team> <user> [--otp <otpcode>]\n' +
2121
'npm team ls <scope>|<scope:team>\n' +
2222
'npm team edit <scope:team>'
2323
)

0 commit comments

Comments
 (0)