# rpk profile create

> 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 profile create
latest-redpanda-tag: v26.2.1
latest-console-tag: v3.10.0
latest-operator-version: v26.2.1
# EOL = End-of-Life (support lifecycle status)
page-is-nearing-eol: "false"
page-is-past-eol: "false"
page-eol-date: July 28, 2027
latest-connect-version: 4.104.0
docname: rpk/rpk-profile/rpk-profile-create
page-component-name: streaming
page-version: "26.2"
page-component-version: "26.2"
page-component-title: Streaming
page-relative-src-path: rpk/rpk-profile/rpk-profile-create.adoc
page-edit-url: https://github.com/redpanda-data/docs/edit/main/modules/reference/pages/rpk/rpk-profile/rpk-profile-create.adoc
description: Create a new <code>rpk</code> profile with connection settings for a Redpanda cluster. There are multiple ways to create a profile.
page-git-created-date: "2023-08-04"
page-git-modified-date: "2026-08-01"
support-status: supported
---

<!-- Source: https://docs.redpanda.com/streaming/current/reference/rpk/rpk-profile/rpk-profile-create.md -->

Create a new `rpk` profile with connection settings for a Redpanda cluster.

There are multiple ways to create a profile. A name must be provided if not using `--from-cloud` or `--from-rpk-container`.

-   You can use `--from-redpanda` to generate a new profile from an existing `redpanda.yaml` file. The special value `current` creates a profile from the current `redpanda.yaml` as it is loaded within `rpk`.

-   You can use `--from-rpk-container` to generate a profile from an existing cluster created using `rpk container start` command. The name is not needed when using this flag.

-   You can use `--from-profile` to generate a profile from an existing profile or from a profile in a `yaml` file. First, the filename is checked, then an existing profile name is checked. The special value `current` creates a new profile from the existing profile with any active environment variables or flags applied.

-   You can use `--from-cloud` to generate a profile from an existing cloud cluster ID. Note that you must be logged in with `rpk cloud login` first. The special value `prompt` will prompt to select a cloud cluster to create a profile for.

-   For serverless clusters that support both public and private networking, you will be prompted to select a network type unless you specify `--serverless-network`. To avoid prompts in automation, explicitly set `--serverless-network` to `public` or `private`.

-   You can use `--set key=value` to directly set fields. The key can either be the name of a `-X` flag or the path to the field in the profile’s YAML format. For example, using `--set tls.enabled=true` OR `--set kafka_api.tls.enabled=true` is equivalent.


The `--set` flag is always applied last and can be used to set additional fields in tandem with `--from-redpanda` or `--from-cloud`.

The `--set` flag supports autocompletion, suggesting the `-X` key format. If you begin writing a YAML path, the flag will suggest the rest of the path.

It is recommended to always use the `--description` flag; the description is printed in the output of [`rpk profile list`](https://docs.redpanda.com/streaming/current/reference/rpk/rpk-profile/rpk-profile-list/).

Once the command completes successfully, `rpk` switches to the newly created profile.

## [](#usage)Usage

```bash
rpk profile create <name> [flags]
```

## [](#flags)Flags

| Value | Type | Description |
| --- | --- | --- |
| -d, --description | string | Optional description of the profile. |
| --from-cloud | string | Create profile from Redpanda Cloud cluster. Automatically configures authentication and connection settings. |
| --from-profile | string | Create and switch to a new profile from an existing profile or from a profile in a yaml file. |
| --from-redpanda | string | Create and switch to a new profile from a redpanda.yaml file. |
| --from-rpk-container | bool | Create and switch to a new profile generated from a running cluster created with rpk container. |
| --serverless-network | string | Networking type for serverless clusters: public or private (if not specified, will prompt if both are available). |
| -s, --set | stringArray | Set a profile configuration field. Format: key=value. Common fields: brokers, admin_api.addresses, tls.enabled. |

## [](#global-flags)Global flags

| Value | Type | Description |
| --- | --- | --- |
| --config | string | Redpanda or rpk config file; default search paths are ~/.config/rpk/rpk.yaml, $PWD/redpanda.yaml, and /etc/redpanda/redpanda.yaml. |
| -X, --config-opt | stringArray | Override rpk configuration settings; -X help for detail or -X list for terser detail. |
| --ignore-profile | bool | Ignore rpk.yaml and redpanda.yaml; use default settings. |
| --profile | string | rpk profile to use. |
| -v, --verbose | bool | Enable verbose logging. |

## [](#suggested-reading)Suggested reading

-   [`rpk profile list`](https://docs.redpanda.com/streaming/current/reference/rpk/rpk-profile/rpk-profile-list/)