KiriPluginsPublish

Publish a plugin

In development

A plugin is a small container plus a kiri-plugin.toml that says where it shows in Kiri and what it may reach. Build one for your registry, your cloud or your team's tools, and share it through Kiri Registry. The tools below are coming with plugins, and details may change before then.

kiri plugin new my-pluginComing

Four steps

  1. 1

    Start one

    kiri plugin new my-plugin makes a folder with a kiri-plugin.toml, a Dockerfile and a starter that already shows a note in Kiri's status bar.

  2. 2

    Say what it does

    In kiri-plugin.toml, name the places it shows (a choice in Share or Deploy, a menu item, a settings pane) and every website and resource it may reach. Kiri shows that list to people before they install.

  3. 3

    Try it in your own Kiri

    kiri plugin dev builds the folder and runs it in your Kiri, reloading when you save. Its calls show in Plugins › Activity.

  4. 4

    Publish it

    kiri plugin publish pushes it as an OCI package to registry.runkiri.com/plugins/<name>, signed with your key. Anyone can then run kiri plugin add <name>.

A plugin, start to finish

kiri-plugin.toml
name    = "my-deploy"
label   = "My Deploy"
version = "0.1.0"

[run]
image = "registry.runkiri.com/plugins/my-deploy:0.1.0"

[places]
deploy = [{ name = "my-cloud", label = "My Cloud" }]

[needs]
projects = "read"
sites    = ["api.my-cloud.example"]

[[settings]]
key   = "api_token"
label = "API token"
type  = "secret"

What Kiri does for you

  • Draws your plugin in Kiri's own style, on macOS, Windows and Linux
  • Keeps tokens in its secret store and adds them to your calls, so your code never reads them
  • Builds and pushes images before your deploy step runs
  • Blocks any site or resource your toml did not name
  • Starts your plugin only when someone uses it, so Kiri stays fast

Want to build one before plugins ship? Tell us what you have in mind in GitHub Discussions.