mirror of
https://github.com/coder/coder.git
synced 2026-06-05 22:18:20 +00:00
930bbaf035
This addresses a long-standing gripe of mine: to get your logged in
username you would have to do
```bash
coder whoami | awk '{print $9}'
```
This allows you to do:
```
coder whoami -o json | jq -r '.username'
```
or
```
coder whoami -f table -c username
```
604 B
Generated
604 B
Generated
whoami
Fetch authenticated user info for Coder deployment
Usage
coder whoami [flags]
Options
-c, --column
| Type | [URL|Username] |
| Default | url,username |
Columns to display in table output.
-o, --output
| Type | text|json|table |
| Default | text |
Output format.