feat: add package 2FA requirements CLI command

Rifa Achrinza committed Oct 24, 2021 at 04:49 UTC 05943592a57fe787258472b89fb953a0ac21227f
1 file changed +13 -13
content/getting-started/setting-up-your-npm-user-account/about-two-factor-authentication.mdx
+13 -13
@@ -35,20 +35,20 @@ If you enable 2FA for authorization only, we will request a one-time password fo
35
36 If you enable 2FA for authorization and writes, we will request a one-time password for certain authorized actions, as well as write actions.
37
38 -| Action | CLI command |
39 -| :------------------------------------------------ | :----------------------------------------------- |
40 -| Log in to npm | [`npm login`][login] |
41 -| Change profile settings (including your password) | [`npm profile set`][profile-set] |
38 +| Action | CLI command |
39 +| :------------------------------------------------ | :----------------------------------------------------- |
40 +| Log in to npm | [`npm login`][login] |
41 +| Change profile settings (including your password) | [`npm profile set`][profile-set] |
42 | Change 2FA modes for your user account | [`npm profile enable-2fa auth-and-writes`][2fa-enable] |
43 -| Disable 2FA for your user account | [`npm profile disable-2fa`][2fa-disable] |
44 -| Create tokens | [`npm token create`][token-create] |
45 -| Revoke tokens | [`npm token revoke`][token-revoke] |
46 -| Publish packages | [`npm publish`][publish] |
47 -| Unpublish packages | [`npm unpublish`][unpublish] |
48 -| Deprecate packages | [`npm deprecate`][deprecate] |
49 -| Change package visibility | [`npm access public/restricted`][access] |
50 -| Change user and team package access | [`npm access grant/revoke`][access] |
51 -| [Change package 2FA requirements][pkg-2fa] | N/A |
43 +| Disable 2FA for your user account | [`npm profile disable-2fa`][2fa-disable] |
44 +| Create tokens | [`npm token create`][token-create] |
45 +| Revoke tokens | [`npm token revoke`][token-revoke] |
46 +| Publish packages | [`npm publish`][publish] |
47 +| Unpublish packages | [`npm unpublish`][unpublish] |
48 +| Deprecate packages | [`npm deprecate`][deprecate] |
49 +| Change package visibility | [`npm access public/restricted`][access] |
50 +| Change user and team package access | [`npm access grant/revoke`][access] |
51 +| [Change package 2FA requirements][pkg-2fa] | [`npm access 2fa-required/2fa-not-required`][access] |
52
53
54 [login]: https://docs.npmjs.com/cli/adduser