返回介绍

npm-orgs

发布于 2019-05-30 13:06:39 字数 2707 浏览 1008 评论 0 收藏 0

Working with Teams & Orgs

Description

There are three levels of org users:

  1. Super admin, controls billing & adding people to the org.
  2. Team admin, manages team membership & package access.
  3. 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:

  1. npm team see Team Admins create teams
    • Check who you’ve added to your org:
    npm team ls <org>: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> <user>
    

    Publish a package and adjust package access

    • In package directory, run
    npm init --scope=<org>
    

    to scope it for your org & publish as usual

    • Grant access:
    npm access grant <read-only|read-write> <org:team> [<package>]
    
    • Revoke access:
    npm access revoke <org:team> [<package>]
    

    Monitor your package access

    • See what org packages a team member can access:
    npm access ls-packages <org> <user>
    
    • 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 <pkg>
    

    See Also

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文