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

520 B
Generated

title, description
title description
`coder rename` Rename a workspace

Rename a workspace

Usage

coder rename [flags] <workspace> <new name>

Description

  - Rename a workspace without a confirmation prompt:

     $ coder rename <workspace> <new name> --yes

Options

-y, --yes

Type bool

Bypass confirmation prompts.