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.

74 lines
5.4 KiB

  1. <!doctype html>
  2. <html>
  3. <title>npm-token</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/cli/npm-token.html">
  7. <script async=true src="../../static/toc.js"></script>
  8. <body>
  9. <div id="wrapper">
  10. <h1><a href="../cli/npm-token.html">npm-token</a></h1> <p>Manage your authentication tokens</p>
  11. <h2 id="synopsis">SYNOPSIS</h2>
  12. <pre><code>npm token list [--json|--parseable]
  13. npm token create [--read-only] [--cidr=1.1.1.1/24,2.2.2.2/16]
  14. npm token revoke &lt;id|token&gt;</code></pre><h2 id="description">DESCRIPTION</h2>
  15. <p>This list you list, create and revoke authentication tokens.</p>
  16. <ul>
  17. <li><p><code>npm token list</code>:
  18. Shows a table of all active authentication tokens. You can request this as
  19. JSON with <code>--json</code> or tab-separated values with <code>--parseable</code>.</p>
  20. <pre><code>+--------+---------+------------+----------+----------------+
  21. | id | token | created | read-only | CIDR whitelist |
  22. +--------+---------+------------+----------+----------------+
  23. | 7f3134 | 1fa9ba… | 2017-10-02 | yes | |
  24. +--------+---------+------------+----------+----------------+
  25. | c03241 | af7aef… | 2017-10-02 | no | 192.168.0.1/24 |
  26. +--------+---------+------------+----------+----------------+
  27. | e0cf92 | 3a436a… | 2017-10-02 | no | |
  28. +--------+---------+------------+----------+----------------+
  29. | 63eb9d | 74ef35… | 2017-09-28 | no | |
  30. +--------+---------+------------+----------+----------------+
  31. | 2daaa8 | cbad5f… | 2017-09-26 | no | |
  32. +--------+---------+------------+----------+----------------+
  33. | 68c2fe | 127e51… | 2017-09-23 | no | |
  34. +--------+---------+------------+----------+----------------+
  35. | 6334e1 | 1dadd1… | 2017-09-23 | no | |
  36. +--------+---------+------------+----------+----------------+</code></pre></li>
  37. <li><p><code>npm token create [--read-only] [--cidr=&lt;cidr-ranges&gt;]</code>:
  38. Create a new authentication token. It can be <code>--read-only</code> or accept a list of
  39. <a href="https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing">CIDR</a> ranges to
  40. limit use of this token to. This will prompt you for your password, and, if you have
  41. two-factor authentication enabled, an otp.</p>
  42. </li>
  43. </ul>
  44. <pre><code>+----------------+--------------------------------------+
  45. | token | a73c9572-f1b9-8983-983d-ba3ac3cc913d |
  46. +----------------+--------------------------------------+
  47. | cidr_whitelist | |
  48. +----------------+--------------------------------------+
  49. | readonly | false |
  50. +----------------+--------------------------------------+
  51. | created | 2017-10-02T07:52:24.838Z |
  52. +----------------+--------------------------------------+</code></pre><ul>
  53. <li><code>npm token revoke &lt;token|id&gt;</code>:
  54. This removes an authentication token, making it immediately unusable. This can accept
  55. both complete tokens (as you get back from <code>npm token create</code> and will
  56. find in your <code>.npmrc</code>) and ids as seen in the <code>npm token list</code> output.
  57. This will NOT accept the truncated token found in <code>npm token list</code> output.</li>
  58. </ul>
  59. </div>
  60. <table border=0 cellspacing=0 cellpadding=0 id=npmlogo>
  61. <tr><td style="width:180px;height:10px;background:rgb(237,127,127)" colspan=18>&nbsp;</td></tr>
  62. <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>
  63. <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>
  64. <tr><td style="width:10px;height:10px;background:#fff" rowspan=2>&nbsp;</td></tr>
  65. <tr><td style="width:10px;height:10px;background:#fff">&nbsp;</td></tr>
  66. <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>
  67. <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>
  68. </table>
  69. <p id="footer">npm-token &mdash; npm@6.4.1</p>