Files
coder/docs/reference/cli/users/index.md
T
Nick Vigilante dde500a646 feat: add --yes to coder users suspend and activate (#30155)
`coder users suspend` and `coder users activate` always prompt but,
unlike other commands with a confirmation prompt, had no `-y/--yes`.

Both now accept `-y`.
The suspend help also says that suspending stops the user's running
workspaces and that activating doesn't restart them.

**Behavior change:** Additive.
New `-y` flag; without it, both commands prompt as before.

<details>
<summary>Decisions</summary>

- The workspace note is based on the lifecycle executor, which
auto-stops a suspended user's running workspaces; activation doesn't
restart them.

</details>

Closes [CLI-23](https://linear.app/codercom/issue/CLI-23)

_This PR was generated by Coder Agents on behalf of @nickvigilante._
2026-09-30 12:38:14 -04:00

33 lines
2.5 KiB
Markdown
Generated

---
# Code generated by make gen. DO NOT EDIT.
title: "`coder users`"
description: Manage users
---
<!-- DO NOT EDIT | GENERATED CONTENT -->
Manage users
Aliases:
* user
## Usage
```console
coder users [subcommand]
```
## Subcommands
| Name | Purpose |
|----------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [<code>create</code>](./create.md) | Create a new user. |
| [<code>list</code>](./list.md) | Prints the list of users. |
| [<code>show</code>](./show.md) | Show a single user. Use 'me' to indicate the currently authenticated user. |
| [<code>delete</code>](./delete.md) | Delete a user by username or user_id. |
| [<code>edit-roles</code>](./edit-roles.md) | Edit a user's roles by username or id |
| [<code>oidc-claims</code>](./oidc-claims.md) | Display the OIDC claims for the authenticated user. |
| [<code>activate</code>](./activate.md) | Update a user's status to 'active'. Active users can fully interact with the platform |
| [<code>suspend</code>](./suspend.md) | Update a user's status to 'suspended'. A suspended user cannot log into the platform. Suspending a user stops their running workspaces; activating the user again does not restart them. |