Skip to content

Commit 3fcba0c

Browse files
r-vasquezmicheleRP
authored andcommitted
rpk: update profile docs (#1015)
Co-authored-by: Michele Cyran <[email protected]>
1 parent e02f4ad commit 3fcba0c

File tree

2 files changed

+12
-15
lines changed

2 files changed

+12
-15
lines changed

modules/get-started/pages/config-rpk-profile.adoc

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,18 @@ rpk profile use <name-of-profile-to-use>
6464

6565
=== Set or edit configuration values
6666

67+
You can customize settings for a single profile. To set a profile's configuration:
68+
69+
* Use xref:reference:rpk/rpk-profile/rpk-profile-set.adoc[`rpk profile set`] to set `key=value` pairs of configuration options to write to the profile's section of `rpk.yaml`.
70+
* Use xref:reference:rpk/rpk-profile/rpk-profile-edit.adoc[`rpk profile edit`] to edit the profile's section of the `rpk.yaml` file in your default editor.
71+
6772
You can configure settings that apply to all profiles. To set these `globals`:
6873

6974
* Use xref:reference:rpk/rpk-profile/rpk-profile-set-globals.adoc[`rpk profile set-globals`] to set `key=value` pairs to write to the globals section
7075
of `rpk.yaml`.
7176
* Use xref:reference:rpk/rpk-profile/rpk-profile-edit-globals.adoc[`rpk profile edit-globals`] to edit the globals section of the `rpk.yaml` file in your default editor.
7277

73-
You can customize settings for a single profile. To set a profile's configuration:
74-
75-
* Use xref:reference:rpk/rpk-profile/rpk-profile-set.adoc[`rpk profile set`] to set `key=value` pairs of configuration options to write to the profile's section of `rpk.yaml`.
76-
* Use xref:reference:rpk/rpk-profile/rpk-profile-edit.adoc[`rpk profile edit`] to edit the profile's section of the `rpk.yaml` file in your default editor.
78+
TIP: For a list of all the available properties that can be set in your profile, see xref:reference:rpk/rpk-x-options.adoc[`rpk -X options`].
7779

7880
==== Customize command prompt per profile
7981

modules/get-started/pages/intro-to-rpk.adoc

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,28 +20,21 @@ ifndef::env-cloud[]
2020
* xref:get-started:rpk-quickstart.adoc[]
2121
endif::[]
2222
23-
== Specify command properties
23+
== Specify configuration properties
2424

2525
You can specify `rpk` command properties in the following ways:
2626

27+
* Create an xref:get-started:config-rpk-profile.adoc[`rpk profile`].
2728
* Specify the appropriate flag on the command line.
2829
* Define the corresponding environment variables.
2930
+
3031
Environment variable settings only last for the duration of a shell session.
3132

32-
* Edit the configuration file settings in the `rpk` section of the `redpanda.yaml` file.
33-
+
34-
Configuration file property settings stay the same for each shell session.
35-
36-
* Edit the configuration file settings in the `rpk.yaml` file.
37-
+
38-
Configuration file property settings stay the same for each shell session.
39-
4033
Command line flag settings take precedence over the corresponding environment variables, and environment variables take precedence over configuration file settings. If a required flag is not specified on the command line, Redpanda searches the environment variable. If the environment variable is not set, the value in the `rpk.yaml` configuration file is used, if that file is available, otherwise the value in the `redpanda.yaml` configuration file is used.
4134

4235
TIP: If you specify `rpk` command properties in the configuration files or as environment variables, you don't need to specify them again on the command line.
4336

44-
== Common configuration properties
37+
=== Common configuration properties
4538

4639
Every `rpk` command supports a set of common configuration properties. You can set one or more options in an `rpk` command by using the `-X` flag:
4740

@@ -64,7 +57,9 @@ Or, get a detailed description about each option with `-X help`:
6457
rpk -X help
6558
----
6659

67-
Some of the common configuration properties apply across all `rpk` commands as defaults. These default properties have keys with names starting with `defaults`, and they're viewable in `rpk -X list` and `rpk -X help`. For more details, see xref:reference:rpk/rpk-x-options.adoc[`rpk -X options`].
60+
Every `-X` option can be translated into an environment variable by prefixing it with `RPK_` and replacing periods (`.`) with underscores (`_`). For example, the flag `tls.enabled` has the equivalent environment variable `RPK_TLS_ENABLED`.
61+
62+
Some of the common configuration properties apply across all `rpk` commands as defaults. These default properties have keys with names starting with `globals`, and they're viewable in `rpk -X list` and `rpk -X help`. For more details, see xref:reference:rpk/rpk-x-options.adoc[`rpk -X options`].
6863

6964
== Next steps
7065

0 commit comments

Comments
 (0)