repair

Repair or reset the local data store.

Synopsis

unimorph repair [OPTIONS]

Description

Utility command for troubleshooting and resetting the local data store. Can clear the API response cache or all downloaded datasets.

Options

OptionDescription
--clear-cacheClear cached API responses
--clear-dataClear all downloaded datasets (requires re-download)
--jsonOutput as JSON

Examples

Clear API Cache

Clears the cached list of available languages (normally cached for 24 hours):

unimorph repair --clear-cache
Cleared API cache

Clear All Data

Removes all downloaded language datasets:

unimorph repair --clear-data
Cleared all data (5 languages removed)

Clear Both

unimorph repair --clear-cache --clear-data

JSON Output

unimorph repair --clear-data --json
{
  "cache_cleared": false,
  "data_cleared": true,
  "languages_removed": 5
}

Use Cases

  • Corrupted data: If queries return unexpected results
  • Stale cache: If available language list seems outdated
  • Disk space: Remove all data to free space
  • Fresh start: Reset everything to initial state

Notes

  • --clear-cache only removes API response cache, not datasets
  • --clear-data removes all downloaded languages
  • Data can be re-downloaded with unimorph download

See Also