New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

github-personal-access-token-generator-cli

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github-personal-access-token-generator-cli

Generate GitHub personal access tokens from the command line

latest
Source
npmnpm
Version
2.0.1
Version published
Weekly downloads
6
200%
Maintainers
1
Weekly downloads
 
Created
Source

github-personal-access-token-generator-cli

Greenkeeper badge codecov npm npm

alt-text alt-text

A GitHub personal access token is pretty seamless to do from the web UI.

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.

Keywords

github

FAQs

Package last updated on 31 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts