Credjar
Inspect, issue and revoke Credly badges from the command line.
Credjar works with a Credly organisation’s badge templates and issued badges. It lists them, creates templates from a file, issues badges to one person or to a CSV of people, and revokes them. It is the Credly counterpart to Syncjar, which does the same kind of work for Skilljar.
This documentation covers Credjar 0.3.1.
What it does
| Templates | List your badge templates, and create new ones from a JSON file and a PNG. |
| List badges | Find issued badges by template, email, state or date, and export them as CSV. |
| Issue | Issue a badge to one person, or to everyone in a CSV, skipping people who already hold it. |
| Revoke | Revoke badges by id, or from a filtered copy of an export. |
| Sandbox | Run any command against the Credly sandbox, with its own settings. |
Built to be hard to misuse
Issuing and revoking both email real people, and neither can be taken back, so Credjar is cautious by default:
- Every command takes
--dry-run, which makes the same reads as a live run and writes nothing. Onissueandrevokethat makes it a real preflight. - Everything that can be checked is checked before the first write: every row of the input, every template, and who already holds the badge.
- Writes ask you to type the environment’s name,
sandboxorproduction, before they go. - Every live write run leaves an audit CSV with each row’s outcome.
- Your API token is never printed, not even in a crash.
Safety and data handling covers the rest.
Requirements
- Node.js 20 or later.
- A Credly organisation, and an authorization token for it. See Configuration.