The blacksmith cache commands let you inspect and clean up a repository’s cache data programmatically. This is especially useful for repositories with many generated or parameterized cache keys.
Permissions
Listing requires the user who created the CLI token to be able to see the target repository on GitHub (any permission level, including read) — the same visibility rule the dashboard enforces. Deleting (delete and clear) additionally requires the user who created the CLI token (via blacksmith auth login) to have write access to the target repository on GitHub (the WRITE, MAINTAIN, or ADMIN role) — the same rule the dashboard enforces. Tokens not tied to a user account cannot delete; re-authenticate with blacksmith auth login to mint a token tied to your account. Organization tokens are exempt from these per-repository checks and can list and delete for any repository in the organization.
Two kinds of cache entries are surfaced, distinguished by the type field in list output:
blacksmith cache list
Lists cache entries for a repository.
blacksmith cache delete
Deletes all Actions cache entries for a repository that exactly match --key. By default every version, scope, and transparent-cache variant of the key is deleted; narrow the selection with the optional filters.
blacksmith cache clear
Deletes all Actions cache entries for a repository.
delete and clear operate on actions cache entries. Bazel cache namespaces are listed for visibility, but their storage is managed automatically by Blacksmith’s server-side LRU retention and cannot be deleted through the CLI.