DEMO A showcase of hev ask⌘K agentic search — running on Coder's real docs. Unaffiliated with Coder; not the official documentation. Official Coder docs ↗ Add ask to your docs ↗
Documentation › server create-admin-user

server create-admin-user

Create a new admin user with the given username, email and password and adds it to every organization.

Usage

coder server create-admin-user [flags]

Options

—postgres-url

Typestring
Environment$CODER_PG_CONNECTION_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).

—postgres-connection-auth

Typepassword|awsiamrds
Environment$CODER_PG_CONNECTION_AUTH
Defaultpassword

Type of auth to use when connecting to postgres.

—ssh-keygen-algorithm

Typestring
Environment$CODER_SSH_KEYGEN_ALGORITHM
Defaulted25519

The algorithm to use for generating ssh keys. Accepted values are “ed25519”, “ecdsa”, or “rsa4096”.

—username

Typestring
Environment$CODER_USERNAME

The username of the new user. If not specified, you will be prompted via stdin.

—email

Typestring
Environment$CODER_EMAIL

The email of the new user. If not specified, you will be prompted via stdin.

—password

Typestring
Environment$CODER_PASSWORD

The password of the new user. If not specified, you will be prompted via stdin.

—raw-url

Typebool

Output the raw connection URL instead of a psql command.

esc