mirror of
https://github.com/coder/coder.git
synced 2026-06-03 21:18:24 +00:00
0a840e48fd
Builds upon https://github.com/coder/coder/pull/19970 I got kinda carried away when I saw the extra stuff we could add in here, so I went ahead and added it: * User ID * Organization IDs * Roles This technically duplicates functionality from `coder users show` but I figure folks may find it useful.
31 lines
672 B
Markdown
Generated
31 lines
672 B
Markdown
Generated
<!-- DO NOT EDIT | GENERATED CONTENT -->
|
|
# whoami
|
|
|
|
Fetch authenticated user info for Coder deployment
|
|
|
|
## Usage
|
|
|
|
```console
|
|
coder whoami [flags]
|
|
```
|
|
|
|
## Options
|
|
|
|
### -c, --column
|
|
|
|
| | |
|
|
|---------|-----------------------------------------------|
|
|
| Type | <code>[URL\|Username\|ID\|Orgs\|Roles]</code> |
|
|
| Default | <code>url,username,id</code> |
|
|
|
|
Columns to display in table output.
|
|
|
|
### -o, --output
|
|
|
|
| | |
|
|
|---------|--------------------------------|
|
|
| Type | <code>text\|json\|table</code> |
|
|
| Default | <code>text</code> |
|
|
|
|
Output format.
|