Docs: Updating sign plugin docs (#59322)

Updating sign plugin docs
This commit is contained in:
Timur Olzhabayev 2022-11-24 19:00:33 +01:00 committed by GitHub
parent 45d3125919
commit 5a3f0e8696
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,11 +40,9 @@ Public plugins need to be reviewed by the Grafana team before you can sign them.
```bash ```bash
export GRAFANA_API_KEY=<YOUR_API_KEY> export GRAFANA_API_KEY=<YOUR_API_KEY>
npx @grafana/sign-plugin plugin:sign npx @grafana/sign-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>`.
## Sign a private plugin ## Sign a private plugin
1. In your plugin directory, sign the plugin with the API key you just created. Grafana Sign Plugin creates a [MANIFEST.txt](#plugin-manifest) file in the `dist` directory of your plugin. 1. In your plugin directory, sign the plugin with the API key you just created. Grafana Sign Plugin creates a [MANIFEST.txt](#plugin-manifest) file in the `dist` directory of your plugin.
@ -53,7 +51,7 @@ Public plugins need to be reviewed by the Grafana team before you can sign them.
```bash ```bash
export GRAFANA_API_KEY=<YOUR_API_KEY> export GRAFANA_API_KEY=<YOUR_API_KEY>
npx @grafana/sign-plugin plugin:sign --rootUrls https://example.com/grafana npx @grafana/sign-plugin --rootUrls https://example.com/grafana
``` ```
## Plugin signature levels ## Plugin signature levels