GH-CACHE-LIST(1) GitHub CLI manual GH-CACHE-LIST(1) (NAME) gh-cache-list - (SYNOPSIS) gh cache list [flags] (OPTIONS) -q, --jq JSON jq --json JSON -k, --key -L, --limit (default 30) -O, --order (default "desc") : {asc|desc} -r, --ref (ref) refs/heads/ refs/pull//merge -S, --sort (default "last_accessed_at") : {created_at|last_accessed_at|size_in_bytes} -t, --template JSON Go "gh help formatting" (OPTIONS INHERITED FROM PARENT COMMANDS) -R, --repo <[HOST/]OWNER/REPO> [HOST/]OWNER/REPO (ALIASES) gh cache ls JSON (JSON FIELDS) createdAt, id, key, lastAccessedAt, ref, sizeInBytes, version (EXIT CODES) 0: 1: 2: 4: : . . (EXAMPLES) # $ gh cache list # $ gh cache list --repo cli/cli # $ gh cache list --sort last_accessed_at --order asc # ( ) $ gh cache list --key key-prefix # $ gh cache list --ref refs/heads/ # $ gh cache list --ref refs/pull//merge (SEE ALSO) gh-cache(1) Sep 2026 GH-CACHE-LIST(1)