Overview
The CLI caches registry manifests and component assets on disk so repeated installs are instant and work offline. motion-core cache lets you inspect that cache or clear it when you need to force a refresh.
Usage
Options
What gets cached?
- Registry manifest (
registry.json) – includes metadata about every component (name, slug, dependencies, preview assets). Default TTL: 10 minutes. - Component manifest (
components.json) – a map of registry paths → base64 encoded file contents that powermotion-core add. Default TTL: 24 hours, also used as a fallback when offline.
Both TTLs can be customized via environment variables:
When to clear the cache
- Registry updates introduced new components but
motion-core liststill shows an old version. - After manually editing files inside the cache directory and wanting to revert to a clean state.
Remember that clearing the cache deletes every cached manifest and asset. The next CLI command will re-download them, so make sure you have an internet connection or keep a backup if you rely on offline usage.