-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[cli/plugins] plugin installation format requirement and errors #74909
Comments
Pinging @elastic/kibana-operations (Team:Operations) |
Hey @bababrownbear, I'm working on updating the kibana-helpers tooling for building Kibana Platform plugins right now. Keep an eye on #66687 for updates. The plugin zip you create should more closely resemble the plugin you have in When you create the zip of the |
@spalger Thank you! Still having troubles though.
|
Ah, didn't realize you are using tools from an installation. The changes to look for To use then in development you need to use |
Thank you for the insight. Is there a way to get my plugin to be installable on 7.8.0 then? Or I can only use this in development? |
For 7.8 you need to use the legacy plugin format. That means using a package.json file and a kibana.json file at the same time. The package.json file doesn't need to include much, but I think it does need to have a "name", and "version" (which needs to match the Kibana version you're targeting). Kibana 7.8 should identify that your plugin is using the Kibana Platform because it has a kibana.json file. Additionally, you might find it easier to just extract your plugin into the If just adding a package.json file to your plugin doesn't work you might want to try generating a new plugin in 7.7 or 7.8 and then adding your specific plugin code to the generated plugin. |
When installing a Kibana plugin that was created by zipping a directory in the root
plugins/
directory, the CLI produces a somewhat cryptic error:"No kibana plugins found in archive"
This is because we identify a plugin by finding files which match the pattern:
kibana/*/kibana.json
. We should probably improve the error message and maybe remove the restriction that they exist in akibana
directory, but we should consult with other teams to see how they structure their plugins as we may be breaking cross-compatibility if we make any changes here.The text was updated successfully, but these errors were encountered: