The Build a plugin tutorial is currently using
npx @grafana/toolkit plugin:create my-grafana-plugin
And this package
@grafana/toolkit is bumping version all the time.
It can create 3 template plugins Panel Plugin, Datasource Plugin, Backend Datasource Plugin.
However, after generating these plugins, in their README.md, it says
This repository is deprecated.
A more up-to-date version of examples is available here: GitHub - grafana/grafana-plugin-examples
If this above repo is the recommended way now. Maybe worth updating the Build a plugin
I further found inside of grafana-plugin-examples README, it says
All of the examples use
grafana/create-plugin instead of
Inside of grafana/create-plugin README, I further found the new CLI way to create plugin:
yarn create @grafana/plugin
yarn (> 2.x)
yarn dlx @grafana/create-plugin
npm init @grafana/plugin
So maybe should put these new CLI commands in the tutorial?
I feel your pain! I am building a plugin this morning and it is torturous to follow this antiquated doco
Best way is to alert people in this forum that work @ grafana or post it go githug
or modify it yourself by forking?
I created more issue tickets I found in the GitHub too. For sure if I have time!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.