Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@strapi/sdk-plugin

strapi89.9kSEE LICENSE IN LICENSE5.3.2

Simple tools for developing Strapi plugins

strapi, plugin, build, tools

readme

sdk-plugin

Everything you need to develop an awesome Strapi plugin


Chat on Discord


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-plugin

That 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 (default false).
  • --sourcemap – generates sourcemaps for the output (default true).
yarn run build

watch

Watch & compile your strapi plugin for local development.

yarn run watch

Recompiles your plugin automatically on changes and runs yalc push --publish

yarn run watch:link

verify

Verifies the output of your plugin before publishing it

yarn run verify

changelog

@strapi/sdk-plugin

5.3.2

Patch Changes

5.3.1

Patch Changes

5.3.0

Minor Changes

5.2.8

Patch Changes

5.2.7

Patch Changes

5.2.6

Patch Changes

5.2.5

Patch Changes

5.2.2

Patch Changes

5.2.1

Patch Changes

5.2.0

Minor Changes

Patch Changes

5.1.1

Patch Changes

5.1.0

Minor Changes

Patch Changes

5.0.2

Patch Changes

5.0.1

Patch Changes

5.0.0

Patch Changes

5.0.0-beta.8

Patch Changes

5.0.0-beta.7

Patch Changes