From 87680dad5670d074251ad75f45526eba35a0e4ff Mon Sep 17 00:00:00 2001 From: bharateshwq Date: Sat, 26 Oct 2024 23:38:41 +0530 Subject: [PATCH 1/6] added npm access page --- pages/common/npm-access.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 pages/common/npm-access.md diff --git a/pages/common/npm-access.md b/pages/common/npm-access.md new file mode 100644 index 00000000000000..83d9958a790e05 --- /dev/null +++ b/pages/common/npm-access.md @@ -0,0 +1,34 @@ +# npm access + +> Set access level on published packages. +> More information: . + +- List packages for a user or scope: + +`npm access list packages [||] []` + +- List collaborators on a package: + +`npm access list collaborators [ []]` + +- Get status of a package: + +`npm access get status []` + +- Set package status (public or private): + +`npm access set status=public|private []` + +- Grant access to a package: + +`npm access grant []` + +- Revoke access to a package: + +`npm access revoke []` + +- Configure two-factor authentication requirement: + +`npm access set mfa=none|publish|automation []` + +If you need any additional details or changes, feel free to ask! From a09673b91846eca328d59e21ce055e9602cfd81c Mon Sep 17 00:00:00 2001 From: bharateshwq Date: Sat, 26 Oct 2024 23:48:10 +0530 Subject: [PATCH 2/6] fixed linting issues --- pages/common/npm-access.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/pages/common/npm-access.md b/pages/common/npm-access.md index 83d9958a790e05..cb1041ef9e48f9 100644 --- a/pages/common/npm-access.md +++ b/pages/common/npm-access.md @@ -30,5 +30,3 @@ - Configure two-factor authentication requirement: `npm access set mfa=none|publish|automation []` - -If you need any additional details or changes, feel free to ask! From 8856e588e8de03a481d5893294cc845cb11aa512 Mon Sep 17 00:00:00 2001 From: Bharatesh <64769271+bharateshwq@users.noreply.github.com> Date: Sun, 27 Oct 2024 17:19:10 +0530 Subject: [PATCH 3/6] Update pages/common/npm-access.md Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> --- pages/common/npm-access.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/npm-access.md b/pages/common/npm-access.md index cb1041ef9e48f9..6fc6e28a494725 100644 --- a/pages/common/npm-access.md +++ b/pages/common/npm-access.md @@ -5,7 +5,7 @@ - List packages for a user or scope: -`npm access list packages [||] []` +`npm access list packages {{user|scope|scope:team}} {{package_name}}` - List collaborators on a package: From f9acd3500e9ad39d8e7f2d3af994abedb2d83014 Mon Sep 17 00:00:00 2001 From: bharateshwq Date: Sun, 27 Oct 2024 17:45:20 +0530 Subject: [PATCH 4/6] fixed placeholders --- pages/common/npm-access.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pages/common/npm-access.md b/pages/common/npm-access.md index 6fc6e28a494725..07baa446c4aa15 100644 --- a/pages/common/npm-access.md +++ b/pages/common/npm-access.md @@ -9,24 +9,24 @@ - List collaborators on a package: -`npm access list collaborators [ []]` +`npm access list collaborators {{package}} {{user}}` - Get status of a package: -`npm access get status []` +`npm access get status {{package}}` - Set package status (public or private): -`npm access set status=public|private []` +`npm access set status=public|private {{package}}` - Grant access to a package: -`npm access grant []` +`npm access grant {{read-only|read-write}} {{scope:team}} {{package}}` - Revoke access to a package: -`npm access revoke []` +`npm access revoke {{scope:team}} {{package}}` - Configure two-factor authentication requirement: -`npm access set mfa=none|publish|automation []` +`npm access set mfa=none|publish|automation {{package}}` From 0d8092e4ff090e71b09b44f5ad9426cbfe1adc42 Mon Sep 17 00:00:00 2001 From: Bharatesh <64769271+bharateshwq@users.noreply.github.com> Date: Sun, 27 Oct 2024 17:57:29 +0530 Subject: [PATCH 5/6] Update pages/common/npm-access.md Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> --- pages/common/npm-access.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pages/common/npm-access.md b/pages/common/npm-access.md index 07baa446c4aa15..f8451221ad9b78 100644 --- a/pages/common/npm-access.md +++ b/pages/common/npm-access.md @@ -9,23 +9,23 @@ - List collaborators on a package: -`npm access list collaborators {{package}} {{user}}` +`npm access list collaborators {{package_name}} {{username}}` - Get status of a package: -`npm access get status {{package}}` +`npm access get status {{package_name}}` - Set package status (public or private): -`npm access set status=public|private {{package}}` +`npm access set status={{public|private}} {{package_name}}` - Grant access to a package: -`npm access grant {{read-only|read-write}} {{scope:team}} {{package}}` +`npm access grant {{read-only|read-write}} {{scope:team}} {{package_name}}` - Revoke access to a package: -`npm access revoke {{scope:team}} {{package}}` +`npm access revoke {{scope:team}} {{package_name}}` - Configure two-factor authentication requirement: From e8f2221725aded70ec837d5e6ca53d28e6245b9d Mon Sep 17 00:00:00 2001 From: Bharatesh <64769271+bharateshwq@users.noreply.github.com> Date: Sun, 27 Oct 2024 17:57:43 +0530 Subject: [PATCH 6/6] Update pages/common/npm-access.md Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> --- pages/common/npm-access.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/npm-access.md b/pages/common/npm-access.md index f8451221ad9b78..9b5ffbaad27776 100644 --- a/pages/common/npm-access.md +++ b/pages/common/npm-access.md @@ -29,4 +29,4 @@ - Configure two-factor authentication requirement: -`npm access set mfa=none|publish|automation {{package}}` +`npm access set mfa={{none|publish|automation}} {{package_name}}`