- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
plugin Commands - Medusa CLI Reference
Commands starting with plugin:
perform actions related to plugin development.
plugin:publish#
Publish a plugin into the local packages registry. The command uses Yalc under the hood to publish the plugin to a local package registry. You can then install the plugin in a local Medusa project using the plugin:add command.
plugin:add#
Install the specified plugins from the local package registry into a local Medusa application. Plugins can be added to the local package registry using the plugin:publish command.
Arguments#
Argument | Description | Required |
---|---|---|
| The names of one or more plugins to install from the local package registry. A plugin's name is as specified in its | Yes |
plugin:develop#
Start a development server for a plugin. The command will watch for changes in the plugin's source code and automatically re-publish the changes into the local package registry.
plugin:db:generate#
Generate migrations for all modules in a plugin.
plugin:build#
Build a plugin before publishing it to NPM. The command will compile an output in the .medusa/server
directory.