Unclear Other commands may also have gained --json.
What
The plugin marketplace commands can now print their result in JSON, a structured format that other programs can read. With --json, a command prints one machine-readable result line as the last line of its output. Exit codes, the numbers a command returns to say whether it succeeded, stay the same as before.
claude plugin marketplace addgains--json. Its result is labelledcommand: "marketplace-add".claude plugin marketplace removegains--json. Its result is labelledmarketplace-remove.claude plugin marketplace updategains--json, but only together with a marketplace name. Without one it says "--json needs a marketplace name, for example: claude plugin marketplace update --json".
Each result includes an outcome and a failureCode. Before this release these commands printed plain text only. Other commands may also have gained --json, but that was not confirmed.
Why
Scripts and automation can now add, remove and update plugin marketplaces and read the outcome reliably, instead of parsing text meant for people.
| `--data-size [plugin]` | Measure each installed plugin's [saved data directory](#what-an-uninstall-deletes-and-keeps), or only the named plugin's, given as `name@marketplace`. Has no effect without `--json`. If the name has no install re…see the edit
* Flags that read the output, such as `--output-format json` or `--json-schema`see the edit
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
To see these programmatically, run `claude plugin list --json` in your shell. Plugins with problems carry an `errors` field with the messages and an `errorDetails` field with a `type` for each: the first three rows are `dependency-unsatisf…plugins/troubleshooting see the edit
* Fixed `claude plugin validate` failing an Anthropic marketplace's own plugin and listing a clean `plugin.json` in `--json`changelog see the edit
Other commands may also have gained `--json`.
--json on Plugin commands reference