npm install gh-app-tokenGet and display API token for GitHub Apps.
``sh`
npx gh-app-token --appId
or
`sh`
npm -g install gh-app-token
gh-app-token --appId
`js
const { auth } = require("gh-app-token");
auth(appId, installationId, pemFilePath).then(token => {
// use token
});
``