---
title: rpk generate license
latest-redpanda-tag: v25.2.1
latest-console-tag: v3.14.0
latest-operator-version: v25.2.6
# EOL = End-of-Life (support lifecycle status)
page-is-nearing-eol: "false"
page-is-past-eol: "true"
page-eol-date: July 31, 2026
latest-connect-version: 4.118.0
docname: rpk/rpk-generate/rpk-generate-license
page-component-name: streaming
page-version: "25.2"
page-component-version: "25.2"
page-component-title: Streaming
page-relative-src-path: rpk/rpk-generate/rpk-generate-license.adoc
page-edit-url: https://github.com/redpanda-data/docs/edit/v/25.2/modules/reference/pages/rpk/rpk-generate/rpk-generate-license.adoc
description: rpk generate license
page-git-created-date: "2025-04-07"
page-git-modified-date: "2025-04-07"
page-generated-content: none
support-status: past end-of-life
---

# rpk generate license

> 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.2/reference/rpk/rpk-generate/rpk-generate-license.md -->

Generate a trial license.

Use this command to generate a license for a 30-day trial of Redpanda Enterprise Edition.

To get a permanent license, contact [Redpanda Sales](https://www.redpanda.com/contact).

The license is saved in your working directory or to the specified path, based on the `--path` flag.

Use the `--apply` flag to apply the license to your cluster.

## Usage

```bash
rpk generate license [flags]
```

## Flags

| **Value** | **Type** | **Description** |
| --- | --- | --- |
| `--apply` | - | Apply the generated license to your Redpanda cluster. |
| `--company` | string | Company name for trial license registration. |
| `--email` | string | Company email for trial license registration. |
| `-h, --help` | - | Help for the license subcommand. |
| `--last-name` | string | Last name for trial license registration. |
| `--name` | string | First name for trial license registration. |
| `--no-confirm` | - | Disable the confirmation prompt when overwriting and applying the generated license file. |
| `--path` | string | File path for generating the license. |
| `--config` | string | Redpanda or rpk configuration file. The 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. Use `-X help` for more details or `-X list` for terser detail. |
| `--profile` | string | The rpk profile to use. |
| `-v, --verbose` | - | Enable verbose logging. |