Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 517 Bytes

README.md

File metadata and controls

30 lines (21 loc) · 517 Bytes

gh-app-token

Get and display API token for GitHub Apps.

Usage

CLI

npx gh-app-token --appId <your_app_id> --installationId <installation_id> --pem <path_to_pem_file>

or

npm -g install gh-app-token
gh-app-token --appId <your_app_id> --installationId <installation_id> --pem <path_to_pem_file>

API

const { auth } = require("gh-app-token");

auth(appId, installationId, pemFilePath).then(token => {
  // use token
});

License

MIT. See LICENSE under this repository.