Managing Plugins

Steampipe provides an integrated, standardized SQL interface for querying various services, but it relies on plugins to define and implement tables for those services. This approach decouples the core Steampipe code from the provider-specific implementations, providing flexibility and extensibility.

Installing Plugins

Steampipe plugins are packaged as Open Container Images (OCI) and stored in the Steampipe Hub registry. This registry contains a curated set of plugins developed by and/or vetted by Turbot. To install the latest version of a standard plugin, you can simply install it by name.

For example, to install the latest aws plugin:

$ steampipe plugin install aws

This will download the latest aws plugin (the one with the latest tag) from the hub registry, and will set up a default connection named aws.

Installing a Specific Version

To install a specific version, simply specify the version tag after the plugin name, separated by @ or :

For example, to install the 0.0.1 version of the aws plugin:

$ steampipe plugin install aws@0.0.1

This will download the aws plugin version 0.0.1 (the one with the 0.0.1 tag) from the hub registry. Note that installing a specific version will NOT create a connection for you - you must create/edit a connection configuration file in order to use the plugin.

Installing from a Release Stream

Plugins should follow semantic versioning guidelines, and they are tagged in the registry with a version tag that specifies their exact version (e.g. 1.0.1).

In addition, release stream tags are used to allow you to limit updates to specific major or minor release families.

The intent of the version tag is that is immutable - while it is technically possible to move the version tag to a different image version, this should not be done. Unlike the version tag, the release stream tags are intentionally moved as new versions are released. For example steampipe plugin install aws@1.0 will install the latest version in the 1.0 minor release stream. If versions 1.0.0 and 1.0.1 both exist, then aws@1.0 will point to 1.0.1. When 1.0.2 is added to the registry, the 1.0 tag will be moved to point to 1.0.2.

Installing a release stream tag allows you to "lock" to a specific major or minor release. If you install aws@1, for example, steampipe plugin update (and auto-updates) will only update to the latest 1.x version - you will not be updated to version 2.x.

Because these are just tags, the install command uses the same imagename@tag syntax:

  • To install the latest version in major release stream:
$ steampipe plugin install aws@2
  • To install the latest version in minor release stream:
$ steampipe plugin install aws@2.1

Note that installing a tagged release will NOT create a connection for you - you must create/edit a connection configuration file in order to use the plugin.

Installing from another registry

Steampipe plugins are packaged in OCI format and can be hosted and installed from any artifact repository or container registry that supports OCI V2 images. To install a plugin from a repository, specify the full path in the install command:

$ steampipe plugin install

Installing from a File

A plugin binary can be installed manually, and this is often convenient when developing the plugin. Steampipe will attempt to load any plugin that is referred to in a connection configuration:

  • The plugin binary file must have a .plugin extension
  • The plugin binary must reside in a subdirectory of the ~/.steampipe/plugins/ directory and must be the ONLY .plugin file in that subdirectory
  • The connection must specify the path (relative to ~/.steampipe/plugins/) to the plugin in the plugin argument

For example, consider a myplugin plugin that you have developed. To install it:

  • Create a subdirectory .steampipe/plugins/local/myplugin
  • Name your plugin binary myplugin.plugin, and copy it to .steampipe/plugins/local/myplugin/myplugin.plugin
  • Create a ~/.steampipe/config/myplugin.spc config file containing a connection definition that points to your plugin:
    connection "myplugin" {
    plugin = "local/myplugin"

Installing Missing Plugins

You can install all missing plugins that are referenced in your configuration files:

$ steampipe plugin install

Running steampipe plugin install with no arguments will cause Steampipe to read all connection and plugin blocks in all .spc files in the ~/.steampipe/config directory and install any that are referenced but are not installed. Note that when doing so, any default .spc file that does not exist in the configuration will also be copied. You may pass the --skip-config flag if you don't want to copy these files:

$ steampipe plugin install --skip-config

Viewing Installed Plugins

You can list the installed plugins with the steampipe plugin list command:

$ steampipe plugin list
ā”‚ ā”‚ 0.4.0 ā”‚ aws,aws_account_aaa,aws_account_aab ā”‚
ā”‚ ā”‚ 0.1.0 ā”‚ digitalocean ā”‚
ā”‚ ā”‚ 0.0.6 ā”‚ gcp_project_a,gcp,gcp_project_b ā”‚
ā”‚ ā”‚ 0.0.5 ā”‚ github ā”‚
ā”‚ ā”‚ 0.0.2 ā”‚ steampipe ā”‚

Updating Plugins

To update a plugin to the latest version for a given stream, you can use the steampipe plugin update command:

steampipe plugin update plugin_name[@stream]

The syntax and semantics are identical to the install command - steampipe plugin update aws will get the latest aws plugin, steampipe plugin update aws@1 will get the latest in the 1.x major stream, etc.

To update all plugins to the latest in the installed stream:

steampipe plugin update --all

Removing Plugins

You can uninstall a plugin with the steampipe plugin remove command:

steampipe plugin uninstall [plugin]

Note that you cannot remove a plugin if there are active connections using it. You must remove any connections that use the plugin first:

$ steampipe plugin list
| | 0.0.5 | aws |
| | 0.0.1 | steampipe |
$ steampipe plugin remove steampipe
Error: Failed to remove plugin 'steampipe' - there are active connections using it: 'steampipe'
$ rm ~/.steampipe/config/steampipe.spc
$ steampipe plugin remove steampipe
Removed plugin steampipe
$ steampipe plugin list
| | 0.0.5 | aws |