gh codespace list
gh codespace list [flags]
列出已认证用户的代码空间。
或者,组织管理员可以列出计费到组织的所有代码空间。
选项
-q,--jq <expression>- 使用 jq 表达式筛选 JSON 输出
-
--json <fields> - 使用指定的字段输出 JSON
-L,--limit <int> (默认 30)- 要列出的代码空间的最大数量
-o,--org <login>- 要为其列出代码空间的组织的登录句柄(仅限管理员)
-R,--repo <string>- 带有所有者的仓库名称:user/repo
-t,--template <string>- 使用 Go 模板格式化 JSON 输出;请参阅“gh help formatting”
-u,--user <username>- 要为其列出代码空间的用户名(与 --org 一起使用)
-w,--web- 在 Web 浏览器中列出代码空间,不能与 --user 或 --org 一起使用
别名
gh cs ls, gh codespace ls
JSON 字段
createdAt, displayName, gitStatus, lastUsedAt, machineName, name, owner, repository, state, vscsTarget