Environment Diff
Use klim diff to compare your installed tools against a manifest file or share token. It turns “works on my machine” into a concrete environment delta you can fix, review, or enforce in CI.
Comparing Against a Manifest
Section titled “Comparing Against a Manifest”Export your tools on one machine, then diff on another:
# Machine A: exportklim export > alice-tools.yaml
# Machine B: compareklim diff alice-tools.yamlComparing Against a Share Token
Section titled “Comparing Against a Share Token”Share tokens are compact strings you can paste in Slack or Teams:
# Generate a tokenklim share# → klim:v1:H4sIAAAA...
# Compare on another machineklim diff "klim:v1:H4sIAAAA..."Reading the Output
Section titled “Reading the Output”TOOL LOCAL REMOTE STATUS---- ----- ------ ------git 2.53.0 (winget) 2.54.0 (winget) ≠ differsgh 2.74.2 (winget) 2.74.2 (winget) ✓ matchkubectl — 1.28.0 (brew) → remote onlynode 24.14.1 (winget) — ← local only| Status | Meaning |
|---|---|
| ✓ match | Same tool, same version |
| ≠ differs | Same tool, different versions |
| ← local only | You have it, they don’t |
| → remote only | They have it, you don’t |
CI Usage
Section titled “CI Usage”klim diff returns exit code 1 when differences are found:
- name: Check environment matches baseline run: klim diff baseline-tools.yamlSee Also
Section titled “See Also”- Backup & Restore — Export and import tool manifests
- klim diff reference