Back to Influxdb

Update

content/shared/influxdb-v2/reference/cli/influx/secret/update.md

latest2.7 KB
Original Source

The influx secret update command adds and updates secrets. Provide the secret key with the -k or --key flag. 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

influx secret update [flags]

Flags

FlagDescriptionInput type{{< cli/mapped >}}
-c--active-configCLI configuration to use for commandstring
--configs-pathPath to influx CLI configurations (default ~/.influxdbv2/configs)stringINFLUX_CONFIGS_PATH
-h--helpHelp for the update command
--hide-headersHide table headers (default false)INFLUX_HIDE_HEADERS
--hostHTTP address of InfluxDB (default http://localhost:8086)stringINFLUX_HOST
--http-debugInspect communication with InfluxDB servers.string
--jsonOutput data as JSON (default false)INFLUX_OUTPUT_JSON
-k--key({{< req >}}) Secret keystring
-o--orgOrganization name (mutually exclusive with --org-id)stringINFLUX_ORG
--org-idOrganization ID (mutually exclusive with --org)stringINFLUX_ORG_ID
--skip-verifySkip TLS certificate verificationINFLUX_SKIP_VERIFY
-t--tokenAPI tokenstringINFLUX_TOKEN
-v--value({{< req >}}) Secret valuestring

Examples

{{< cli/influx-creds-note >}}

Add a secret
sh
influx secret update \
  --key EXAMPLE_KEY \
  --value EXAMPLE_VALUE
Update an existing secret
sh
influx secret update \
  --key EXAMPLE_KEY \
  --value NEW_EXAMPLE_VALUE