Skip to content

Commit 64a18f0

Browse files
author
Bernard Kitchens
committed
docs(teams): updated team docs to reflect new MFA workflow for npm team api
1 parent d9a7b30 commit 64a18f0

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Diff for: docs/content/cli-commands/npm-team.md

+2
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:

Diff for: lib/team.js

+4-4
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)