mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: added whomai cmd to coder cli (#13814)
* feat: added whomai cmd to coder cli * refactor: update Coder CLI's whoami command to use client URL instead of deployment config * feat(cli): add unit tests for the whoami command * chore(docs): add coder command to fetch authenticated user info * chore(doc): update help desc
This commit is contained in:
@@ -57,6 +57,7 @@ Coder — A tool for provisioning self-hosted development environments with Terr
|
||||
| [<code>stop</code>](./cli/stop.md) | Stop a workspace |
|
||||
| [<code>unfavorite</code>](./cli/unfavorite.md) | Remove a workspace from your favorites |
|
||||
| [<code>update</code>](./cli/update.md) | Will update and start a given workspace if it is out of date |
|
||||
| [<code>whoami</code>](./cli/whoami.md) | Fetch authenticated user info for Coder deployment |
|
||||
| [<code>support</code>](./cli/support.md) | Commands for troubleshooting issues with a Coder deployment. |
|
||||
| [<code>server</code>](./cli/server.md) | Start a Coder server |
|
||||
| [<code>features</code>](./cli/features.md) | List Enterprise features |
|
||||
|
||||
Generated
+11
@@ -0,0 +1,11 @@
|
||||
<!-- DO NOT EDIT | GENERATED CONTENT -->
|
||||
|
||||
# whoami
|
||||
|
||||
Fetch authenticated user info for Coder deployment
|
||||
|
||||
## Usage
|
||||
|
||||
```console
|
||||
coder whoami
|
||||
```
|
||||
@@ -1072,6 +1072,11 @@
|
||||
"title": "version",
|
||||
"description": "Show coder version",
|
||||
"path": "cli/version.md"
|
||||
},
|
||||
{
|
||||
"title": "whoami",
|
||||
"description": "Fetch authenticated user info for Coder deployment",
|
||||
"path": "cli/whoami.md"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user