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.json

A 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

CodeMeaning
0The manifest is valid
1The manifest is invalid, or the file can't be read as JSON
2Wrong 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.