---
title: rpk plugin
latest-redpanda-tag: v25.3.11
latest-console-tag: v3.14.0
latest-operator-version: v25.3.12
# EOL = End-of-Life (support lifecycle status)
page-is-nearing-eol: "true"
page-is-past-eol: "false"
page-eol-date: November 19, 2026
latest-connect-version: 4.118.0
docname: rpk/rpk-plugin/rpk-plugin
page-component-name: streaming
page-version: "25.3"
page-component-version: "25.3"
page-component-title: Streaming
page-relative-src-path: rpk/rpk-plugin/rpk-plugin.adoc
page-edit-url: https://github.com/redpanda-data/docs/edit/v/25.3/modules/reference/pages/rpk/rpk-plugin/rpk-plugin.adoc
description: These commands let you list, download, update, and remove <code>rpk</code> plugins.
page-git-created-date: "2023-05-17"
page-git-modified-date: "2024-07-24"
page-generated-content: none
support-status: nearing end-of-life
---

# rpk plugin

> For the complete documentation index, see [llms.txt](https://docs.redpanda.com/llms.txt). Component-specific: [streaming-full.txt](https://docs.redpanda.com/streaming-full.txt)

<!-- Source: https://docs.redpanda.com/streaming/25.3/reference/rpk/rpk-plugin/rpk-plugin.md -->

List, download, update, and remove `rpk` plugins. Plugins augment `rpk` with new commands.

For a plugin to be used, it must be in `$HOME/.local/bin` or somewhere discoverable by `rpk` in your `$PATH`. All plugins follow a defined naming scheme:

```bash
.rpk-<name>
.rpk.ac-<name>
```

All plugins are prefixed with either `.rpk-` or `.rpk.ac-.` When `rpk` starts up, it searches all directories in your `$PATH` for any executable binary that begins with either of those prefixes. For any binary it finds, `rpk` adds a command for that name to the `rpk` command space itself.

No plugin name can shadow an existing `rpk` command, and only one plugin can exist under a given name at once. Plugins are added to the `rpk` command space on a first-seen basis. If you have two plugins `rpk-foo`, and the second is discovered later on in the `$PATH` directories, then only the first will be used. The second will be ignored.

Plugins that have an `.rpk.ac-` prefix indicate that they support the `--help-autocomplete` flag. If `rpk` sees this, `rpk` will exec the plugin with that flag when `rpk` starts up, and the plugin will return all commands it supports as well as short and long help test for each command. `rpk` uses this return to build a shadow command space within `rpk` itself so that it looks as if the plugin exists within `rpk`. This is particularly useful if you enable autocompletion.

The expected return for plugins from `--help-autocomplete` is an array of the following:

```c
type pluginHelp struct {
Path string `json:"path,omitempty"`
Short string `json:"short,omitempty"`
Long string `json:"long,omitempty"`
Example string `json:"example,omitempty"`
Args []string `json:"args,omitempty"`
}
```

where `path` is an underscore delimited argument path to a command. For example, `foo_bar_baz` corresponds to the command `rpk foo bar baz`.

## Usage

```bash
rpk plugin [command]
```

## Flags

| **Value** | **Type** | **Description** |
| --- | --- | --- |
| `-h, --help` | - | Help for plugin. |
| `--config` | string | Redpanda or `rpk` config file; default search paths are `/var/lib/redpanda/.config/rpk/rpk.yaml`, `$PWD/redpanda.yaml`, and `/etc/redpanda/redpanda.yaml`. |
| `-X, --config-opt` | stringArray | Override `rpk` configuration settings. See [`rpk -X`](https://docs.redpanda.com/streaming/25.3/reference/rpk/rpk-x-options/) or execute `rpk -X help` for inline detail or `rpk -X list` for terser detail. |
| `--profile` | string | Profile to use. See [`rpk profile`](https://docs.redpanda.com/streaming/25.3/reference/rpk/rpk-profile/rpk-profile/) for more details. |
| `-v, --verbose` | - | Enable verbose logging. |