docs: correct broken CLI commands and flags from drift sweep by nickvigilante · Pull Request #28098 · coder/coder · GitHub
Skip to content

docs: correct broken CLI commands and flags from drift sweep - #28098

Merged
nickvigilante merged 2 commits into
mainfrom
vigilante/docs-641-docs-correct-broken-cli-commandsflags-port-forward-templates
Aug 14, 2026
Merged

docs: correct broken CLI commands and flags from drift sweep#28098
nickvigilante merged 2 commits into
mainfrom
vigilante/docs-641-docs-correct-broken-cli-commandsflags-port-forward-templates

Conversation

@nickvigilante

Copy link
Copy Markdown
Contributor

Summary

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.

Changes

Page Fix
docs/user-guides/workspace-access/index.md coder port forwardcoder 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 15min15m — 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).

Notes / judgment calls

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

Fixes CLI command/flag drift found in the DOCS-637 runtime sweep, each verified against the generated CLI reference and codersdk source:

- workspace-access: `coder port forward` -> `coder port-forward` (the space form is unrecognized).
- github-to-tasks: remove `coder templates list --org your-org-name` (two spots); `templates list` has no `--org` flag.
- scale-utility: `--cleanup-timeout 15min` -> `15m` (Go durations reject the "min" unit).
- dx-data-cloud: `coder users list > users.csv` emitted a table, not CSV. Emit JSON and convert to real CSV with jq, matching the API tab.

Excludes the sessions-tokens `--lifetime=720h` finding: it is valid on a default deployment (max-token-lifetime defaults to ~100y) and the CODER_MAX_TOKEN_LIFETIME dependency is already documented on the page.

> This PR was created with AI assistance (Coder Agents).
@linear-code

linear-code Bot commented Aug 13, 2026

Copy link
Copy Markdown

DOCS-641

@github-actions

github-actions Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Docs preview

Check off each page once it's been reviewed. If a page changes in a later push, its checkbox clears automatically so it gets a fresh look. Pages not yet wired into the docs navigation aren't listed here.

@nickvigilante
nickvigilante marked this pull request as ready for review August 14, 2026 16:23
@coderagents

coderagents Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Documentation Check

This PR is a docs-only CLI-drift fix, and the changes are accurate (coder port-forward is hyphenated, templates list has no --org flag, Go durations reject the min unit, and coder users list only supports --output table|json).

Updates Needed

  • docs/admin/users/index.md - Same broken CSV pattern as dx-data-cloud.md (coder users list > users.csv). Now fixed with the identical jq-based conversion. Addressed in the latest push.

All flagged items are resolved. No further documentation changes needed.


Automated review via Coder Agents

Addresses doc-check feedback on #28098. docs/admin/users/index.md had the same `coder users list > users.csv` pattern (emits a whitespace table, not CSV) that this PR fixes in dx-data-cloud.md. Apply the same jq-based conversion, selecting the default table columns so the output is valid CSV.

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

Copy link
Copy Markdown
Contributor Author

@nickvigilante
nickvigilante merged commit 58de9ab into main Aug 14, 2026
33 checks passed
@nickvigilante
nickvigilante deleted the vigilante/docs-641-docs-correct-broken-cli-commandsflags-port-forward-templates branch August 14, 2026 16:49
@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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants