@strapi/sdk-plugin v5.3.2
sdk-plugin is a set of command line utilities for developing a Strapi plugin
Getting Started
If you're setting up a brand new plugin we recommend you use the init command to get started:
npx @strapi/sdk-plugin@latest init my-pluginThat will create a directory with all your plugin project files.
Once your project has been installed, several commands are available to you.
Commands
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
init [path]
Creates a new plugin at the given path.
build
Builds your current package based on the configuration in your package.json.
--minify– minifies the output (defaultfalse).--sourcemap– generates sourcemaps for the output (defaulttrue).
yarn run buildwatch
Watch & compile your strapi plugin for local development.
yarn run watchwatch:link
Recompiles your plugin automatically on changes and runs yalc push --publish
yarn run watch:linkverify
Verifies the output of your plugin before publishing it
yarn run verify8 months ago
9 months ago
10 months ago
9 months ago
10 months ago
11 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago