Files
coder/docs/reference/cli/users/show.md
T
Nick Vigilante e6774c2602 feat: add --column to coder users show (#30143)
`coder users show` offered `-o table|json` but was the only table
command without `-c/--column`, because it uses a custom key/value
format.

The custom format now registers `-c` and filters its rows.
Column names match `users list` where they overlap: `id`, `username`,
`name`, `email`, `status`, `created at`, `roles`, `organizations`.

**Behavior change:** Additive.
The default output is byte-for-byte unchanged.

<details>
<summary>Decisions</summary>

- Switching to `cliui.TableFormat` would have turned the vertical
key/value layout into a horizontal table, so the existing renderer is
kept and filtered instead.

</details>

Closes [CLI-25](https://linear.app/codercom/issue/CLI-25)

_This PR was generated by Coder Agents on behalf of @nickvigilante._
2026-09-30 12:38:45 -04:00

42 lines
1.0 KiB
Markdown
Generated

---
# Code generated by make gen. DO NOT EDIT.
title: "`coder users show`"
description: "Show a single user. Use 'me' to indicate the currently authenticated user."
---
<!-- DO NOT EDIT | GENERATED CONTENT -->
Show a single user. Use 'me' to indicate the currently authenticated user.
## Usage
```console
coder users show [flags] <username|user_id|'me'>
```
## Description
```console
coder users show me
```
## Options
### -c, --column
| | |
|---------|------------------------------------------------------------------------------------|
| Type | <code>[id\|username\|name\|email\|status\|created at\|roles\|organizations]</code> |
| Default | <code>id,username,name,email,status,created at,roles,organizations</code> |
Columns to display in table output.
### -o, --output
| | |
|---------|--------------------------|
| Type | <code>table\|json</code> |
| Default | <code>table</code> |
Output format.