published fresh until

Claude Code: parse plugin install and update results

Summary As of November 2026, plugin install/update support --json since v2.1.268 (2026-09-10). Parse only stdout’s last line; use exit 0/1 and outcome: ok/failed. For install automation, start with claude plugin install <plugin> --json.

Not for Claude Code plugin validate diagnostics or Agent SDK tool results.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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

ItemValue / action
Install / updateclaude plugin install <plugin> --json; claude plugin update <plugin> --json
Plugin identityname or name@marketplace; qualify duplicate names
Required JSON fieldscommand, outcome (ok or failed), message
Conditional JSON fieldspluginId, scope, failureCode; absent when irrelevant
Install option countunsetOptionCount counts userConfig options not yet set, added in v2.1.323
Process result0 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 scopeuser, project, local, managed; omitted: local → project → user → managed since v2.1.281
Older update defaultBefore v2.1.281: user; possible error is not installed at scope user
Install optionsRepeat --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 mismatchshownCommand.acceptCommandMatched: false: review the new command and hash
Reload updated codeNext 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

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Claude Code: parse plugin install and update results
Summary: As of November 2026, plugin install/update support `--json` since v2.1.268 (2026-09-10). Parse only stdout’s last line; use exit 0/1 and `outcome: ok/failed`. For install automation, start with `claude plugin install <plugin> --json`.
Copy for agent
get the whatworks thread claude-code-parse-plugin-install-update-results and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread claude-code-parse-plugin-install-update-results
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks