Skip to content

Cache, Search, Sync

spotuify keeps Spotify metadata locally so the CLI and TUI can answer quickly. SQLite is the cache. Tantivy is the rebuildable search index.

Terminal window
spotuify sync
spotuify sync library --format json
spotuify sync playlists --format json

Sync targets:

Terminal window
spotuify sync playback
spotuify sync devices
spotuify sync recent
Terminal window
spotuify cache status --format json

What you get: database path, index path, row counts, search result counts, lyrics cache counts, cover cache size, and last sync/search timestamps.

Terminal window
spotuify reindex --format json

Use this when SQLite has data but local search looks empty or stale.

Terminal window
spotuify cache repair --format json

What you get: schema repair plus a local index rebuild.

This deletes local cache files. It does not delete Spotify data.

Terminal window
spotuify cache reset --confirm

After reset:

Terminal window
spotuify sync all
spotuify cache status