2026-08-11 11:22:55 -04:00
|
|
|
---
|
|
|
|
|
# Code generated by make gen. DO NOT EDIT.
|
2026-09-28 15:44:10 -04:00
|
|
|
title: "`coder server create-admin-user`"
|
2026-08-11 11:22:55 -04:00
|
|
|
description: "Create a new admin user with the given username, email and password and adds it to every organization."
|
|
|
|
|
---
|
|
|
|
|
|
2023-03-23 17:42:20 -05:00
|
|
|
<!-- DO NOT EDIT | GENERATED CONTENT -->
|
|
|
|
|
|
|
|
|
|
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]
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Options
|
|
|
|
|
|
|
|
|
|
### --postgres-url
|
|
|
|
|
|
2023-06-01 15:02:29 -08:00
|
|
|
| | |
|
2025-01-03 18:12:59 +05:00
|
|
|
|-------------|---------------------------------------|
|
2023-06-01 15:02:29 -08:00
|
|
|
| Type | <code>string</code> |
|
|
|
|
|
| Environment | <code>$CODER_PG_CONNECTION_URL</code> |
|
2023-03-23 17:42:20 -05:00
|
|
|
|
|
|
|
|
URL of a PostgreSQL database. If empty, the built-in PostgreSQL deployment will be used (Coder must not be already running in this case).
|
|
|
|
|
|
2024-03-20 13:14:43 -04:00
|
|
|
### --postgres-connection-auth
|
|
|
|
|
|
|
|
|
|
| | |
|
2025-01-03 18:12:59 +05:00
|
|
|
|-------------|----------------------------------------|
|
2024-08-20 14:47:46 +10:00
|
|
|
| Type | <code>password\|awsiamrds</code> |
|
2024-03-20 13:14:43 -04:00
|
|
|
| Environment | <code>$CODER_PG_CONNECTION_AUTH</code> |
|
|
|
|
|
| Default | <code>password</code> |
|
|
|
|
|
|
|
|
|
|
Type of auth to use when connecting to postgres.
|
|
|
|
|
|
2023-03-23 17:42:20 -05:00
|
|
|
### --ssh-keygen-algorithm
|
|
|
|
|
|
|
|
|
|
| | |
|
2025-01-03 18:12:59 +05:00
|
|
|
|-------------|------------------------------------------|
|
2023-03-23 17:42:20 -05:00
|
|
|
| Type | <code>string</code> |
|
|
|
|
|
| Environment | <code>$CODER_SSH_KEYGEN_ALGORITHM</code> |
|
|
|
|
|
| Default | <code>ed25519</code> |
|
|
|
|
|
|
|
|
|
|
The algorithm to use for generating ssh keys. Accepted values are "ed25519", "ecdsa", or "rsa4096".
|
|
|
|
|
|
|
|
|
|
### --username
|
|
|
|
|
|
|
|
|
|
| | |
|
2025-01-03 18:12:59 +05:00
|
|
|
|-------------|------------------------------|
|
2023-03-23 17:42:20 -05:00
|
|
|
| Type | <code>string</code> |
|
|
|
|
|
| Environment | <code>$CODER_USERNAME</code> |
|
|
|
|
|
|
|
|
|
|
The username of the new user. If not specified, you will be prompted via stdin.
|
2024-03-15 11:24:38 -05:00
|
|
|
|
|
|
|
|
### --email
|
|
|
|
|
|
|
|
|
|
| | |
|
2025-01-03 18:12:59 +05:00
|
|
|
|-------------|---------------------------|
|
2024-03-15 11:24:38 -05:00
|
|
|
| Type | <code>string</code> |
|
|
|
|
|
| Environment | <code>$CODER_EMAIL</code> |
|
|
|
|
|
|
|
|
|
|
The email of the new user. If not specified, you will be prompted via stdin.
|
|
|
|
|
|
|
|
|
|
### --password
|
|
|
|
|
|
|
|
|
|
| | |
|
2025-01-03 18:12:59 +05:00
|
|
|
|-------------|------------------------------|
|
2024-03-15 11:24:38 -05:00
|
|
|
| Type | <code>string</code> |
|
|
|
|
|
| Environment | <code>$CODER_PASSWORD</code> |
|
|
|
|
|
|
|
|
|
|
The password of the new user. If not specified, you will be prompted via stdin.
|
|
|
|
|
|
2026-09-30 12:36:05 -04:00
|
|
|
### -o, --output
|
|
|
|
|
|
|
|
|
|
| | |
|
|
|
|
|
|---------|-------------------------|
|
|
|
|
|
| Type | <code>text\|json</code> |
|
|
|
|
|
| Default | <code>text</code> |
|
|
|
|
|
|
|
|
|
|
Output format.
|
|
|
|
|
|
2024-03-15 11:24:38 -05:00
|
|
|
### --raw-url
|
|
|
|
|
|
|
|
|
|
| | |
|
2025-01-03 18:12:59 +05:00
|
|
|
|------|-------------------|
|
2024-03-15 11:24:38 -05:00
|
|
|
| Type | <code>bool</code> |
|
|
|
|
|
|
|
|
|
|
Output the raw connection URL instead of a psql command.
|