npm-orgs

本文详细介绍了npm中组织用户的三个层级:超级管理员、团队管理员和开发者,以及他们各自的责任和权限。超级管理员负责账单管理和人员添加;团队管理员管理团队创建、成员和包访问权限;开发者则基于所属团队访问包资源。文章还提供了npm命令,用于团队和包访问的创建、调整和监控。

Working with Teams & Orgs
Description

There are three levels of org users:

Super admin, controls billing & adding people to the org.
Team admin, manages team membership & package access.
Developer, works on packages they are given access to.

The super admin is the only person who can add users to the org because it impacts the monthly bill. The super admin will use the website to manage membership. Every org has a developers team that all users are automatically added to.

The team admin is the person who manages team creation, team membership, and package access for teams. The team admin grants package access to teams, not individuals.

The developer will be able to access packages based on the teams they are on. Access is either read-write or read-only.

There are two main commands:

npm team see npm-team for more details
npm access see npm-access for more details

Team Admins create teams

Check who you’ve added to your org:

npm team ls :developers

Each org is automatically given a developers team, so you can see the whole list of team members in your org. This team automatically gets read-write access to all packages, but you can change that with the access command.

Create a new team:

npm team create org:team

Add members to that team:

npm team add org:team

Publish a package and adjust package access

In package directory, run

npm init --scope=

to scope it for your org & publish as usual

Grant access:

npm access grant <read-only|read-write> org:team []

Revoke access:

npm access revoke org:team []

Monitor your package access

See what org packages a team member can access:

npm access ls-packages

See packages available to a specific team:

npm access ls-packages org:team

Check which teams are collaborating on a package:

npm access ls-collaborators

See Also

npm-team
npm-access
npm-scope
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值