# dflow auth:reset

> Set a new password with the one-time token from the mail driver.

Web page: /docs/cli/account/auth-reset/

This sets a new password with the one-time token from the reset mail. You type the new password at the prompt. It is 12 to 128 characters. There is no `--password` flag.

```bash
dflow auth:reset TOKEN
```

## Flags

`--password` is a usage error. The CLI prints `a password must be 12 to 128 characters`, then `Password:` and `Re-enter password:`, and reads both with echo off. They must match. A password outside that length is exit 1 and does not call the API. `--api` optional. Globals.

## What you see

The terminal prints `status` is `reset`. `next` says to sign in again with `dflow login --email`. The token and the new password are not printed. Exit 0 when the password is replaced.

## When it fails

Exit 1 when `--password` is passed, the prompt is empty, or the API rejects the token. Exit 10 when the API cannot be reached.
