New features / v2.1.259
JSON plugin validation reports
CHANGELOG · original
Added --json to claude plugin validate for a machine-readable validation report Open official changelog ↗ Documentation
Documentation excerpt
plugin validate
Check a plugin or a marketplace for syntax and schema errors before publishing.
The command exits 0 when validation passes, 1 when it fails, and 2 when the validation run itself fails, such as when the path you pass is unreadable.
claude plugin validate <path> [options]
The command takes these arguments:
<path>: Path to a plugin directory or a marketplace directory. See Validate a plugin or a directory without a manifest for which files a plugin run covers.
The command accepts these options:
| Option | Description | Default |
|---|---|---|
--strict |
Treat warnings as errors and exit 1 on them. Use in CI to catch issues the runtime tolerates, such as unrecognized fields | |
--json |
Output the validation report as one JSON object with the same exit codes. Requires Claude Code v2.1.259 or later | |
-h, --help |
Display help for command |
With --json, Claude Code writes the report to stdout as one JSON object with these top-level fields:
success: the same verdict the exit code givesstrict: whether the run treated warnings as errorstarget: the resolved path Claude Code validatedmanifest: the manifest's own result, ornullfor a run without a manifestcontents: per-file results, each naming itsfileand carryingerrors,warnings, andnotesarrays
On exit 2, the command writes nothing to stdout; the error message goes to stderr.
Within an interactive session, /plugin validate <path> runs the same checks inline.
Documentation snapshot · 2026-09-23