User Guide
UnauditedThis guide covers the capsule CLI, the reference client. Commands marked (planned) are on
the roadmap and not yet
available. capsule <command> --help is authoritative for flags; the
CLI reference (CLI) lists them all.
Set up
Section titled “Set up”- Create a library:
capsule library init --name "Photos". The library is a local, encrypted directory; its passphrase protects the keys on this machine. - Sign in to your server:
capsule auth registerorcapsule auth login(--oidcor--devicefor single sign-on). - Set up recovery:
capsule auth escrow. Store the printed recovery secret offline. Without it and your passphrase, a lost machine means a lost library, because the server cannot decrypt anything.
Import and back up
Section titled “Import and back up”capsule import <path>copies files into the library, signs each asset’s provenance and metadata, and generates thumbnails.--provider takeoutimports a Google Takeout archive with its sidecar metadata (Migrating from Google Photos).capsule pushuploads the library. Uploads resume where they stopped, so re-runningpushis always safe. After each asset,pushasks the server to confirm it durably holds every blob and keeps the server’s signed custody receipts in the library. A failed asset is reported and the run carries on. The command exits non-zero if any asset failed, and--jsonlists each asset’s outcome.capsule import --pushdoes both in one step.- Keep your originals until custody is verified. An asset is safely stored only once the
server reports it durable and has issued a signed custody receipt, which
pushreports as verified. Do not delete source files before then.import --move --pushdeletes each source only after its asset is verified. Without--push,--movekeeps every source and says so, and a laterimport --move --pushover the same files releases them. capsule restore(planned) downloads originals and checks them byte for byte against what was signed at import.
Organize
Section titled “Organize”- Labels are free-form and attach to an asset, a stack (RAW+JPEG pair, burst, bracket), an album or a region of an image. Labels you add are kept separate from AI-suggested ones, and you can promote or dismiss a suggestion. Asset labels exist today; stack, album and region labels are (planned).
capsule show <asset>prints what an asset’s signed metadata records: caption, rating, labels, location, capture time.capsule repair capture-timefinds assets whose capture time disagrees with the original’s EXIF and, with--apply, corrects them. Location editing is (planned).
Every edit is a signed, append-only change: the earlier value stays in the asset’s provenance history, and concurrent edits from two devices merge deterministically.
Delete safely
Section titled “Delete safely”Fix metadata such as geolocation before you delete, while the surrounding assets still give you context. A photo with no location of its own is easy to place while its neighbours from the same walk are in the library; once they are gone, so is that context.
capsule cullflags assets as pick, neutral or reject and filters by flag.capsule cull --sweepmoves rejects to the trash. Trashed assets stay recoverable for the retention window (--retain-days) before they are purged.capsule trash delete --asset <id>moves an asset to the trash on the server as well as in the library. An asset already in the trash, for example aftercapsule cull --sweep, keeps the retention window it was trashed with:--retain-daysapplies only to a fresh delete, and--jsonreports the window sent asretention_until.capsule trash restore --asset <id>brings an asset back. A restore after the retention window has closed is refused (retention_elapsedunder--json) and not retried; the asset stays in the trash until it is purged.
capsule share create --album <id>or--asset <id>issues a view-only link;--protectadds a link passphrase and--expires-atan expiry. The link carries its key in the URL fragment, which never reaches the server.capsule share revoke <id>stops a link from opening.
Sync another machine
Section titled “Sync another machine”capsule syncpulls the library’s change feed from the server;capsule listshows what it delivered.capsule auth recoverbrings the account onto a new machine from the recovery secret.