Skip to main content
Version: 22.3

Introduction to rpk

Redpanda Keeper (rpk) is a single binary application that provides a way to interact with your Redpanda clusters from the command line. You can install the rpk binary as a standalone tool. For example, you can use rpk to do the following:

  • Interact with a Redpanda cluster.
  • Run the autotuner tool to optimize the Linux kernel to give you the best performance.
note

Redpanda includes rpk as part of the installation. Follow this guide only if you want to install rpk as a standalone tool.

To install the rpk binary as a standalone application, follow the instructions for your operating system.

Install rpk on Linux

  1. Download the rpk archive for Linux:

    curl -LO https://github.com/redpanda-data/redpanda/releases/latest/download/rpk-linux-amd64.zip
  2. Ensure that you have the folder ~/.local/bin:

    mkdir -p ~/.local/bin
  3. Add it to your $PATH:

    export PATH="~/.local/bin:$PATH"
  4. Unzip the rpk files to your ~/.local/bin/ directory:

    unzip rpk-linux-amd64.zip -d ~/.local/bin/
  5. Run rpk version to display the rpk binary version:

    rpk version
    Example output
    v22.3.11 (rev 9eefb907c)

Install rpk on macOS

  1. If you don't have Homebrew installed, install it.

  2. Install rpk:

    brew install redpanda-data/tap/redpanda
  3. Run rpk version to display the rpk binary version:

    rpk version
    Example output
    v22.3.11 (rev 9eefb907c)

Next steps

For a list of all rpk commands and their syntax, see the rpk documentation.

What do you like about this doc?




Optional: Share your email address if we can contact you about your feedback.

Let us know what we do well: