Zip Grafana plugins for distribution.
@grafana/zip-plugin
works on macOS, Windows and Linux.
If something doesn’t work, please file an issue.
If you have questions or need help, please ask in GitHub Discussions.
Packaging a plugin in a zip file is the recommended way of distributing Grafana plugins.
Before packaging the plugin, you should build and sign it with your normal build tool and @grafana/sign-plugin, respectively.
If your plugin puts build output in /dist, you can just do:
npx @grafana/zip-plugin@latest
If the plugin distribution directory differs from the default dist
, specify the path to use with the --distDir
flag.
npx @grafana/zip-plugin@latest --distDir path/to/directory
Alterntives:
npx @grafana/zip-plugin@latest
yarn
(> 2.x)
yarn dlx @grafana/zip-plugin@latest
We are always grateful for contribution! See the CONTRIBUTING.md for more information.