Command reference
snapdir has a small universal output surface and command-specific option
families. The overview documents that shared model, environment
variables, and store URI schemes, while each page below covers one subcommand.
- Overview — command options,
SNAPDIR_*environment variables, and store URI schemes.
Snapshotting
-
snapdir manifest— print the manifest of a directory. -
snapdir id— print the manifest ID of a directory or a piped manifest. -
snapdir stage— save a snapshot of a directory into the local cache.
Distributing
-
snapdir push— push a snapshot to a store. -
snapdir fetch— fetch a snapshot from a store into the local cache. -
snapdir pull— fetch a snapshot from a store and check it out. -
snapdir checkout— check out a snapshot to a directory. -
snapdir sync— copy a snapshot directly between two stores. -
snapdir diff— compare manifest sides without downloading objects.
Verifying
-
snapdir verify— verify the integrity of a snapshot in a store. -
snapdir verify-cache— verify the integrity of the local cache. -
snapdir flush-cache— flush the local cache.
Catalog and history
-
snapdir locations— list directories and stores where snapshots have been recorded. -
snapdir ancestors— list ancestor snapshot IDs and their locations. -
snapdir revisions— list snapshot IDs created on a location.
Other
snapdir defaults— print default settings and arguments.snapdir version— print the version.snapdir autocomplete— generate shell completions.