Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bf5fddc

Browse files
committed
docs(docs/admin/users): emit real CSV from users list export
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).
1 parent 48975a2 commit bf5fddc

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

docs/admin/users/index.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,11 @@ You can use the Coder CLI or API to retrieve your list of users.
235235

236236
### CLI
237237

238-
Use `users list` to export the list of users to a CSV file:
238+
Use `users list` with `jq` to export the list of users to a CSV file:
239239

240240
```sh
241-
coder users list > users.csv
241+
coder users list --output json | \
242+
jq -r '["username","email","created_at","status"], (.[] | [.username, .email, .created_at, .status]) | @csv' > users.csv
242243
```
243244

244245
Visit the [users list](../../reference/cli/users_list.md) documentation for more options.

0 commit comments

Comments
 (0)