Skip to content

fix(docs): correct broken CLI commands and flags from drift sweep (backport to release/2.34) - #28173

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

fix(docs): correct broken CLI commands and flags from drift sweep (backport to release/2.34)#28173
nickvigilante merged 1 commit into
release/2.34from
backport/28098-to-2.34

Conversation

@nickvigilante

Copy link
Copy Markdown
Contributor

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

Cherry-picked 58de9ab8f87e from main via git cherry-pick -x. Three of the five files applied cleanly.

Conflicts resolved manually: docs/admin/integrations/dx-data-cloud.md and docs/admin/users/index.md. On release/2.34 both blocks use a ```shell fence where main uses ```sh; that fence difference is an unrelated cross-branch divergence. This backport keeps 2.34's existing shell fence (which also matches the neighboring code blocks in those files) and applies #28098's intended change: replacing the broken coder users list > users.csv with the coder users list --output json | jq ... | @csv > users.csv pipeline. The resulting commit touches the same five files with the same insertion/deletion counts as the original squash.

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).

Corrects broken CLI commands and flags surfaced by the DOCS-637
full-corpus runtime drift sweep. Each fix was verified against the
generated CLI reference (`docs/reference/cli/*`) and, where relevant,
`codersdk` source.

| Page | Fix |
|------|-----|
| `docs/user-guides/workspace-access/index.md` | `coder port forward` →
`coder port-forward` (the space form is unrecognized; the command is
hyphenated). |
| `docs/ai-coder/github-to-tasks.md` | Remove `coder templates list
--org your-org-name` in two spots — `templates list` has no `--org` flag
(`unknown flag: --org`). |
| `docs/admin/infrastructure/scale-utility.md` | `--cleanup-timeout
15min` → `15m` — Go durations reject the `min` unit (`invalid duration:
unknown unit "min"`). |
| `docs/admin/integrations/dx-data-cloud.md` | `coder users list >
users.csv` emitted a whitespace table, not CSV. Emit JSON and convert to
real CSV with `jq`, mirroring the API tab on the same page and using the
same columns as the default table view
(`username,email,created_at,status`). |

- **dx-data-cloud (CSV):** the page genuinely needs CSV (the DX CSM
imports a CSV, and the API tab already produces one via `jq ... @csv`).
`coder users list` only supports `--output table|json`, so the CLI tab
now produces real CSV via `jq` rather than switching the page to JSON.
- **scale-utility `:109` left as-is:** `--target-users 0:100` is
prefixed with "For dashboard traffic:", which correctly scopes it to the
`scaletest dashboard` subcommand, so it is not drift.
- **Excluded — sessions-tokens `--lifetime=720h`:** the sweep flagged
this because the throwaway SUT capped token lifetime at 168h, but
`--max-token-lifetime` defaults to `876600h` (~100 years), so the
example is valid on a default deployment. The `CODER_MAX_TOKEN_LIFETIME`
dependency is also already documented in the page's "Set max token
length" section. No change needed.

Linear: https://linear.app/codercom/issue/DOCS-641

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

(cherry picked from commit 58de9ab)
@github-actions

Copy link
Copy Markdown
Contributor

Docs preview

📖 View docs preview for docs/admin/infrastructure/scale-utility.md

@github-actions

Copy link
Copy Markdown
Contributor

👋 Hey @nickvigilante!

This PR is targeting the release/2.34 release branch, but its title does not start with fix: or fix(scope):.

Only bug fixes should be cherry-picked to release branches. If this is a bug fix, please update the PR title to match the conventional commit format:

fix: description of the bug fix
fix(scope): description of the bug fix

If this is not a bug fix, it likely should not target a release branch.

@nickvigilante nickvigilante changed the title docs: correct broken CLI commands and flags from drift sweep (backport to release/2.34) fix(docs): correct broken CLI commands and flags from drift sweep (backport to release/2.34) Aug 14, 2026
@nickvigilante
nickvigilante marked this pull request as ready for review August 14, 2026 17:28
@nickvigilante
nickvigilante enabled auto-merge (squash) August 14, 2026 17:28
@nickvigilante
nickvigilante merged commit f930866 into release/2.34 Aug 14, 2026
59 checks passed
@nickvigilante
nickvigilante deleted the backport/28098-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