A plugin for Magnolia CLI to generate a basic structure for a new CLI plugin
A plugin for Magnolia CLI to generate a basic structure for a new CLI plugin
Within the Magnolia CLI plugin system, this plugin is pre-installed and ready to be used.
| Short | Long | Description |
|-------------|------------------|-----------------------------------------|
| -n | --name | set the name of the plugin |
| -c | --class | set the name of the plugin's main class |
| -v | --version | output the version number |
| -h | --help | display help for command |
bash
mkdir testPluginFolder
cd testPluginFolder
npx @magnolia/cli@latest generate-plugin --name "cli-test-plugin" --class "TestPlugin"
`Upon executing the command, the following structure will be created:
`
testPluginFolder/
└── .npmignore
└── cli-test-plugin.ts
└── index.ts
└── package.json
└── package-lock.json
└── README.md
└── tsconfig.json
└── node_modules/
└── tests/
``