---
title: Change your password
description: Change your password in InfluxDB using the influx CLI.
url: https://docs.influxdata.com/influxdb/v2/admin/users/change-password/
estimated_tokens: 800
product: InfluxDB OSS v2
version: v2
---

# Change your password

This page documents an earlier version of InfluxDB OSS. [InfluxDB 3 Core](/influxdb3/core/) is the latest stable version.

#### API token hashing is enabled by default in InfluxDB OSS 2.9.0

Stronger token security: tokens are stored as hashes on disk, so a copy of the database file doesn’t expose usable tokens. Existing tokens are hashed on first startup and the original strings can’t be recovered afterward — **capture any plaintext tokens you still need before you upgrade**.

For more information, see [Token hashing](/influxdb/v2/admin/tokens/#token-hashing).

Use `influx` command line interface (CLI) to update your password.

User passwords cannot be updated in the InfluxDB UI.

## Change your password using the influx CLI

Use the [`influx user password` command](/influxdb/v2/reference/cli/influx/user/password) to update a password for a user. Provide the following:

-   An [operator token](/influxdb/v2/admin/tokens/#operator-token) using your [`influx` CLI connection configuration](/influxdb/v2/reference/cli/influx/#provide-required-authentication-credentials), `INFLUX_TOKEN` environment variable, or the `--token, -t` flag.
-   The username (with the `--name, -n` flag) or the user ID (with the `--id, -i` flag). View usernames and IDs in the output of `influx user list`.
-   *Optional*: the `--password, -p` flag and the new password. If you don’t provide a password flag, enter the new password when prompted.

##### Update a password

```sh
influx user password \
  --name USERNAME \
  --password PASSWORD
```

Replace the following:

-   `USERNAME`: The username to change the password for
-   `PASSWORD`: The new password
