plugin
The plugin group manages CLI plugins and extensions: install, uninstall, update,
validate, pin and review, dependency resolution, security scanning, a marketplace
backed by the npm registry, command registration, middleware, and auto-generated docs.
It is the largest command group in the CLI.
re-shell plugin --helpLifecycle
Section titled “Lifecycle”| Subcommand | Purpose |
|---|---|
list / info <plugin> |
List installed plugins; show one. |
install <plugin> |
Install from a local path, git URL, or npm package. |
uninstall <plugin> |
Remove the plugin’s files, registry entry, hooks and commands. |
update [plugin] |
Update installed plugins (npm and git; respects pins). |
validate <path> |
Validate a plugin before publishing. |
pin <plugin> [version] / unpin <plugin> |
Pin to an exact version or semver range. |
review add <plugin> / review list |
Team reviews. |
enable / disable <plugin>, reload <plugin> |
Toggle or reload. |
re-shell plugin install ./my-pluginre-shell plugin install reshell-plugin-example --pin # pin the version you gotre-shell plugin install reshell-plugin-example@^1.2.0 --pin # pin the rangere-shell plugin install https://github.com/acme/reshell-plugin-x.git --dry-runre-shell plugin update --check # report available updates; change nothingre-shell plugin update # update everything that is not pinnedre-shell plugin uninstall reshell-plugin-example --dry-runre-shell plugin uninstall reshell-plugin-example --purge # also delete its data directory- Install classifies the source (npm, git or local), resolves and validates the
manifest, and records the plugin in
.re-shell/plugins.json(written atomically; a corrupt file fails loudly instead of being overwritten). For git it records the resolved commit.--dry-runresolves and validates without installing. Errors surface asPLUGIN_INSTALL_ERROR. - Uninstall removes the files, the registry entry, its hooks and its commands, and
refuses (unless
--force) while other plugins depend on it.--purgealso removes.re-shell/data/<plugin>. - Update re-resolves npm and git plugins (local plugins cannot be updated), skips
pinned ones, and can require registry signature verification (
--verify, or--no-verifyto opt out explicitly). - Validate checks the manifest, entry point,
enginescompatibility with the CLI, dependencies (--check-registryresolves missing ones against npm), a security scan and the package size.--stricttreats warnings as failures. (PLUGIN_VALIDATE_ERRORis the error code for a failing run.) - Pin stops
updatefrom moving a plugin.
Marketplace
Section titled “Marketplace”The marketplace connects to the real npm registry (keyword reshell-plugin) and can
verify package signatures against npm’s key API.
| Subcommand | Purpose |
|---|---|
search [query] |
Search plugins (--category, --featured, --verified, --sort, --limit). |
show <plugin> |
Detailed plugin information. |
install-marketplace <plugin> [version] |
Install from the npm registry. |
featured / popular [category] / categories |
Browse. |
re-shell plugin search graphql --sort downloadsre-shell plugin install-marketplace reshell-plugin-example 1.0.0Ratings come from npms.io (score.final); when npms.io is unreachable or has no
analysis, a score derived from npm download counts is used instead. npm has no review
system, so reviews are a workspace-level record, .re-shell/plugin-reviews.json,
that teammates add to and share through git:
re-shell plugin review add reshell-plugin-example --rating 4 --comment "works well"re-shell plugin review listMarketplace errors use MARKETPLACE_UNREACHABLE, MARKETPLACE_ERROR or
MARKETPLACE_VERIFY_ERROR.
What was tested. The installer, uninstaller, updater, validator, pinning, ratings
and reviews are covered by unit tests, and the lifecycle commands by integration tests
against a fake npm registry serving real tarballs. Installing from the live npm
registry is not asserted in CI and was not exercised while writing this
documentation. Plugins written for the older scope and manifest keys (reshell,
reshell-plugin, reshell-cli) are still recognized.
Dependencies & security
Section titled “Dependencies & security”re-shell plugin depsre-shell plugin conflictsre-shell plugin security-scanre-shell plugin security-reportCommand extension system
Section titled “Command extension system”Plugins can register their own commands, with middleware, conflict resolution, validation schemas, caching, and auto-generated documentation:
re-shell plugin commandsre-shell plugin command-conflictsre-shell plugin middlewarere-shell plugin generate-docsRun re-shell plugin --help for the complete list of subcommands.
Policy packs and theme packs
Section titled “Policy packs and theme packs”Two sibling distribution channels use the same npm approach: policy packs
(re-shell workspace policy search|install, keyword reshell-policy-pack; see
workspace) and dashboard themes
(re-shell ui theme ..., keyword reshell-theme; see ui).
See also
Section titled “See also”- Architecture: Monorepo: where plugins register.
- JSON Contract: plugin error codes.