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.

59 lines
2.7 KiB

  1. npm-token(1) -- Manage your authentication tokens
  2. =================================================
  3. ## SYNOPSIS
  4. npm token list [--json|--parseable]
  5. npm token create [--read-only] [--cidr=1.1.1.1/24,2.2.2.2/16]
  6. npm token revoke <id|token>
  7. ## DESCRIPTION
  8. This list you list, create and revoke authentication tokens.
  9. * `npm token list`:
  10. Shows a table of all active authentication tokens. You can request this as
  11. JSON with `--json` or tab-separated values with `--parseable`.
  12. ```
  13. +--------+---------+------------+----------+----------------+
  14. | id | token | created | read-only | CIDR whitelist |
  15. +--------+---------+------------+----------+----------------+
  16. | 7f3134 | 1fa9ba… | 2017-10-02 | yes | |
  17. +--------+---------+------------+----------+----------------+
  18. | c03241 | af7aef… | 2017-10-02 | no | 192.168.0.1/24 |
  19. +--------+---------+------------+----------+----------------+
  20. | e0cf92 | 3a436a… | 2017-10-02 | no | |
  21. +--------+---------+------------+----------+----------------+
  22. | 63eb9d | 74ef35… | 2017-09-28 | no | |
  23. +--------+---------+------------+----------+----------------+
  24. | 2daaa8 | cbad5f… | 2017-09-26 | no | |
  25. +--------+---------+------------+----------+----------------+
  26. | 68c2fe | 127e51… | 2017-09-23 | no | |
  27. +--------+---------+------------+----------+----------------+
  28. | 6334e1 | 1dadd1… | 2017-09-23 | no | |
  29. +--------+---------+------------+----------+----------------+
  30. ```
  31. * `npm token create [--read-only] [--cidr=<cidr-ranges>]`:
  32. Create a new authentication token. It can be `--read-only` or accept a list of
  33. [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) ranges to
  34. limit use of this token to. This will prompt you for your password, and, if you have
  35. two-factor authentication enabled, an otp.
  36. ```
  37. +----------------+--------------------------------------+
  38. | token | a73c9572-f1b9-8983-983d-ba3ac3cc913d |
  39. +----------------+--------------------------------------+
  40. | cidr_whitelist | |
  41. +----------------+--------------------------------------+
  42. | readonly | false |
  43. +----------------+--------------------------------------+
  44. | created | 2017-10-02T07:52:24.838Z |
  45. +----------------+--------------------------------------+
  46. ```
  47. * `npm token revoke <token|id>`:
  48. This removes an authentication token, making it immediately unusable. This can accept
  49. both complete tokens (as you get back from `npm token create` and will
  50. find in your `.npmrc`) and ids as seen in the `npm token list` output.
  51. This will NOT accept the truncated token found in `npm token list` output.