https://github.com/jaebradley/github-personal-access-token-generator-cli
Create GitHub Personal Access Tokens from the Terminal
https://github.com/jaebradley/github-personal-access-token-generator-cli
cli github nodejs npm-package personal-access-token
Last synced: 10 months ago
JSON representation
Create GitHub Personal Access Tokens from the Terminal
- Host: GitHub
- URL: https://github.com/jaebradley/github-personal-access-token-generator-cli
- Owner: jaebradley
- License: mit
- Created: 2018-02-24T21:20:58.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-08-01T07:35:09.000Z (over 3 years ago)
- Last Synced: 2025-03-25T17:46:48.252Z (10 months ago)
- Topics: cli, github, nodejs, npm-package, personal-access-token
- Language: JavaScript
- Homepage:
- Size: 1010 KB
- Stars: 16
- Watchers: 3
- Forks: 6
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# github-personal-access-token-generator-cli
[](https://greenkeeper.io/)
[](https://codecov.io/gh/jaebradley/github-personal-access-token-generator-cli)
[](https://www.npmjs.com/package/github-personal-access-token-generator-cli)
[](https://www.npmjs.com/package/github-personal-access-token-generator-cli)


[A GitHub personal access token is pretty seamless to do from the web UI](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/).
However, if you're a command line freak like me and want to create a personal access token quickly without having to leave the Terminal...
## Installation
```
npm install github-personal-access-token-generator-cli -g
```
## Usage
```
ghpat
```
You will be asked for
* Your username + password combination
* The various scopes / permissions you'd like your access token to have
* A reason for this personal access token - aka what's it going to be used for?
* A two-factor authentication code if you've turned on 2FA for GitHub
If successful your personal access token **will be copied to your clipboard**.
## Uhhh not all the GitHub personal access token options are available?
Yeah, they're not.
This utility is mostly to create personal access tokens quickly - most of the time (I would argue), you need to set one of the "overriding" scopes rather than any of the "sub-scopes".
If this is something that's not the case for end-users, this can be added.