Plugin commands reference changedplugins/cli-reference
Nearest release: v2.1.330, published 3 hours after upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Upstream edited this page at 20 Nov 2026 16:03 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 20 Nov 2026 16:07 UTC.
Upstream edited
Recorded here
Lines+19added
Lines−3removed
From line
23
where the diff opens
First seen
25 Sep 2026
this site's first read of the page
Recorded edits37to this page, all time
### plugin restore-set-aside
The whole hunk
from line 23, old and new numbered
/
from line 23
2323Every subcommand shares these exit codes, plugin arguments, and scope values:
2424
2525* **Exit codes**: `0` on success and `1` on failure. `validate` adds exit `2` for an unexpected error, and `eval` adds the codes listed in [its section](#plugin-eval).
26* **Plugin arguments**: a `<plugin>` argument is a plugin `name` or `name@marketplace`. When two marketplaces offer the same name, use the qualified form. `configure` takes only the qualified form.
26* **Plugin arguments**: a `<plugin>` argument is a plugin `name` or `name@marketplace`. When two marketplaces offer the same name, use the qualified form. `configure` and `restore-set-aside` take only the qualified form.
2727* **Scopes**: `--scope` takes `user`, `project`, or `local`, and names the settings file the command writes to. `update` also takes `managed`.
2828
2929In a terminal, success lines leave out `Successfully`, as in `Installed plugin:`. When stdout or stderr isn't a terminal, `Successfully` stays.
from line 415
415415
416416For the settings of a bundled MCP server, see [`plugin install --config`](#plugin-install) or the **Configure** item in `/plugin`.
417417
418### plugin restore-set-aside
419
420Restore or delete the [options and secrets](https://code.claude.com/docs/en/plugins/manifest-reference.md#user-configuration) that Claude Code set aside when your organization replaced a plugin marketplace with one of the same name. Requires Claude Code v2.1.321 or later.
421
422Restore them to let any plugin installed under that `name@marketplace` id read them, including one from the replacement marketplace. Otherwise, leave them set aside, or pass `--discard` to delete them. If the id already holds a value for an option, restoring can keep that value and drop the set-aside one.
423
424```bash theme={null}
425claude plugin restore-set-aside <plugin>@<marketplace> [options]
426```
427
428| Flag | Description |
429| :- | :- |
430| `--discard` | Delete the set-aside options and secrets instead of restoring them |
431
432Pass the plugin's full `name@marketplace` id, copied from the note that `claude plugin list` prints without `--json`. If `restore-set-aside` prints `No options or secrets are set aside for <plugin>.`, check that you passed the full id, because a bare `name` matches nothing.
433
418434### plugin prune
419435
420436Remove auto-installed [dependencies](https://code.claude.com/docs/en/plugins/dependencies.md) that no installed plugin needs anymore. The command never removes a plugin you installed yourself. `autoremove` is an alias for `prune`.
from line 645
629645
630646* **A `SKILL.md` at the plugin root**: when you run `claude plugin validate` against a plugin directory, Claude Code doesn't check a `SKILL.md` at the plugin root
631647* **A `CLAUDE.md` at the plugin root**: in a plugin run, Claude Code also warns about a `CLAUDE.md` at the plugin root
632* **Plugin files in a marketplace run**: from a marketplace directory, Claude Code doesn't open the skill, agent, command, or hook files of plugins the marketplace lists in other directories, or the MCP server files they bundle. To find errors in those files, validate each plugin directory
648* **Plugin files in a marketplace run**: from a marketplace directory, Claude Code doesn't open the skill, agent, or command files of plugins the marketplace lists in other directories, or the MCP server files they bundle. To find errors in those files, validate each plugin directory
633649
634650#### Validate a manifest file
635651
from line 864
848864
849865A `<plugin>` is a plugin `name` or `name@marketplace`.
850866
851The table below lists the session forms. The shell subcommands `init`, `update`, `details`, `prune`, `eval`, `eval init`, and `test` have no session form.
867The table below lists the session forms. The shell subcommands `init`, `update`, `details`, `restore-set-aside`, `prune`, `eval`, `eval init`, and `test` have no session form.
852868
853869| Command | Aliases | What it does |
854870| :- | :- | :- |
No line in this hunk matches that.