What is @oclif/plugin-plugins?
@oclif/plugin-plugins is a plugin for the Oclif CLI framework that provides commands for managing other plugins. It allows you to install, uninstall, and list plugins for your Oclif CLI application.
What are @oclif/plugin-plugins's main functionalities?
Install a plugin
This feature allows you to install a new plugin into your Oclif CLI application. The code sample demonstrates how to use the 'plugins:install' command to add a plugin named 'my-plugin'.
await this.config.runCommand('plugins:install', ['my-plugin'])
Uninstall a plugin
This feature allows you to uninstall an existing plugin from your Oclif CLI application. The code sample shows how to use the 'plugins:uninstall' command to remove a plugin named 'my-plugin'.
await this.config.runCommand('plugins:uninstall', ['my-plugin'])
List installed plugins
This feature allows you to list all the plugins currently installed in your Oclif CLI application. The code sample demonstrates how to use the 'plugins' command to display the list of installed plugins.
await this.config.runCommand('plugins', [])
Other packages similar to @oclif/plugin-plugins
yeoman-environment
Yeoman Environment handles the lifecycle and bootstrapping of generators in the Yeoman ecosystem. It provides functionalities to register, load, and run generators, which are similar to plugins in Oclif. However, it is more focused on scaffolding projects rather than managing CLI plugins.
commander
Commander is a popular Node.js library for building command-line interfaces. While it does not have built-in support for managing plugins, it provides a flexible API for defining commands and options, which can be extended to support plugin-like functionality.
inquirer
Inquirer is a library for creating interactive command-line prompts. It can be used in conjunction with other CLI frameworks to enhance user interaction. While it does not manage plugins directly, it can be integrated into a CLI application to provide a better user experience.
@oclif/plugin-plugins
plugins plugin for oclif
Usage
$ npm install -g @oclif/plugin-plugins
$ oclif-example COMMAND
running command...
$ oclif-example (-v|--version|version)
@oclif/plugin-plugins/1.0.5 linux-x64 node-v9.8.0
$ oclif-example --help [COMMAND]
USAGE
$ oclif-example COMMAND
...
Commands
plugins
list installed plugins
USAGE
$ oclif-example plugins
OPTIONS
--core show core plugins
EXAMPLE
$ oclif-example plugins
See code: src/commands/plugins.ts
plugins:install PLUGIN...
installs a plugin into the CLI
USAGE
$ oclif-example plugins:install PLUGIN...
ARGUMENTS
PLUGIN plugin to install
EXAMPLE
$ oclif-example plugins:install heroku-production-status
See code: src/commands/plugins/install.ts
plugins:uninstall PLUGIN...
removes a plugin from the CLI
USAGE
$ oclif-example plugins:uninstall PLUGIN...
ARGUMENTS
PLUGIN plugin to uninstall
See code: src/commands/plugins/uninstall.ts
plugins:update
update installed plugins
USAGE
$ oclif-example plugins:update
See code: src/commands/plugins/update.ts
plugins:install PLUGIN...
installs a plugin into the CLI
USAGE
$ oclif-example plugins:install PLUGIN...
ARGUMENTS
PLUGIN plugin to install
EXAMPLE
$ oclif-example plugins:install heroku-production-status
See code: src/commands/plugins/install.ts
plugins:uninstall PLUGIN...
removes a plugin from the CLI
USAGE
$ oclif-example plugins:uninstall PLUGIN...
ARGUMENTS
PLUGIN plugin to uninstall
See code: src/commands/plugins/uninstall.ts
plugins:update
update installed plugins
USAGE
$ oclif-example plugins:update
See code: src/commands/plugins/update.ts