# Badges

Listing, issuing and revoking the badges your organisation has issued.

| Command | Does | Writes to Credly |
|---|---|---|
| [`badges`](https://westerling.nu/credjar/badges/listing.md) | Lists issued badges, filtered, optionally as CSV | no |
| [`issue`](https://westerling.nu/credjar/badges/issuing.md) | Issues badges to one person or a CSV of people | **yes**, emails each recipient |
| [`revoke`](https://westerling.nu/credjar/badges/revoking.md) | Revokes badges by id | **yes**, emails each earner |

A badge is in one of five states:

| State | Meaning |
|---|---|
| `pending` | Issued, not yet accepted by the earner. |
| `accepted` | Accepted by the earner. |
| `rejected` | Rejected by the earner. |
| `revoked` | Revoked by your organisation. The earner no longer sees it. |
| `replaced` | Superseded by a newer badge. |

Credjar treats a `pending` or `accepted` badge as one the person **holds**.
That decides who `issue` skips and what `revoke` acts on.
