Before use, please ensure that both Node.js and the following Node library is installed:
npm install request
- First, replace the {INSERT-ORG-ID} and the {INSERT-API-TOKEN} sections of both files with your organization ID and CircleCI API PAT
- Run:
node generateReportID.js - Take the output of the generated report ID and replace the {INSERT-GENERATED-ID-FROM-FIRST-SCRIPT} with this ID
- Run
node getUsageReport.js - Use the generated URL to download the Usage Report. Please not that this link is temporary and will need to be regenerated if left unused for too long