Files
coder/docs/reference/cli/users_create.md
T
Sushant P 4820f13eb4 docs: add deprecation warning for login-type none (#24594)
The `--login-type none` option for `coder users create` is deprecated.
This adds deprecation warnings to all docs that reference it and updates
the CI/CD tutorial to recommend the replacement flows.

Refs DEVEX-224

<details>
<summary>Changes</summary>

- `cli/usercreate.go`: Append deprecation notice to `--login-type` flag
description.
- `docs/tutorials/testing-templates.md`: Replace `--login-type none`
example with separate Premium (`--service-account`) and OSS
(`--login-type password`) examples.
- `docs/reference/cli/users_create.md`: Regenerated from CLI source.
- `cli/testdata/coder_users_create_--help.golden`: Updated golden
snapshot.

</details>

> [!NOTE]
> Generated by Coder Agents.
2026-04-27 22:51:01 +00:00

70 lines
1.7 KiB
Markdown
Generated

<!-- DO NOT EDIT | GENERATED CONTENT -->
# users create
Create a new user.
## Usage
```console
coder users create [flags]
```
## Options
### -e, --email
| | |
|------|---------------------|
| Type | <code>string</code> |
Specifies an email address for the new user.
### -u, --username
| | |
|------|---------------------|
| Type | <code>string</code> |
Specifies a username for the new user.
### -n, --full-name
| | |
|------|---------------------|
| Type | <code>string</code> |
Specifies an optional human-readable name for the new user.
### -p, --password
| | |
|------|---------------------|
| Type | <code>string</code> |
Specifies a password for the new user.
### --login-type
| | |
|------|---------------------|
| Type | <code>string</code> |
Optionally specify the login type for the user. Valid values are: password, none, github, oidc. Using 'none' prevents the user from authenticating and requires an API key/token to be generated by an admin. Deprecated: 'none' is deprecated. Use service accounts (requires Premium) for machine-to-machine access, or password/github/oidc login types for regular user accounts.
### --service-account
| | |
|------|-------------------|
| Type | <code>bool</code> |
Create a user account intended to be used by a service or as an intermediary rather than by a human.
### -O, --org
| | |
|-------------|----------------------------------|
| Type | <code>string</code> |
| Environment | <code>$CODER_ORGANIZATION</code> |
Select which organization (uuid or name) to use.