# dflow auth:forgot

> Ask the API to send a password reset through the configured mail driver.

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

This asks the server to send a password reset. You then run `dflow auth:reset` with the token from the email, or from the API log when mail is not sent.

```bash
dflow auth:forgot --email EMAIL
```

## Flags

`--email`. `--api` optional. Globals.

## What you see

The terminal prints `status` is `accepted`. `delivery` is `log` or `smtp`. `next` tells the person to run `dflow auth:reset TOKEN` with the token from the API log (`log`) or from the email (`smtp`). The token is not printed. An empty driver prints `mail is not configured` and does not claim a message was sent. Exit 0 when the API accepts the request.

## When it fails

Exit 6 when mail is not configured or the address is rate limited. Exit 10 when the API cannot be reached.
