You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/get-started/pages/config-rpk-profile.adoc
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,16 +64,18 @@ rpk profile use <name-of-profile-to-use>
64
64
65
65
=== Set or edit configuration values
66
66
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
+
67
72
You can configure settings that apply to all profiles. To set these `globals`:
68
73
69
74
* 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
70
75
of `rpk.yaml`.
71
76
* 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.
72
77
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`].
Copy file name to clipboardExpand all lines: modules/get-started/pages/intro-to-rpk.adoc
+6-11Lines changed: 6 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,28 +20,21 @@ ifndef::env-cloud[]
20
20
* xref:get-started:rpk-quickstart.adoc[]
21
21
endif::[]
22
22
23
-
== Specify command properties
23
+
== Specify configuration properties
24
24
25
25
You can specify `rpk` command properties in the following ways:
26
26
27
+
* Create an xref:get-started:config-rpk-profile.adoc[`rpk profile`].
27
28
* Specify the appropriate flag on the command line.
28
29
* Define the corresponding environment variables.
29
30
+
30
31
Environment variable settings only last for the duration of a shell session.
31
32
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
-
40
33
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.
41
34
42
35
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.
43
36
44
-
== Common configuration properties
37
+
=== Common configuration properties
45
38
46
39
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:
47
40
@@ -64,7 +57,9 @@ Or, get a detailed description about each option with `-X help`:
64
57
rpk -X help
65
58
----
66
59
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`].
0 commit comments