# 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)

---
title: rpk generate license
latest-redpanda-tag: v25.1.1
latest-console-tag: v3.7.3
latest-operator-version: v26.1.4
# EOL = End-of-Life (support lifecycle status)
page-is-nearing-eol: "false"
page-is-past-eol: "true"
page-eol-date: April 7, 2026
latest-connect-version: 4.93.0
docname: rpk/rpk-generate/rpk-generate-license
page-component-name: streaming
page-version: "25.1"
page-component-version: "25.1"
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.1/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"
support-status: past end-of-life
---

<!-- Source: https://docs.redpanda.com/streaming/25.1/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)Usage

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

## [](#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. |