ledgekit CLI
LedgeKit includes a command-line tool, ledgekit. Today it does one thing: it checks a manifest before you package or submit it.
ledgekit validate
Run it from a LedgeKit checkout, passing the path to your manifest:
git clone https://github.com/Ammyy9908/LedgeKit.git
cd LedgeKit
swift run ledgekit validate ../my-addon/addon.jsonA valid manifest prints its ID, version and protocol:
Valid manifest: my-addon 1.0.0 (protocol 1)Otherwise it prints what's wrong, such as Invalid manifest field: version.
Exit codes
| Code | Meaning |
|---|---|
| 0 | The manifest is valid |
| 1 | The manifest is invalid, or the file can't be read as JSON |
| 2 | Wrong usage. The only form is ledgekit validate <addon.json> |
What it checks
The same rules as AddOnManifest.validate(), which Ledge also runs. It reads only the manifest. It doesn't check that the executable or icon exist, that the add-on builds, or that Ledge will install it. Load the package into Ledge for that.