diff --git a/content/v2.0/reference/cli/influx/secret/update.md b/content/v2.0/reference/cli/influx/secret/update.md index cf6f938be..7f9e6cf43 100644 --- a/content/v2.0/reference/cli/influx/secret/update.md +++ b/content/v2.0/reference/cli/influx/secret/update.md @@ -11,7 +11,14 @@ v2.0/tags: [secrets] The `influx secret update` command adds and updates secrets. Provide the secret key with the `-k` or `--key` flag. -When prompted, enter and confirm the secret value. +You may also provide the secret value with the `-v` or `--value` flag. +If you do not provide the secret value with the `-v` or `--value` flag, +enter the value when prompted. + +{{% warn %}} +Providing a secret value with the `-v` or `--value` flag may expose the secret +in your command history. +{{% /warn %}} ## Usage ``` @@ -19,11 +26,12 @@ influx secret update [flags] ``` ## Flags -| Flag | Description | Input type | -|:---- |:----------- |:----------:| -| `-h`, `--help` | Help for `secret update` | | -| `-k`, `--key` | Secret key _**(required)**_ | string | -| `-o`, `--org` | Organization name | string | -| `--org-id` | Organization ID | string | +| Flag | Description | Input type | +|:---- |:----------- |:----------:| +| `-h`, `--help` | Help for `secret update` | | +| `-k`, `--key` | Secret key _**(required)**_ | string | +| `-o`, `--org` | Organization name | string | +| `--org-id` | Organization ID | string | +| `-v`, `--value` | Secret value | string | {{% influx-cli-global-flags %}} diff --git a/content/v2.0/security/secrets/manage-secrets/add.md b/content/v2.0/security/secrets/manage-secrets/add.md index 4bdcefa25..a53c0a2f2 100644 --- a/content/v2.0/security/secrets/manage-secrets/add.md +++ b/content/v2.0/security/secrets/manage-secrets/add.md @@ -14,7 +14,14 @@ Add secrets using the `influx` command line interface (CLI) or the InfluxDB API. Use the [`influx secret update` command](/v2.0/reference/cli/influx/secret/update/) to add a new secret to your organization. Provide the secret key with the `-k` or `--key` flag. -When prompted, enter and confirm the secret value. +You may also provide the secret value with the `-v` or `--value` flag. +If you do not provide the secret value with the `-v` or `--value` flag, +enter the value when prompted. + +{{% warn %}} +Providing a secret value with the `-v` or `--value` flag may expose the secret +in your command history. +{{% /warn %}} ```sh # Syntax diff --git a/content/v2.0/security/secrets/manage-secrets/update.md b/content/v2.0/security/secrets/manage-secrets/update.md index 0ea92e509..5c8dd883f 100644 --- a/content/v2.0/security/secrets/manage-secrets/update.md +++ b/content/v2.0/security/secrets/manage-secrets/update.md @@ -14,7 +14,14 @@ Update secrets using the `influx` command line interface (CLI) or the InfluxDB A Use the [`influx secret update` command](/v2.0/reference/cli/influx/secret/update/) to update a secret in your organization. Provide the secret key to update with the `-k` or `--key` flag. -When prompted, enter and confirm the secret value. +You may also provide the secret value with the `-v` or `--value` flag. +If you do not provide the secret value with the `-v` or `--value` flag, +enter the value when prompted. + +{{% warn %}} +Providing a secret value with the `-v` or `--value` flag may expose the secret +in your command history. +{{% /warn %}} ```sh # Syntax