`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._
45 lines
940 B
Markdown
Generated
45 lines
940 B
Markdown
Generated
---
|
|
# Code generated by make gen. DO NOT EDIT.
|
|
title: "`coder users activate`"
|
|
description: "Update a user's status to 'active'. Active users can fully interact with the platform"
|
|
---
|
|
|
|
<!-- DO NOT EDIT | GENERATED CONTENT -->
|
|
|
|
Update a user's status to 'active'. Active users can fully interact with the platform
|
|
|
|
Aliases:
|
|
|
|
* active
|
|
|
|
## Usage
|
|
|
|
```console
|
|
coder users activate [flags] <username|user_id>
|
|
```
|
|
|
|
## Description
|
|
|
|
```console
|
|
coder users activate example_user
|
|
```
|
|
|
|
## Options
|
|
|
|
### -y, --yes
|
|
|
|
| | |
|
|
|------|-------------------|
|
|
| Type | <code>bool</code> |
|
|
|
|
Bypass confirmation prompts.
|
|
|
|
### -c, --column
|
|
|
|
| | |
|
|
|---------|----------------------------------------------------|
|
|
| Type | <code>[username\|email\|created at\|status]</code> |
|
|
| Default | <code>username,email,created at,status</code> |
|
|
|
|
Specify a column to filter in the table.
|