Back to Influxdb

Prompts for password

content/shared/influxdb-v2/reference/cli/influx/user/password.md

latest1.9 KB
Original Source

The influx user password command updates the password for a user in InfluxDB.

Usage

influx user password [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 password command
--hostHTTP address of InfluxDB (default http://localhost:8086)stringINFLUX_HOST
-i--idUser IDstring
-n--nameUsernamestring
--passwordUse password flag to send your password instead of typing it instring
--skip-verifySkip TLS certificate verificationINFLUX_SKIP_VERIFY
-t--tokenAPI tokenstringINFLUX_TOKEN

Examples

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

Update a user password using a username
sh
influx user password --name example-username
# Prompts for password
Update a user password using a user ID
sh
influx user password --id 0Xx0oox00XXoxxoo1
# Prompts for password