feat: add organizations list command to coder cli (#21960)

follows on from #21940.

The API endpoints existed for this already, so this PR just adds CLI functionality which uses those API endpoints.

Generated with the help of Mux
This commit is contained in:
Rowan Smith
2026-02-06 14:09:39 +11:00
committed by GitHub
parent a4296cbbc4
commit 683a7c0957
8 changed files with 165 additions and 0 deletions
+1
View File
@@ -10,6 +10,7 @@ USAGE:
SUBCOMMANDS:
create Create a new organization.
delete Delete an organization
list List all organizations
members Manage organization members
roles Manage organization roles.
settings Manage organization settings.
+21
View File
@@ -0,0 +1,21 @@
coder v0.0.0-devel
USAGE:
coder organizations list [flags]
List all organizations
Aliases: ls
List all organizations. Requires a role which grants ResourceOrganization:
read.
OPTIONS:
-c, --column [id|name|display name|icon|description|created at|updated at|default] (default: name,display name,id,default)
Columns to display in table output.
-o, --output table|json (default: table)
Output format.
———
Run `coder --help` for a list of global options.