• Version 2.0.2
  • Published
  • 401 kB
  • 5 dependencies
  • MIT license


npm i @oclif/plugin-legacy
yarn add @oclif/plugin-legacy
pnpm add @oclif/plugin-legacy


converts older style plugins to be compatible with oclif



class PluginLegacy

class PluginLegacy extends Plugin implements Interfaces.Plugin {}


    constructor(config: Interfaces.Config, base: Interfaces.Plugin);

      property base

      base: Interfaces.Plugin;

        property commandIDs

        readonly commandIDs: string[];

          property config

          config: Interfaces.Config;

            property moduleCommands

            readonly moduleCommands: Command.Class[];

              property moduleTopics

              readonly moduleTopics: Interfaces.Topic[];

                property topics

                readonly topics: Interfaces.Topic[];

                  method findCommand

                  findCommand: {
                  (id: string, opts: { must: true }): Promise<Command.Class>;
                  (id: string, opts?: { must?: boolean }): Promise<any>;

                    Package Files (1)

                    Dependencies (5)

                    Dev Dependencies (29)

                    Peer Dependencies (1)


                    To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                    You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@oclif/plugin-legacy.

                    • Markdown
                    • HTML
                      <a href="https://www.jsdocs.io/package/@oclif/plugin-legacy"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>