# coder server create-admin-user
Create a new admin user with the given username, email and password and adds it to every organization.
## Usage
```console
coder server create-admin-user [flags]
```
## Flags
### --email
The email of the new user. If not specified, you will be prompted via stdin.
| | |
| --- | --- |
| Consumes | $CODER_EMAIL
|
### --password
The password of the new user. If not specified, you will be prompted via stdin.
| | |
| --- | --- |
| Consumes | $CODER_PASSWORD
|
### --postgres-url
URL of a PostgreSQL database. If empty, the built-in PostgreSQL deployment will be used (Coder must not be already running in this case).
| | |
| --- | --- |
| Consumes | $CODER_POSTGRES_URL
|
### --ssh-keygen-algorithm
The algorithm to use for generating ssh keys. Accepted values are "ed25519", "ecdsa", or "rsa4096".
| | |
| --- | --- |
| Consumes | $CODER_SSH_KEYGEN_ALGORITHM
|
| Default | ed25519
|
### --username
The username of the new user. If not specified, you will be prompted via stdin.
| | |
| --- | --- |
| Consumes | $CODER_USERNAME
|