Simple tools for developing Strapi plugins
npm install @strapi/sdk-pluginsdk-plugin is a set of command line utilities for developing a Strapi plugin
If you're setting up a brand new plugin we recommend you use the init command to get started:
``sh`
npx @strapi/sdk-plugin@latest init my-plugin
That will create a directory with all your plugin project files.
Once your project has been installed, several commands are available to you.
All of the following comands have the following options available:
-- -d, --debug – Enable debugging mode with verbose logs (default: false)--silent
-- – Don't log anything (default: false)-h, --help
-- – Display help for command
Creates a new plugin at the given path.
Builds your current package based on the configuration in your package.json.
- --minify – minifies the output (default false).--sourcemap
- – generates sourcemaps for the output (default true).
`sh`
yarn run build
Watch & compile your strapi plugin for local development.
`sh`
yarn run watch
Recompiles your plugin automatically on changes and runs yalc push --publish
`sh`
yarn run watch:link
Verifies the output of your plugin before publishing it
`sh``
yarn run verify