Skip to content

Conversation

@alecthomas
Copy link
Collaborator

@alecthomas alecthomas commented Jan 25, 2026

The CLI includes direct low-level operations, and two high level operations for snapshotting and restoring directories using tar+zstd:

Usage: cachew <command> [flags]

Flags:
  -h, --help                           Show context-sensitive help.
      --log-json                       Enable JSON logging ($CACHEW_LOG_JSON).
      --log-level=info                 Set the logging level ($CACHEW_LOG_LEVEL).
      --url="http://127.0.0.1:8080"    Remote cache server URL ($CACHEW_URL).
      --platform                       Prefix keys with platform (${os}-${arch}-) ($CACHEW_PLATFORM).

Operations:
  get       Download object from cache.
  stat      Show metadata for cached object.
  put       Upload object to cache.
  delete    Remove object from cache.

Snapshots:
  snapshot    Create compressed archive of directory and upload.
  restore     Download and extract archive to directory.

Run "cachew <command> --help" for more information on a command.

@alecthomas alecthomas merged commit 7fa137e into main Jan 25, 2026
4 of 6 checks passed
@alecthomas alecthomas deleted the aat/cli branch January 25, 2026 04:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants