GH-SECRET-LIST(1)
π GH-SECRET-LIST(1) π
okay so bestie, this is the gh-secret-list page from the GitHub CLI manual β yes, the real official one, and yes I'm about to make it make sense π«Ά
β¨ NAME β¨
gh-secret-list β literally just list secrets, that's the whole gig π
π SYNOPSIS π
gh secret list [flags]
πΈ DESCRIPTION πΈ
so you wanna see your secrets? iconic. here's the thing though β secrets live at different levels, and you gotta know which level you're looking at, no cap:
- repository (this is the default, bestie π₯): available to GitHub Actions runs, Agents sessions, or Dependabot in a repository
- environment: available to GitHub Actions runs for a deployment environment in a repository
- organization: available to GitHub Actions runs, Agents sessions, Dependabot, or Codespaces within an organization
- user: available to Codespaces for your user
pick your level, pick your vibe, go off π¦
π OPTIONS π
-a,--app<string>β list secrets for one specific application. your choices are{actions|agents|codespaces|dependabot}, choose wisely π-e,--env<string>β list secrets for an environment-q,--jq<expression>β filter the JSON output using a jq expression. yes queen, pipe it through jq, slay β¨--json<fields>β output JSON with the specified fields (the full field list is down below, keep scrolling π)-o,--org<string>β list secrets for an organization-t,--template<string>β format the JSON output using a Go template; seegh help formattingfor the deets π-u,--userβ list a secret for your user (just yours, main character energy π)
π« OPTIONS INHERITED FROM PARENT COMMANDS π«
-R,--repo[HOST/]OWNER/REPOβ select another repository using the[HOST/]OWNER/REPOformat. note the optional host up front, iykyk π§
π¦ ALIASES π¦
gh secret ls
that's it. ls is the short king. use it, love it π
π JSON FIELDS π
name, numSelectedRepos, selectedReposURL, updatedAt, visibility
these are the exact field names for --json, character for character, don't @ me π
β EXIT CODES β
0: successful execution β we ate, no crumbs π1: error β it's giving oops π2: command canceled β you hit Ctrl+C and it respected that4: authentication required β go log in bestie, fr fr π
NOTE: specific commands may have additional exit codes. refer to the command's help for more information π
π₯ SEE ALSO π₯
gh-secret(1)β the parent page, the origin story
okay that's the whole page, you're welcome π this was GitHub CLI v2.102.0, dated Oct 2026 β the drama of that date is not lost on me, anyway ily, bye π β¨π
π¦ where this page comes from
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms