Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(token): support token names #425

Open
5 tasks
Tracked by #536
darcyclarke opened this issue Jan 13, 2022 · 0 comments
Open
5 tasks
Tracked by #536

feat(token): support token names #425

darcyclarke opened this issue Jan 13, 2022 · 0 comments
Labels

Comments

@darcyclarke
Copy link
Contributor

darcyclarke commented Jan 13, 2022

Summary

The CLI should support auth token names (which just rolled out on the website)

Exit Criteria

  • npm token list outputs the corresponding names of tokens
  • npm token create supports setting the token's name via flag (ex. --token-name=)
  • Set default --token-name value (ex. npm token)
  • Tests are written to reflect new capabilities
  • Documentation is updated to reflect new capabilities

Examples

npm token create --token=name="Actions CI" --token-type=automation

npm token list 

+--------+---------+------------+------------+------------+----------------+
| id     | token   | created    | name       | type       | CIDR whitelist |
+--------+---------+------------+------------+------------+----------------+
| 7f3134 | 1fa9ba… | 2017-10-02 |            | read       |                |
+--------+---------+------------+------------+------------+----------------+
| c03241 | af7aef… | 2017-10-02 | npm login  | read-write |                |
+--------+---------+------------+------------+------------+----------------+
| e0cf92 | 3a436a… | 2017-10-02 | npm login  | read-write |                |
+--------+---------+------------+------------+------------+----------------+
| 63eb9d | 74ef35… | 2017-09-28 | Actions CI | automation |                |
+--------+---------+------------+------------+------------+----------------+

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants