# mokucli cache

Manage local cache of downloaded resources

The cache includes:

  • Downloaded instrument bitstreams (instruments/)
  • Downloaded firmware files (firmware/)
  • Downloaded feature packages (features/)
  • Version mapping files (versions/)

# Usage

$ mokucli cache [OPTIONS] COMMAND [ARGS]...
1

# Commands

List of available cache subcommands:

  • clear: Clear cached data from the local data directory
  • info: Display information about the local cache

# mokucli cache clear

This command removes downloaded resources from mokucli's local cache. You can specify a particular subdirectory to clear, or clear the entire cache.

WARNING

Removing local instruments, firmware, features, etc. can be beneficial to free-up space. However, mokucli cache clear will remove all files, including functional ones. Install files again with the instructions in the installation guide.

# Usage

$ mokucli cache clear [OPTIONS] [PATH]
1

# Arguments

  • PATH: Optional path within the data directory to clear (e.g.,'instruments', 'instruments/18480', 'firmware/611'). If not specified, clears entire cache.

# Options

  • --force, -f: Skip confirmation prompt
  • --help: Show this message and exit

# Examples

# Clear entire cache
mokucli cache clear

# Clear all cached bitstreams
mokucli cache clear instruments

# Clear specific build
mokucli cache clear instruments/18480

# Clear all cached firmware
mokucli cache clear firmware

# Clear version mapping cache
mokucli cache clear versions
1
2
3
4
5
6
7
8
9
10
11
12
13
14

# Output

# Clear specific instruments build
$ mokucli cache clear instruments/18480

Target: C:\Users\usr\AppData\Roaming\Moku\data\instruments\18480
Size: 1.31 GB
Contents: 362 files, 4 directories

Are you sure you want to delete 'instruments/18480' from the cache?
Continue? [y/N]: y
✓ Cleared cache directory: instruments/18480
Freed 1.31 GB of disk space
1
2
3
4
5
6
7
8
9
10
11

# mokucli cache info

Display information about the local cache.

Shows the cache location, size, and breakdown by resource type.

# Usage

$ mokucli cache info [OPTIONS]
1

# Options

  • --help: Show this message and exit

# Examples

# Print cache location, size, and breakdown by resource type
mokucli cache info
1
2

# Output

# Print cache location, size, and breakdown by resource type
$ mokucli cache info

Cache Location: C:\Users\usr\AppData\Roaming\Moku\data

Cache Contents:
  Instrument bitstreams: 8.71 GB (2697 files)
  Version mappings: 722 bytes (4 files)
  Moku Compile resources: 75.72 MB (65 files)
  Other files: 79.69 MB (16 files)

Total Cache Size: 8.86 GB (2782 files)
1
2
3
4
5
6
7
8
9
10
11
12