Linux command
npm-team 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
List teams
npm team ls [@org]
Create team
npm team create [@org:team]
Destroy team
npm team destroy [@org:team]
Add user to team
npm team add [@org:team] [user]
Remove user from team
npm team rm [@org:team] [user]
说明
npm team manages organization teams. Controls package access groups. The command handles team membership. Part of npm organizations feature.
参数
- ls _@org_ | _@org:team_
- List teams in an organization, or members of a specific team.
- create _@org:team_
- Create a new team under the given organization scope.
- destroy _@org:team_
- Delete an existing team (the developers team cannot be removed).
- add _@org:team_ _user_
- Add a user to the given team.
- rm _@org:team_ _user_
- Remove a user from the given team.
- --otp _code_
- Provide a two-factor authentication one-time password.
- --registry _url_
- Target registry URL (defaults to https://registry.npmjs.org).
- --parseable
- Output in tab-separated parseable format.
- --json
- Output results as JSON.
- --help
- Display help information.
FAQ
What is the npm-team command used for?
npm team manages organization teams. Controls package access groups. The command handles team membership. Part of npm organizations feature.
How do I run a basic npm-team example?
Run `npm team ls [@org]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does ls _@org_ | _@org:team_ do in npm-team?
List teams in an organization, or members of a specific team.