# coder server dbcrypt decrypt

Decrypt a previously encrypted database.

## Usage [#usage]

```console
coder server dbcrypt decrypt [flags]
```

## Options [#options]

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

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

The connection URL for the Postgres database.

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

### --keys [#--keys]

|             |                                                                 |
| ----------- | --------------------------------------------------------------- |
| Type        | <code>string-array</code>                                       |
| Environment | <code>$CODER\_EXTERNAL\_TOKEN\_ENCRYPTION\_DECRYPT\_KEYS</code> |

Keys required to decrypt existing data. Must be a comma-separated list of base64-encoded keys.

### -y, --yes [#-y---yes]

|      |                   |
| ---- | ----------------- |
| Type | <code>bool</code> |

Bypass confirmation prompts.
