# reset-password

Directly connect to the database to reset a user's password

## Usage [#usage]

```console
coder reset-password [flags] <username>
```

## Options [#options]

### --postgres-url [#--postgres-url]

|             |                                          |
| ----------- | ---------------------------------------- |
| Type        | <code>string</code>                      |
| Environment | <code>$CODER\_PG\_CONNECTION\_URL</code> |

URL of a PostgreSQL database to connect to.

### --postgres-connection-auth [#--postgres-connection-auth]

|             |                                           |
| ----------- | ----------------------------------------- |
| Type        | <code>password\|awsiamrds</code>          |
| Environment | <code>$CODER\_PG\_CONNECTION\_AUTH</code> |
| Default     | <code>password</code>                     |

Type of auth to use when connecting to postgres.
