CLI
Install the command from a source checkout:
$ cargo install --path crates/casitaThe examples use --repository ./cache to keep data in a directory you choose.
Without that option, Casita uses its per-user data directory. sync uses
--from and --to instead.
Store and read files
Section titled “Store and read files”$ casita --repository ./cache import ./project --root projects/demo$ casita --repository ./cache root ls$ casita --repository ./cache tree list casita.directory.v1:...$ casita --repository ./cache checkout casita.directory.v1:... ./restoredReplace the example key with the one printed by import. tree list shows a
directory’s direct entries; checkout restores it to an absent or empty path.
See filesystem import for cache and checkout behavior.
Keep or release a graph
Section titled “Keep or release a graph”$ casita --repository ./cache root set releases/current casita.directory.v1:...$ casita --repository ./cache root rm releases/current$ casita --repository ./cache gc --dry-run$ casita --repository ./cache gcA root name retains the complete graph it points to. Removing a name makes
unshared data eligible for collection; it does not immediately delete bytes.
Checkout creates its own auto/checkout/... root unless you pass --no-root.
Copy a graph
Section titled “Copy a graph”$ casita sync --from ./cache --to ./mirror --root projects/demoThe destination verifies received objects before moving the selected root. For SSH and S3 endpoints or copying a single path, see the sync guide.
Check integrity
Section titled “Check integrity”$ casita --repository ./cache fsck --audit-only$ casita --repository ./cache fsck --dry-run$ casita --repository ./cache fsck --source ./verified-replicaThe first command only audits. The second previews safe physical repairs; the third may repair physical data from an independently verified local replica. See operations before restoring or backing up a repository.
Other workflows
Section titled “Other workflows”- Run a stored application
- Import tar, Git, or Casitar
- CLI reference for every option and its exact behavior