Simple email application for Android. Original source code: https://framagit.org/dystopia-project/simple-email
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

81 lines
5.4 KiB

  1. <!doctype html>
  2. <html>
  3. <title>npm-orgs</title>
  4. <meta charset="utf-8">
  5. <link rel="stylesheet" type="text/css" href="../../static/style.css">
  6. <link rel="canonical" href="https://www.npmjs.org/doc/misc/npm-orgs.html">
  7. <script async=true src="../../static/toc.js"></script>
  8. <body>
  9. <div id="wrapper">
  10. <h1><a href="../misc/npm-orgs.html">npm-orgs</a></h1> <p>Working with Teams &amp; Orgs</p>
  11. <h2 id="description">DESCRIPTION</h2>
  12. <p>There are three levels of org users:</p>
  13. <ol>
  14. <li>Super admin, controls billing &amp; adding people to the org.</li>
  15. <li>Team admin, manages team membership &amp; package access.</li>
  16. <li>Developer, works on packages they are given access to. </li>
  17. </ol>
  18. <p>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 <code>developers</code> team that all users are automatically added to.</p>
  19. <p>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.</p>
  20. <p>The developer will be able to access packages based on the teams they are on. Access is either read-write or read-only.</p>
  21. <p>There are two main commands:</p>
  22. <ol>
  23. <li><code>npm team</code> see <a href="../cli/npm-team.html">npm-team(1)</a> for more details</li>
  24. <li><code>npm access</code> see <a href="../cli/npm-access.html">npm-access(1)</a> for more details</li>
  25. </ol>
  26. <h2 id="team-admins-create-teams">Team Admins create teams</h2>
  27. <ul>
  28. <li>Check who you’ve added to your org:</li>
  29. </ul>
  30. <pre><code>npm team ls &lt;org&gt;:developers</code></pre><ul>
  31. <li><p>Each org is automatically given a <code>developers</code> 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 <code>access</code> command.</p>
  32. </li>
  33. <li><p>Create a new team:</p>
  34. </li>
  35. </ul>
  36. <pre><code>npm team create &lt;org:team&gt;</code></pre><ul>
  37. <li>Add members to that team:</li>
  38. </ul>
  39. <pre><code>npm team add &lt;org:team&gt; &lt;user&gt;</code></pre><h2 id="publish-a-package-and-adjust-package-access">Publish a package and adjust package access</h2>
  40. <ul>
  41. <li>In package directory, run</li>
  42. </ul>
  43. <pre><code>npm init --scope=&lt;org&gt;</code></pre><p>to scope it for your org &amp; publish as usual</p>
  44. <ul>
  45. <li>Grant access: </li>
  46. </ul>
  47. <pre><code>npm access grant &lt;read-only|read-write&gt; &lt;org:team&gt; [&lt;package&gt;]</code></pre><ul>
  48. <li>Revoke access:</li>
  49. </ul>
  50. <pre><code>npm access revoke &lt;org:team&gt; [&lt;package&gt;]</code></pre><h2 id="monitor-your-package-access">Monitor your package access</h2>
  51. <ul>
  52. <li>See what org packages a team member can access:</li>
  53. </ul>
  54. <pre><code>npm access ls-packages &lt;org&gt; &lt;user&gt;</code></pre><ul>
  55. <li>See packages available to a specific team:</li>
  56. </ul>
  57. <pre><code>npm access ls-packages &lt;org:team&gt;</code></pre><ul>
  58. <li>Check which teams are collaborating on a package:</li>
  59. </ul>
  60. <pre><code>npm access ls-collaborators &lt;pkg&gt;</code></pre><h2 id="see-also">SEE ALSO</h2>
  61. <ul>
  62. <li><a href="../cli/npm-team.html">npm-team(1)</a></li>
  63. <li><a href="../cli/npm-access.html">npm-access(1)</a></li>
  64. <li><a href="../misc/npm-scope.html">npm-scope(7)</a></li>
  65. </ul>
  66. </div>
  67. <table border=0 cellspacing=0 cellpadding=0 id=npmlogo>
  68. <tr><td style="width:180px;height:10px;background:rgb(237,127,127)" colspan=18>&nbsp;</td></tr>
  69. <tr><td rowspan=4 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td><td style="width:40px;height:10px;background:#fff" colspan=4>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=4>&nbsp;</td><td style="width:40px;height:10px;background:#fff" colspan=4>&nbsp;</td><td rowspan=4 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td><td colspan=6 style="width:60px;height:10px;background:#fff">&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=4>&nbsp;</td></tr>
  70. <tr><td colspan=2 style="width:20px;height:30px;background:#fff" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:#fff" rowspan=3>&nbsp;</td><td style="width:20px;height:10px;background:#fff" rowspan=4 colspan=2>&nbsp;</td><td style="width:10px;height:20px;background:rgb(237,127,127)" rowspan=2>&nbsp;</td><td style="width:10px;height:10px;background:#fff" rowspan=3>&nbsp;</td><td style="width:20px;height:10px;background:#fff" rowspan=3 colspan=2>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:#fff" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3>&nbsp;</td></tr>
  71. <tr><td style="width:10px;height:10px;background:#fff" rowspan=2>&nbsp;</td></tr>
  72. <tr><td style="width:10px;height:10px;background:#fff">&nbsp;</td></tr>
  73. <tr><td style="width:60px;height:10px;background:rgb(237,127,127)" colspan=6>&nbsp;</td><td colspan=10 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td></tr>
  74. <tr><td colspan=5 style="width:50px;height:10px;background:#fff">&nbsp;</td><td style="width:40px;height:10px;background:rgb(237,127,127)" colspan=4>&nbsp;</td><td style="width:90px;height:10px;background:#fff" colspan=9>&nbsp;</td></tr>
  75. </table>
  76. <p id="footer">npm-orgs &mdash; npm@6.4.1</p>