What this thread does
Do first: Run claude plugin install <plugin> --json from a shell; parse only the last stdout line.
Short answer
v2.1.268 (2026-09-10) added JSON results to install, uninstall, update, enable, and disable. v2.1.271 (2026-09-14) added accepting an exact displayed command by hash. v2.1.323 (2026-11-12) added an unset-option count to installation JSON.
What to do
| Item | Value / action |
|---|---|
| Install / update | claude plugin install <plugin> --json; claude plugin update <plugin> --json |
| Plugin identity | name or name@marketplace; qualify duplicate names |
| Required JSON fields | command, outcome (ok or failed), message |
| Conditional JSON fields | pluginId, scope, failureCode; absent when irrelevant |
| Install option count | unsetOptionCount counts userConfig options not yet set, added in v2.1.323 |
| Process result | 0 success; 1 failure. Invalid --scope is a usage error: stderr reason, exit 1, no JSON result line |
| Install scope | -s / --scope: user (default), project, local |
| Update scope | user, project, local, managed; omitted: local → project → user → managed since v2.1.281 |
| Older update default | Before v2.1.281: user; possible error is not installed at scope user |
| Install options | Repeat --config <key=value> for manifest userConfig; bundled-server <server>.<key> requires v2.1.285 |
| Displayed command acceptance | -y / --yes, or --accept-command <sha256> from shownCommand; cannot combine them |
| Hash mismatch | shownCommand.acceptCommandMatched: false: review the new command and hash |
| Reload updated code | Next session, or /reload-plugins |
Check process exit and the last stdout line separately. Marketplace command text can precede JSON. Without a TTY, a displayed install command needs explicit acceptance; -y and --accept-command have no effect inside Claude Code. Review the displayed command in your own terminal before accepting it. The hash is valid only for that command, plugin, and marketplace catalog; a change requires review again.
Limits and open questions
JSON availability begins at v2.1.268; hash acceptance at v2.1.271. Update can target managed, install cannot. An already-current plugin update normally exits 0, but an unsuccessful dependency-install retry exits 1 (retry behavior since v2.1.287). The reference describes representative options, not every flag.
Not for: Claude Code plugin validate diagnostics or Agent SDK tool results.
Sources
Checked
2026-11-17; read Claude Code plugin commands reference, Claude Code changelog: 2.1.268, 2.1.271, 2.1.323; no command was run.
Started from a post by @Anthropic, packaged by the editor. Original post