GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
GH-CACHE-LIST(1) GitHub CLI manual GH-CACHE-LIST(1)

gh-cache-list - List GitHub Actions caches

gh cache list [flags]

Filter JSON output using a jq expression

Output JSON with the specified fields

Filter by cache key prefix

Maximum number of caches to fetch

Order of caches returned: {asc|desc}

Filter by ref, formatted as refs/heads/ or refs/pull//merge

Sort fetched caches: {created_at|last_accessed_at|size_in_bytes}

Format JSON output using a Go template; see "gh help formatting"

Select another repository using the [HOST/]OWNER/REPO format

gh cache ls

createdAt, id, key, lastAccessedAt, ref, sizeInBytes, version

0: Successful execution

1: Error

2: Command canceled

4: Authentication required

NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information.

# List caches for current repository
$ gh cache list
# List caches for specific repository
$ gh cache list --repo cli/cli
# List caches sorted by least recently accessed
$ gh cache list --sort last_accessed_at --order asc
# List caches that have keys matching a prefix (or that match exactly)
$ gh cache list --key key-prefix
# List caches for a specific branch, replace <branch-name> with the actual branch name
$ gh cache list --ref refs/heads/<branch-name>
# List caches for a specific pull request, replace <pr-number> with the actual pull request number
$ gh cache list --ref refs/pull/<pr-number>/merge

gh-cache(1)

Jul 2025

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.