fix(docs): remove invalid `--yes` flag from `coder template version promote` (backport to release/2.34) by nickvigilante · Pull Request #28172 · coder/coder · GitHub
Skip to content

fix(docs): remove invalid --yes flag from coder template version promote (backport to release/2.34) - #28172

Merged
nickvigilante merged 1 commit into
release/2.34from
backport/28084-to-2.34
Aug 14, 2026
Merged

fix(docs): remove invalid --yes flag from coder template version promote (backport to release/2.34)#28172
nickvigilante merged 1 commit into
release/2.34from
backport/28084-to-2.34

Conversation

@nickvigilante

Copy link
Copy Markdown
Contributor

Backport of #28084 to release/2.34 (ESR).

Cherry-picked f3fd4c4a77f2 from main via git cherry-pick -x. Docs-only change; applied cleanly with no conflicts.

The backport label on the original merged PR did not produce a 2.34 backport, so this is created by hand. 2.34 is listed in scripts/release_channels/esr_versions.txt, so it is a valid backport target.

This PR was created with AI assistance (Coder Agents).

…e` (#28084)

## What

Remove the invalid `--yes` flag from the `coder template version
promote` command in the CI/CD publishing example.

## Why

`docs/tutorials/testing-templates.md` documents, in the GitHub Actions
"Promote template version" step:

```
coder template version promote --template=$TEMPLATE_NAME --template-version=... --yes
```

The `promote` subcommand has no `--yes`/confirmation flag, so the
command exits with `unknown flag: --yes` and breaks the documented CI
workflow. This is a golden-path (automation) breaker.

Verified against the generated reference
`docs/reference/cli/templates_versions_promote.md` (flags are only
`--template`, `--template-version`, `-O/--org`), and reproduced against
a live deployment during the runtime drift sweep. The command is
non-interactive, so no confirmation flag is needed.

## Change

Single line: drop ` --yes`.

Linear:
[DOCS-640](https://linear.app/codercom/issue/DOCS-640/docs-remove-invalid-yes-flag-from-coder-template-version-promote)

> This PR was created with AI assistance (Coder Agents).

(cherry picked from commit f3fd4c4)
@github-actions

Copy link
Copy Markdown
Contributor

@github-actions

Copy link
Copy Markdown
Contributor

@nickvigilante nickvigilante changed the title docs: remove invalid --yes flag from coder template version promote (backport to release/2.34) fix(docs): remove invalid --yes flag from coder template version promote (backport to release/2.34) Aug 14, 2026
@nickvigilante
nickvigilante marked this pull request as ready for review August 14, 2026 17:27
@nickvigilante
nickvigilante enabled auto-merge (squash) August 14, 2026 17:27
@nickvigilante
nickvigilante merged commit 54c8074 into release/2.34 Aug 14, 2026
55 checks passed
@nickvigilante
nickvigilante deleted the backport/28084-to-2.34 branch August 14, 2026 17:34
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants