mirror of
https://github.com/grafana/grafana.git
synced 2025-02-14 01:23:32 -06:00
Docs: Pinning to latest for grafana plugin tools (#64140)
Pinning to latest for grafana plugin tools
This commit is contained in:
parent
3468804ff5
commit
92ee03db78
@ -17,7 +17,7 @@ The easiest way to start developing Grafana plugins is to use the Grafana [creat
|
||||
Open the terminal, and run the following command in your [plugin directory]({{< relref "../../setup-grafana/configure-grafana/#plugins" >}}):
|
||||
|
||||
```bash
|
||||
npx @grafana/create-plugin
|
||||
npx @grafana/create-plugin@latest
|
||||
```
|
||||
|
||||
Follow the questions and you will have a starter plugin ready to develop.
|
||||
|
@ -36,7 +36,7 @@ Public plugins need to be reviewed by the Grafana team before you can sign them.
|
||||
|
||||
```bash
|
||||
export GRAFANA_API_KEY=<YOUR_API_KEY>
|
||||
npx @grafana/sign-plugin
|
||||
npx @grafana/sign-plugin@latest
|
||||
```
|
||||
|
||||
## Sign a private plugin
|
||||
@ -47,7 +47,7 @@ Public plugins need to be reviewed by the Grafana team before you can sign them.
|
||||
|
||||
```bash
|
||||
export GRAFANA_API_KEY=<YOUR_API_KEY>
|
||||
npx @grafana/sign-plugin --rootUrls https://example.com/grafana
|
||||
npx @grafana/sign-plugin@latest --rootUrls https://example.com/grafana
|
||||
```
|
||||
|
||||
## Plugin signature levels
|
||||
|
@ -9,7 +9,7 @@ Grafana [create-plugin tool](https://www.npmjs.com/package/@grafana/create-plugi
|
||||
1. In the plugin directory, create a plugin from template using create-plugin. Select `datasource` when asked the kind of plugin:
|
||||
|
||||
```
|
||||
npx @grafana/create-plugin
|
||||
npx @grafana/create-plugin@latest
|
||||
```
|
||||
|
||||
1. Change directory to your newly created plugin:
|
||||
|
@ -46,7 +46,7 @@ To build a backend for your data source plugin, Grafana requires a binary that i
|
||||
The easiest way to get started is to use the Grafana [create-plugin tool](https://www.npmjs.com/package/@grafana/create-plugin). Navigate to the plugin folder that you configured in step 1 and type:
|
||||
|
||||
```
|
||||
npx @grafana/create-plugin
|
||||
npx @grafana/create-plugin@latest
|
||||
```
|
||||
|
||||
Follow the steps and select **datasource** as your plugin type and answer **yes** when prompted to create a backend for your plugin.
|
||||
|
@ -45,7 +45,7 @@ To build a backend for your data source plugin, Grafana requires a binary that i
|
||||
The easiest way to get started is to use the Grafana [create-plugin tool](https://www.npmjs.com/package/@grafana/create-plugin). Navigate to the plugin folder that you configured in step 1 and type:
|
||||
|
||||
```
|
||||
npx @grafana/create-plugin
|
||||
npx @grafana/create-plugin@latest
|
||||
```
|
||||
|
||||
Follow the steps and select **datasource** as your plugin type and answer **yes** when prompted to create a backend for your plugin.
|
||||
|
@ -162,7 +162,7 @@ In this step, you'll add a data source to your app plugin. You can add panel plu
|
||||
```bash
|
||||
mkdir tmp
|
||||
cd tmp
|
||||
npx @grafana/create-plugin
|
||||
npx @grafana/create-plugin@latest
|
||||
```
|
||||
|
||||
1. Move the `src` directory in the data source plugin to `src/datasources`, and rename it to `my-datasource`.
|
||||
|
Loading…
Reference in New Issue
Block a user