Skip to content

Commit b6b4b4b

Browse files
Backport of docs: clarify consumers of environment variables for CLI into release/1.9.x (#26466)
Co-authored-by: Tim Gross <[email protected]>
1 parent eaa1d42 commit b6b4b4b

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

website/content/commands/index.mdx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ the [`tls` block in agent configuration] for details.
5959
### Environment variables
6060

6161
Nomad can use environment variables to configure command-line tool options. You
62-
may override these environment variables with individual flags.
62+
may override these environment variables with individual flags. Except where
63+
noted, these variables influence the behavior of the Nomad CLI and should not be
64+
set for Nomad agents.
6365

6466
#### Connection environment variables
6567

@@ -87,10 +89,10 @@ may override these environment variables with individual flags.
8789

8890
- `NOMAD_CLI_NO_COLOR` - Disables colored command output.
8991

90-
#### Mutual TLS (mTLS) environment variables
91-
9292
- `NOMAD_CLI_SHOW_HINTS` - Enables ui-hints in common CLI command output.
9393

94+
#### Mutual TLS (mTLS) environment variables
95+
9496
- `NOMAD_CLIENT_CERT` - Path to a PEM encoded client certificate for TLS
9597
authentication to the Nomad server. Must also specify `NOMAD_CLIENT_KEY`.
9698

@@ -112,6 +114,10 @@ may override these environment variables with individual flags.
112114

113115
#### Nomad Enterprise license environment variables
114116

117+
These environment variables influence the Nomad Enterprise license
118+
configuration. These values are only used for Nomad Enterprise agents, not the
119+
Nomad CLI.
120+
115121
- `NOMAD_LICENSE_PATH` - An absolute path to a Nomad Enterprise license file,
116122
for example `/etc/nomad.d/license.hclic`.
117123

0 commit comments

Comments
 (0)