Files
coder/docs/reference/cli/rename.md
T
Nick Vigilante 237616a87d fix!: make --yes skip the rename confirmation prompt (#30151)
`coder rename` registers `-y/--yes`, but its confirmation asks you to
type the workspace name, and `cliui.Prompt` only honors `-y` for yes/no
prompts.
So `coder rename ws new -y` still blocked on input.

With `-y`, the type-the-name prompt is now skipped.
The data-loss warning is still printed.

**Behavior change:** With `-y`, the rename happens without reading
stdin.
Without `-y`, the prompt is unchanged.

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

_This PR was generated by Coder Agents on behalf of @nickvigilante._
2026-10-06 10:08:14 -04:00

34 lines
520 B
Markdown
Generated

---
# Code generated by make gen. DO NOT EDIT.
title: "`coder rename`"
description: Rename a workspace
---
<!-- DO NOT EDIT | GENERATED CONTENT -->
Rename a workspace
## Usage
```console
coder rename [flags] <workspace> <new name>
```
## Description
```console
- Rename a workspace without a confirmation prompt:
$ coder rename <workspace> <new name> --yes
```
## Options
### -y, --yes
| | |
|------|-------------------|
| Type | <code>bool</code> |
Bypass confirmation prompts.