Skip to content
← Back to release · 2.1.271
New features / v2.1.271

--accept-command for plugin installs

CHANGELOG · original

Added --accept-command <sha256> to claude plugin install and claude plugin update to accept exactly the command a previous --json run displayed, instead of -y
Open official changelog ↗

Documentation

Documentation excerpt

Accept a displayed install command

When a --json run displays a marketplace-declared command and doesn't run it, the failed result also carries a shownCommand object. Its fields include the command as displayed, the plugin it belongs to, and the command's sha256.

To accept exactly that command, re-run with that sha256 as --accept-command from your own terminal, because the flag has no effect inside a Claude Code session. Requires Claude Code v2.1.271 or later.

The sha256 counts as acceptance for exactly that command, plugin, and marketplace catalog. If any of them changed since the command was displayed, Claude Code doesn't accept the sha256 and shows the command again. A change that the run's own marketplace refresh fetches also counts as such a change.

If shownCommand.acceptCommandMatched is false, the sha256 you passed doesn't match the command now displayed. Review that command before re-running with its sha256.

Documentation snapshot · 2026-11-20

Change details