Skip to content

Sphere v0.1.3 - Local Cache Management CLI

Choose a tag to compare

@Nakadra Nakadra released this 18 Jun 07:50
· 2 commits to main since this release

This release introduces a suite of commands for managing the local Sphere cache index (~/.sphere/cache/index.json), significantly improving the user experience for local dependency management.

New Features:

  • sphere cache list: Displays all Sphere IDs and their associated file paths currently registered in the local cache index.
  • sphere cache add <ID> <FILEPATH>: Adds a new Sphere to the local cache index.
    • Maps the given <ID> to the specified <FILEPATH>.
    • Includes an optional --copy-to-cache flag:
      • If true, the Sphere file is copied into the ~/.sphere/cache/ directory with a sanitized filename derived from the ID.
      • If false (default), the index stores the absolute path to the original <FILEPATH>.
  • sphere cache remove <ID>: Removes the specified Sphere ID from the local cache index.
    • Note: This command only removes the entry from the index.json file. It does not delete the actual .sphere file from the cache directory or the original filesystem location.

These commands provide users with greater control and visibility into their local Sphere environment, paving the way for more advanced dependency management features in the future.

Thanks to the founding team for their continued development efforts!