---
title: influxd recovery user create
description: The influxd recovery user create command creates a new user directly on disk for recovery purposes.
url: https://docs.influxdata.com/influxdb/v2/reference/cli/influxd/recovery/user/create/
estimated_tokens: 478
product: InfluxDB OSS v2
version: v2
publisher: InfluxData
canonical: https://docs.influxdata.com/influxdb/v2/reference/cli/influxd/recovery/user/create/
date: '2023-11-06T15:53:12-07:00'
lastmod: '2023-11-06T15:53:12-07:00'
---

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).

The `influxd recovery user create` command creates a new user directly
on disk for recovery purposes.

> [!Note]
> This command can only be executed when the InfluxDB server (`influxd`) is not running.

## Usage

```sh
influxd recovery user create [flags]
```

## Flags

|Flag|             |                         Description                         |Input Type|
|----|-------------|-------------------------------------------------------------|----------|
|    |`--bolt-path`|Path to the BoltDB file (default `~.influxdbv2/influxd.bolt`)|  string  |
|`-h`|  `--help`   |                      Help for `create`                      |          |
|    |`--password` |                  Password for the new user                  |  string  |
|    |`--username` |                  Username of the new user                   |  string  |

## Examples

##### Create a new user directly on disk

```sh
influxd recovery user create \
  --username example-username \
  --password ExAmPL3-paS5W0rD
```
| Flag |  | Description | Input Type |
| --- | --- | --- | --- |
| Flag |  | Description | Input Type |
|  | --bolt-path | Path to the BoltDB file (default  ~.influxdbv2/influxd.bolt ) | string |
| -h | --help | Help for  create |  |
|  | --password | Password for the new user | string |
|  | --username | Username of the new user | string |
