Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.271 ·

New --accept-command flag to pre-approve a plugin's install command

A new --accept-command flag lets you pre-approve a specific plugin install or update command without the broader -y/--yes flag

Group of 3 Use it now Notable New Features
JSON All of v2.1.271
Use it nowTier: how much it should matter to you
4Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
PluginsArea: what it touches
New FeaturesKind: in v2.1.271,
What probably matters to youSection of the release

What

Installing or updating a plugin can involve running a marketplace-declared command, which Claude Code normally asks you to confirm. A new --accept-command flag lets you pre-approve that specific command instead of using the broader -y/--yes flag.

  • --accept-command <sha256> takes the sha256 hash of the exact command text (previously reported via --json's shownCommand.sha256), and only auto-accepts if it matches the command actually shown to the user for that plugin/marketplace pair; otherwise it prints a warning and leaves the command unconfirmed.
  • If the marketplace's declared command has changed since the hash was generated, it refuses and re-shows the new command instead of accepting it.
  • This is wired through the CLI option parser and the plugin install and plugin update command handlers alike, so both flows support scoped, non-interactive command acceptance.

Why

This lets scripts and automation approve a known, specific install command without granting blanket trust via -y/--yes, and it protects against silently accepting a different command if the marketplace's listing changes.

How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's release notes agreeAdded --accept-command <sha256> to claude plugin install and claude plugin update to accept exactly the command a previous --json run…

See this entry in the whole of v2.1.271 →

Feedback