Back to Home
CLI Commands

gk cache

Cache management for GemKit

Overview

The gk cache command manages GemKit's cache with subcommands for viewing statistics and clearing cached data.

Usage

bash
gk cache <subcommand>

Subcommands

stats (default)

Displays cache statistics.

bash
gk cache stats
gk cache  # same as above

Output:

  • Total entries count
  • Cache size in kilobytes

clear

Removes all cached entries.

bash
gk cache clear

Output: Reports the number of entries cleared with a success message.

Examples

bash
# View cache statistics
gk cache stats
gk cache

# Clear all cache
gk cache clear

Example Output

Stats

GemKit Cache Stats
──────────────────────────────────────────
Entries: 42
Size: 1,250 KB

Clear

✓ Cleared 42 cache entries

When to Clear Cache

  • Troubleshooting unexpected behavior
  • After significant codebase changes
  • To free up disk space
  • Starting fresh with a project
Caught a mistake? Edit this page on GitHub
Updated: Jan 20, 2026