1.0.1 • Published 7 years ago
gh-app-token v1.0.1
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.