kn plugins

The kn CLI supports the use of plugins. Plugins enable you to extend the functionality of your kn installation by adding custom commands and other shared commands that are not part of the core distribution of kn.

Warning

The plugins must be named with the prefix kn- to be detected by kn. For example, kn-func will be detected but func won’t be detected.

How to install a plugin

Manual installation

You can manually install all plugins. To manually install a plugin:

  1. Download the current release of the plugin from GitHub. See the list of Knative plugins you can download.
  2. Rename the file to remove the OS and architecture information. For example, rename kn-admin-darwin-amd64 to kn-admin.
  3. Make the plugin executable. For example, chmod +x kn-admin.
  4. Move the file to a directory on your PATH. For example, /usr/local/bin.

Homebrew

You can install some plugins can be installed using the Knative plugins Homebrew Tap. For example, you can install the kn-admin plugin by running brew install knative-sandbox/kn-plugins/admin.

List of Knative plugins

PluginDescriptionAvailable via Homebrew?
kn-plugin-adminkn plugin for managing a Kubernetes based Knative installationY
kn-plugin-diagkn plugin for diagnosing issues by exposing detailed information for different layers of Knative objectsN
kn-plugin-eventkn plugin for sending events to Knative sinksY
kn-plugin-funckn plugin for functionsY
kn-plugin-migrationkn plugin for migrating Knative Services from one cluster to anotherN
kn-plugin-operatorkn plugin for managing Knative with Knative OperatorN
kn-plugin-quickstartkn plugin for developers to install a quickstart Knative cluster for experimentation purposesY
kn-plugin-service-logkn plugin for showing the standard output of Knative ServicesN
kn-plugin-source-kafkakn plugin for managing Kafka event sourcesY
kn-plugin-source-kameletkn plugin for managing Kamelets and KameletBindingsY