Docs: Replace toolkit command to scaffold plugins with create-plugin (#58462)

* Replace command to scaffold plugin with create-plugin

* Change link text
This commit is contained in:
Esteban Beltran 2022-11-09 08:15:23 -06:00 committed by GitHub
parent fa5a304de8
commit cced175ccf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,15 +13,15 @@ For more information on the types of plugins you can build, refer to the [Plugin
## Get started
The easiest way to start developing Grafana plugins is to use the [Grafana Toolkit](https://www.npmjs.com/package/@grafana/toolkit).
The easiest way to start developing Grafana plugins is to use the Grafana [create-plugin tool](https://www.npmjs.com/package/@grafana/create-plugin).
Open the terminal, and run the following command in your [plugin directory]({{< relref "../../setup-grafana/configure-grafana/#plugins" >}}):
```bash
npx @grafana/toolkit plugin:create my-grafana-plugin
npx @grafana/create-plugin
```
> **Note:** If running NPM 7+ the `npx` commands mentioned in this article may hang. The workaround is to use `npx --legacy-peer-deps <command to run>`.
Follow the questions and you will have a starter plugin ready to develop.
If you want a more guided introduction to plugin development, check out our tutorials: