gh project list
列出所有者的项目
gh project list [flags]
选项
-
--closed - 包含已关闭的项目
-
--format <string> - 输出格式: {json}
-q,--jq <expression>- 使用 jq 表达式过滤 JSON 输出
-L,--limit <int> (default 30)- 要获取的最大项目数量
-
--owner <string> - 所有者的登录名
-t,--template <string>- 使用 Go 模板格式化 JSON 输出; 查看“gh help formatting”
-w,--web- 在浏览器中打开项目列表
别名
gh project ls
示例
# list the current user's projects
gh project list
# list the projects for org github including closed projects
gh project list --owner github --closed