/
home
/
techb158
/
.nvm
/
versions
/
node
/
v16.20.2
/
lib
/
node_modules
/
npm
/
docs
/
content
/
commands
/
/home/techb158/.nvm/versions/node/v16.20.2/lib/node_modules/npm/docs/content/commands
mkdir
upload
Name
Size
Mode
Actions
npm-access.md
3359
0644
edit
dl
rm
npm-adduser.md
2315
0644
edit
dl
rm
npm-audit.md
14321
0644
edit
dl
rm
npm-bin.md
898
0644
edit
dl
rm
npm-bugs.md
2963
0644
edit
dl
rm
npm-cache.md
2999
0644
edit
dl
rm
npm-ci.md
9481
0644
edit
dl
rm
npm-completion.md
909
0644
edit
dl
rm
npm-config.md
3705
0644
edit
dl
rm
npm-dedupe.md
8160
0644
edit
dl
rm
npm-deprecate.md
1737
0644
edit
dl
rm
npm-diff.md
8971
0644
edit
dl
rm
npm-dist-tag.md
5079
0644
edit
dl
rm
npm-docs.md
2941
0644
edit
dl
rm
npm-doctor.md
4760
0644
edit
dl
rm
npm-edit.md
1077
0644
edit
dl
rm
npm-exec.md
11209
0644
edit
dl
rm
npm-explain.md
2793
0644
edit
dl
rm
npm-explore.md
1004
0644
edit
dl
rm
npm-find-dupes.md
6064
0644
edit
dl
rm
npm-fund.md
3605
0644
edit
dl
rm
npm-help-search.md
754
0644
edit
dl
rm
npm-help.md
1002
0644
edit
dl
rm
npm-hook.md
2390
0644
edit
dl
rm
npm-init.md
8986
0644
edit
dl
rm
npm-install-ci-test.md
7763
0644
edit
dl
rm
npm-install-test.md
7840
0644
edit
dl
rm
npm-install.md
23133
0644
edit
dl
rm
npm-link.md
11001
0644
edit
dl
rm
npm-logout.md
1746
0644
edit
dl
rm
npm-ls.md
8202
0644
edit
dl
rm
npm-org.md
1967
0644
edit
dl
rm
npm-outdated.md
5769
0644
edit
dl
rm
npm-owner.md
3100
0644
edit
dl
rm
npm-pack.md
3442
0644
edit
dl
rm
npm-ping.md
767
0644
edit
dl
rm
npm-pkg.md
7815
0644
edit
dl
rm
npm-prefix.md
1240
0644
edit
dl
rm
npm-profile.md
3899
0644
edit
dl
rm
npm-prune.md
5410
0644
edit
dl
rm
npm-publish.md
7289
0644
edit
dl
rm
npm-query.md
5069
0644
edit
dl
rm
npm-rebuild.md
4264
0644
edit
dl
rm
npm-repo.md
2721
0644
edit
dl
rm
npm-restart.md
1469
0644
edit
dl
rm
npm-root.md
1080
0644
edit
dl
rm
npm-run-script.md
7355
0644
edit
dl
rm
npm-search.md
3402
0644
edit
dl
rm
npm-set-script.md
2397
0644
edit
dl
rm
npm-shrinkwrap.md
923
0644
edit
dl
rm
npm-star.md
1707
0644
edit
dl
rm
npm-stars.md
741
0644
edit
dl
rm
npm-start.md
1663
0644
edit
dl
rm
npm-stop.md
1337
0644
edit
dl
rm
npm-team.md
4058
0644
edit
dl
rm
npm-test.md
1230
0644
edit
dl
rm
npm-token.md
4213
0644
edit
dl
rm
npm-uninstall.md
4021
0644
edit
dl
rm
npm-unpublish.md
4370
0644
edit
dl
rm
npm-unstar.md
1568
0644
edit
dl
rm
npm-update.md
11085
0644
edit
dl
rm
npm-version.md
6827
0644
edit
dl
rm
npm-view.md
5269
0644
edit
dl
rm
npm-whoami.md
798
0644
edit
dl
rm
npm.md
5586
0644
edit
dl
rm
npx.md
5730
0644
edit
dl
rm
Edit:
/home/techb158/.nvm/versions/node/v16.20.2/lib/node_modules/npm/docs/content/commands/npm-team.md
(4058B)
--- title: npm-team section: 1 description: Manage organization teams and team memberships --- ### Synopsis ```bash npm team create <scope:team> [--otp <otpcode>] npm team destroy <scope:team> [--otp <otpcode>] npm team add <scope:team> <user> [--otp <otpcode>] npm team rm <scope:team> <user> [--otp <otpcode>] npm team ls <scope>|<scope:team> ``` Note: This command is unaware of workspaces. ### Description Used to manage teams in organizations, and change team memberships. Does not handle permissions for packages. Teams must always be fully qualified with the organization/scope they belong to when operating on them, separated by a colon (`:`). That is, if you have a `newteam` team in an `org` organization, you must always refer to that team as `@org:newteam` in these commands. 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. * create / destroy: 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> Here's how to create a new team `newteam` under the `org` org: ```bash npm team create @org:newteam ``` You should see a confirming message such as: `+@org:newteam` once the new team has been created. * add: Add a user to an existing team. Adding a new user `username` to a team named `newteam` under the `org` org: ```bash npm team add @org:newteam username ``` On success, you should see a message: `username added to @org:newteam` * rm: Using `npm team rm` you can also remove users from a team they belong to. Here's an example removing user `username` from `newteam` team in `org` organization: ```bash npm team rm @org:newteam username ``` Once the user is removed a confirmation message is displayed: `username removed from @org:newteam` * ls: If performed on an organization name, will return a list of existing teams under that organization. If performed on a team, it will instead return a list of all users belonging to that particular team. Here's an example of how to list all teams from an org named `org`: ```bash npm team ls @org ``` Example listing all members of a team named `newteam`: ```bash npm team ls @org:newteam ``` ### Details `npm team` always operates directly on the current registry, configurable from the command line using `--registry=<registry url>`. You must be a *team admin* to create teams and manage team membership, under the given organization. Listing teams and team memberships may be done by any member of the organization. Organization creation and management of team admins and *organization* members is done through the website, not the npm CLI. To use teams to manage permissions on packages belonging to your organization, use the `npm access` command to grant or revoke the appropriate permissions. ### Configuration #### `registry` * Default: "https://registry.npmjs.org/" * Type: URL The base URL of the npm registry. #### `otp` * Default: null * Type: null or String This is a one-time password from a two-factor authenticator. It's needed when publishing or changing package permissions with `npm access`. If not set, and a registry response fails with a challenge for a one-time password, npm will prompt on the command line for one. #### `parseable` * Default: false * Type: Boolean Output parseable results from commands that write to standard output. For `npm search`, this will be tab-separated table format. #### `json` * Default: false * Type: Boolean Whether or not to output JSON data, rather than the normal output. * In `npm pkg set` it enables parsing set values with JSON.parse() before saving them to your `package.json`. Not supported by all npm commands. ### See Also * [npm access](/commands/npm-access) * [npm config](/commands/npm-config) * [npm registry](/using-npm/registry)
Save
cmd:
run