klim badge
klim badge prints Shields.io-compatible badge markdown that summarises
your current klim state. Drop the output into a project README, a
personal profile, a team dashboard, or a CI status page to show off (or
alert on) your toolchain health.
klim badge [flags]Badges
Section titled “Badges”| Badge | What it shows |
|---|---|
| klim score | Overall environment score X/Y graded A+..F (matches klim score --badge). |
| klim tools | Number of installed tools. |
| klim audit | Audit-findings count (clean or N issues). Counts klim audit warnings + infos — not vulnerability scan results; for CVEs use klim security. |
| klim fresh | Percentage of installed tools currently up to date. |
By default every badge is printed. Use the per-badge flags to pick a subset.
| Flag | Description |
|---|---|
--all | Print every badge (the no-flag default). |
--score | Include the score badge. |
--tools | Include the tools badge. |
--audit | Include the audit badge. |
--fresh | Include the fresh-percent badge. |
--refresh | Ignore the scan cache and rescan. |
--output | text (default, Markdown), json, or yaml. |
Examples
Section titled “Examples”# Every badge, ready to paste into a READMEklim badge
# Just score + auditklim badge --score --audit
# Score badge URL only — same colour table as `klim score --badge`klim badge --score | head -1
# Machine-readableklim badge --output jsonklim badge --output yaml > badges.yamlOutput
Section titled “Output”Text output is Markdown — one badge per line:
[](https://github.com/nassiharel/klim)[](https://github.com/nassiharel/klim)[](https://github.com/nassiharel/klim)[](https://github.com/nassiharel/klim)The score badge’s colour comes from internal/score.BadgeColor, the
same helper klim score --badge uses, so the two commands always
agree on the colour for the same score.
Performance
Section titled “Performance”klim badge only runs the doctor + compliance + audit pipeline when
the badges you asked for need it. klim badge --tools --fresh skips
that work entirely; klim badge --output yaml includes the full
structured score block so it always runs the full pipeline.