{"repo":"Link-/gh-token","free":true,"listed":false,"github":"https://github.com/Link-/gh-token","clone":"git clone https://github.com/Link-/gh-token.git","description":"Manage installation access tokens for GitHub apps from your terminal 💻","language":"Go","stars":413,"topics":["cli","bash-script","github","enterprise","actions","github-token","apps","bash","gh-extension"],"license":null,"category":"cli-tools","readme_excerpt":"GH Token Manage installation access tokens for GitHub apps from your terminal Creates an installation access token to make authenticated API requests. Installation tokens expire 1 hour from the time you create them. Using an expired token produces a status code of 401 - Unauthorized , and requires creating a new installation token. You can use this access token to make pretty much any REST or GraphQL API call the app is authorized to make! Why? In order to use GitHub's REST or GraphQL APIs you will need either a Personal Access Token (PAT) or a GitHub App. PATs are dangerous, they: 1. have a very wide scope that spans across multiple organizations 1. never (automatically) expire. They have an indefinite lifetime (or at least until you regenerate them) 1. cannot be revoked (they're only revoked when a new one is generated) With an access token generated with a GitHub App you don't have to worry about the concerns above. These tokens have a limited scope and lifetime. Just make sure you handle the token safely (avoid leaking). In the worst case scenario, the token will expire in 1 hour from creation time. Installation Download as a standalone binary Download gh-token from the latest release for your platform. Install as a gh cli extension You can install gh-token as a gh cli extension! All the commands and parameters remain the same, the only different is you now can use gh token instead of gh-token . Creating a GitHub App Follow these steps Usage Compatible with GitHub Enterpr","default_branch":null,"files":null,"tree":[],"storefront":"/r/Link-","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Link-/gh-token/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}