Перейти к содержимому
GitHub

Commands

CLIGeneratedfrom capsule-cli/cli-surface.json

Это содержимое пока не доступно на вашем языке.

Synopsis

capsule <COMMAND>

Description

Capsule CLI provides tools for managing your photos and albums:

  • Authentication management
  • Sync local and remote data
  • Check status and list files
  • Manage albums and collections

Commands

  • capsule auth

    Authentication commands

  • capsule cache

    Keep a library’s cache within the budget the current connection class allows

  • capsule camera

    Find cameras on the network, import straight from one over PTP/IP, and manage the identity cameras pair with

  • capsule cull

    Review a local library: flag assets, filter by flag, sweep rejects to trash

  • capsule demo

    Run the offline end-to-end data-plane showcase (real cryptography, no network)

  • capsule edit

    Correct an asset’s capture time or location; the original’s value is always kept

  • capsule federation

    Follow albums whose home is another server: subscribe with the capability a share invite carried, list what this account follows, and unsubscribe

  • capsule import

    Import files into a local Capsule library

  • capsule label

    Add or remove a label on an asset, a region of one, a stack or an album

  • capsule library

    Manage the local library

  • capsule list

    List the assets the sync feed has delivered

  • capsule match

    Match metadata for current file

  • capsule peer

    Hand uploads to another device of this account, or upload ones handed to this device

  • capsule push

    Upload a local Capsule library to the server. An asset handed to another device with capsule peer delegate is left to that device while its hand-off is open

  • capsule region

    Mark or delete a circle or rectangle region on an asset

  • capsule repair

    Repair a local library in place, one signed correction per affected asset

  • capsule reset

    Reset all local CLI data

  • capsule restore

    Download originals from the server and verify them byte for byte

  • capsule server-info

    Show how the server signs people in: its identity provider, and whether it accepts passwords, from its public server-info record

  • capsule share

    Issue and revoke view-only share links on the server

  • capsule show

    Show what an imported asset’s signed sidecar records: caption, rating, tags, GPS, timestamps

  • capsule status

    Show current status

  • capsule sync

    Sync local and remote data

  • capsule trash

    Move assets to the trash or restore them from it, in the library and on the server

  • capsule verify

    Ask the server whether it durably holds this library’s originals, and keep its signed answer as evidence

Synopsis

capsule auth <COMMAND>

Description

Authentication commands

Commands

Synopsis

capsule auth activity [OPTIONS]

Description

Show the signed-in account’s recent security activity, newest first: sign-ins, sign-outs, revoked sessions, credential changes, enrolled devices and links

Options

  • --limit <N>

    The most events to show; the server keeps 90 days and at most 1000.

  • --json

    Print the events as one JSON document on stdout.

Synopsis

capsule auth escrow --library <PATH> [OPTIONS]

Description

Set up recovery for a library: bind it to the signed-in account and store its recovery backup under a new recovery secret

Options

  • --library <PATH>

    Required. Path to the Capsule library; it must not hold any assets yet.

  • --passphrase-stdin

    Read the library passphrase from stdin instead of prompting.

  • --replace

    Replace the account’s existing recovery backup; the previous recovery secret stops working.

Synopsis

capsule auth login [OPTIONS]

Description

Login to Capsule

Options

  • --email <EMAIL>

    Account email (prompted when omitted).

  • --password-stdin

    Read the password from stdin instead of prompting, so the command works in scripts and CI where there is no terminal.

  • --oidc

    Sign in through the server’s identity provider in a browser instead of with a password. The server must allow loopback redirects (OIDC_ALLOW_LOOPBACK_REDIRECT=true).

  • --no-browser

    With —oidc, print the sign-in address without opening a browser.

  • --device

    With —oidc, sign in from another device: print an address and a code instead of using a browser here.

  • --json

    Print the outcome as one JSON document on stdout; prompts, progress and, with —oidc, the sign-in address and code go to stderr.

Synopsis

capsule auth logout [OPTIONS]

Description

Logout from Capsule

Options

  • --json

    Print the outcome as one JSON document on stdout: whether a session was signed out.

Synopsis

capsule auth recover --library <PATH> [OPTIONS]

Description

Recover the signed-in account onto this machine from its recovery backup

Options

  • --library <PATH>

    Required. Directory for the recovered library; it must not hold a library yet.

  • --recovery-secret-stdin

    Read the recovery secret from the first line of stdin instead of prompting.

  • --passphrase-stdin

    Read the new library passphrase from the next line of stdin instead of prompting.

Synopsis

capsule auth register [OPTIONS]

Description

Create a Capsule account and sign in

Options

  • --email <EMAIL>

    Account email (prompted when omitted).

  • --password-stdin

    Read the password from stdin instead of prompting, so the command works in scripts and CI where there is no terminal.

Synopsis

capsule auth status [OPTIONS]

Description

Show authentication status

Options

  • --json

    Print the status as one JSON document on stdout: whether a session is stored, whether its access token is still fresh, and when that token expires.

Synopsis

capsule cache <COMMAND>

Description

Keep a library’s cache within the budget the current connection class allows

Commands

  • capsule cache budget

    Show the cache budget for the current connection class, or change the base budget every class scales from (2 GiB unless set)

  • capsule cache sweep

    Evict cached thumbnails, previews and fetched originals, least recently viewed first, until the cache fits the budget the current connection class allows. Pinned representations, device-owned originals and the library’s own media are never evicted

Synopsis

capsule cache budget [OPTIONS]

Description

Show the cache budget for the current connection class, or change the base budget every class scales from (2 GiB unless set)

Options

  • --set <BYTES>

    Store this many bytes as the base budget.

  • --reset

    Clear the stored base budget, returning to the 2 GiB default.

  • --json

    Print the plan as one JSON document on stdout.

Synopsis

capsule cache sweep --library <PATH> [OPTIONS]

Description

Evict cached thumbnails, previews and fetched originals, least recently viewed first, until the cache fits the budget the current connection class allows. Pinned representations, device-owned originals and the library’s own media are never evicted

Options

  • --library <PATH>

    Required. Path to the Capsule library.

  • --json

    Print the run as one JSON document on stdout: the plan it ran under and each evicted representation.

Synopsis

capsule camera <COMMAND>

Description

Find cameras on the network, import straight from one over PTP/IP, and manage the identity cameras pair with

Commands

  • capsule camera discover

    List the cameras on the local network that offer PTP/IP, by browsing DNS-SD _ptp._tcp for a bounded window

  • capsule camera identity

    Show the identity this client presents to cameras, creating it on first use. A camera that pairs remembers it, so it stays the same across runs

  • capsule camera import

    Copy every object off a camera into the library: each is received and hash-checked into a staging area under the library, then imported like a card reader’s files. Nothing on the camera is changed, and an interrupted run resumes where it stopped

Synopsis

capsule camera discover [OPTIONS]

Description

List the cameras on the local network that offer PTP/IP, by browsing DNS-SD _ptp._tcp for a bounded window

Options

  • --timeout <SECONDS>

    How long to listen for cameras, in seconds. Default: 3.

  • --json

    Print what answered as one JSON document on stdout: the service type browsed, the window, and each camera’s name, host, address and port.

Synopsis

capsule camera identity [OPTIONS]

Description

Show the identity this client presents to cameras, creating it on first use. A camera that pairs remembers it, so it stays the same across runs

Options

  • --name <NAME>

    Rename the identity; the camera-facing GUID is kept, so paired cameras still recognise this client.

  • --json

    Print the identity as one JSON document on stdout: its GUID and name, and whether this run created it.

Synopsis

capsule camera import --library <PATH> [OPTIONS]

Description

Copy every object off a camera into the library: each is received and hash-checked into a staging area under the library, then imported like a card reader’s files. Nothing on the camera is changed, and an interrupted run resumes where it stopped

Options

  • --address <HOST[:PORT]>

    The camera’s address on the network, as HOST or HOST:PORT (port 15740 when omitted); the camera shows it on its Wi-Fi or “Remote/PC connection” screen. Without it, the one camera capsule camera discover finds is used, and none or several refuse the run.

  • --library <PATH>

    Required. Path to the Capsule library.

  • --passphrase-stdin

    Read the library passphrase from stdin instead of prompting, so imports work in scripts and CI where there is no terminal.

  • --json

    Print the run as one JSON document on stdout: the camera, the identity presented to it, every object received or left on the camera and why, and the import’s report.

Synopsis

capsule cull --library <PATH> [OPTIONS]

Description

Review a local library: flag assets, filter by flag, sweep rejects to trash

Options

  • --library <PATH>

    Required. Path to the Capsule library.

  • --passphrase-stdin

    Read the library passphrase from stdin instead of prompting, so culling works in scripts and CI where there is no terminal.

  • --pick <ASSET_ID>

    Flag an asset as a keeper (repeatable).

  • --neutral <ASSET_ID>

    Clear an asset’s flag back to the never-flagged default (repeatable).

  • --reject <ASSET_ID>

    Flag an asset for rejection (repeatable).

  • --filter <FLAG>

    List the assets carrying one flag instead of only counting them. Values: pick, neutral, reject.

  • --sweep

    Move every rejected asset to trash. The only destructive step, and soft per retention — swept assets stay restorable until the window elapses.

  • --retain-days <DAYS>

    Retention window, in days, the sweep’s soft delete stamps. Default: 30.

Synopsis

capsule demo [OPTIONS]

Description

Run the offline end-to-end data-plane showcase (real cryptography, no network)

Options

  • --workdir <PATH>

    Working directory for the demo libraries (a temp dir is used if omitted).

  • --image <PATH>

    A real image/file to import (a small synthetic file is used if omitted).

Synopsis

capsule edit <COMMAND>

Description

Correct an asset’s capture time or location; the original’s value is always kept

Commands

  • capsule edit capture-time

    Correct an asset’s capture time; the original’s capture time is kept beside it

  • capsule edit location

    Correct an asset’s location, or record that it has none; the original’s location is kept beside it

Synopsis

capsule edit capture-time <TIME> --asset <ASSET> --library <PATH> [OPTIONS]

Description

Correct an asset’s capture time; the original’s capture time is kept beside it

Arguments

  • <TIME>

    Required. The corrected instant, RFC 3339 with an offset (2021-07-04T18:30:00Z).

Options

  • --asset <ASSET>

    Required. The asset: its id, or a prefix of at least 8 hex characters of its content hash.

  • --library <PATH>

    Required. Path to the Capsule library.

  • --passphrase-stdin

    Read the library passphrase from stdin instead of prompting, so the command works in scripts and CI where there is no terminal.

  • --json

    Print what the edit did as one JSON document on stdout: the target and its labels, capture time or location afterwards.

Synopsis

capsule edit location --asset <ASSET> --library <PATH> [OPTIONS]

Description

Correct an asset’s location, or record that it has none; the original’s location is kept beside it

Options

  • --asset <ASSET>

    Required. The asset: its id, or a prefix of at least 8 hex characters of its content hash.

  • --lat <DEGREES>

    Latitude, in degrees.

  • --lon <DEGREES>

    Longitude, in degrees.

  • --datum <DATUM>

    The datum the coordinates are in (stored verbatim, never converted): WGS-84 or GCJ-02. Default: WGS-84.

  • --clear

    Record that the asset has no location.

  • --library <PATH>

    Required. Path to the Capsule library.

  • --passphrase-stdin

    Read the library passphrase from stdin instead of prompting, so the command works in scripts and CI where there is no terminal.

  • --json

    Print what the edit did as one JSON document on stdout: the target and its labels, capture time or location afterwards.

Synopsis

capsule federation <COMMAND>

Description

Follow albums whose home is another server: subscribe with the capability a share invite carried, list what this account follows, and unsubscribe

Commands

  • capsule federation assets

    List every asset this account’s server pulled for one subscription: each live asset’s id, chain head, timestamp, author and size

  • capsule federation list

    List this account’s subscriptions to albums on other servers, live or lapsed

  • capsule federation metadata

    Fetch one pulled asset’s encrypted metadata blob, byte for byte as this account’s server pulled it, into a file

  • capsule federation subscribe

    Subscribe to an album on another server, so this account’s server pulls it. The capability token from the share invite is read from stdin as one line, never from the command line. Posting one for an album already subscribed renews it

  • capsule federation unsubscribe

    Stop pulling one album from another server for this account. Succeeds whether or not the album was subscribed

Synopsis

capsule federation assets <PEER> <ALBUM_ID> [OPTIONS]

Description

List every asset this account’s server pulled for one subscription: each live asset’s id, chain head, timestamp, author and size

Arguments

  • <PEER>

    Required. The album’s home server.

  • <ALBUM_ID>

    Required. The album, as its home server names it.

Options

  • --json

    Print the album as one JSON document on stdout: its peer, album id and assets.

Synopsis

capsule federation list [OPTIONS]

Description

List this account’s subscriptions to albums on other servers, live or lapsed

Options

  • --json

    Print the subscriptions as one JSON document on stdout.

Synopsis

capsule federation metadata <PEER> <ALBUM_ID> <ASSET_ID> --out <PATH> [OPTIONS]

Description

Fetch one pulled asset’s encrypted metadata blob, byte for byte as this account’s server pulled it, into a file

Arguments

  • <PEER>

    Required. The album’s home server.

  • <ALBUM_ID>

    Required. The album, as its home server names it.

  • <ASSET_ID>

    Required. The asset, as its home server names it.

Options

  • --out <PATH>

    Required. File the blob is written to, replacing any file already there.

  • --json

    Print the outcome as one JSON document on stdout: the peer, album and asset, the blob’s size and content hash, and the file it was written to.

Synopsis

capsule federation subscribe --issuer <HOST> [OPTIONS]

Description

Subscribe to an album on another server, so this account’s server pulls it. The capability token from the share invite is read from stdin as one line, never from the command line. Posting one for an album already subscribed renews it

Options

  • --issuer <HOST>

    Required. The album’s home server, which minted the capability (e.g. home.example).

  • --json

    Print the subscription as one JSON document on stdout: whether it was created, and its peer, album, scope, jti, issue, expiry and subscription instants and liveness.

Synopsis

capsule federation unsubscribe <PEER> <ALBUM_ID> [OPTIONS]

Description

Stop pulling one album from another server for this account. Succeeds whether or not the album was subscribed

Arguments

  • <PEER>

    Required. The album’s home server.

  • <ALBUM_ID>

    Required. The album, as its home server names it.

Options

  • --json

    Print the outcome as one JSON document on stdout.

Synopsis

capsule import <PATH>... --library <PATH> [OPTIONS]

Description

Import files into a local Capsule library

Arguments

  • <PATH>...

    Required. Source file or directory to import. Repeatable: a split Takeout export extracted into several folders is imported by naming every part in one run, so a media file and a sidecar that landed in different parts are still paired.

Options

  • --provider <PROVIDER>

    Read the source as an export from this service instead of as a plain directory tree, so its out-of-band metadata (capture time, GPS, captions, favorites, album membership) is folded into the imported assets. Values: takeout.

  • --library <PATH>

    Required. Path to the Capsule library.

  • --move

    Move files: delete each source once the server holds it, which needs --push. Without it every source is kept.

  • --force

    Re-import files even if they already exist (duplicate override).

  • --passphrase-stdin

    Read the library passphrase from stdin instead of prompting, so imports work in scripts and CI where there is no terminal.

  • --push

    Push the library to the server after importing — sugar for a capsule push run over the same library. The import itself stays offline.

  • --staged

    Stage the follow-on push (--push) in tier order, gating the preview and original tiers on the connection class.

  • --json

    Print the run as one JSON document on stdout: the totals, including how many originals arrived without derivatives and why, and each file’s outcome. Not combined with --push; run capsule push --json for the push report.

Synopsis

capsule label <COMMAND>

Description

Add or remove a label on an asset, a region of one, a stack or an album

Commands

Synopsis

capsule label add <LABEL> --library <PATH> [OPTIONS]

Description

Add a label, as a signed edit

Arguments

  • <LABEL>

    Required. The label: 1 to 256 bytes once trimmed.

Options

  • --asset <ASSET>

    Label this asset: its id, or a prefix of at least 8 hex characters of its SHA-256 content hash.

  • --stack <STACK_ID>

    Label this stack.

  • --album <ALBUM_ID>

    Label this album.

  • --region <REGION_ID>

    Label this region of the asset instead of the asset itself.

  • --library <PATH>

    Required. Path to the Capsule library.

  • --passphrase-stdin

    Read the library passphrase from stdin instead of prompting, so the command works in scripts and CI where there is no terminal.

  • --json

    Print what the edit did as one JSON document on stdout: the target and its labels, capture time or location afterwards.

Synopsis

capsule label remove <LABEL> --library <PATH> [OPTIONS]

Description

Remove a label: every add of it this device has seen

Arguments

  • <LABEL>

    Required. The label: 1 to 256 bytes once trimmed.

Options

  • --asset <ASSET>

    Label this asset: its id, or a prefix of at least 8 hex characters of its SHA-256 content hash.

  • --stack <STACK_ID>

    Label this stack.

  • --album <ALBUM_ID>

    Label this album.

  • --region <REGION_ID>

    Label this region of the asset instead of the asset itself.

  • --library <PATH>

    Required. Path to the Capsule library.

  • --passphrase-stdin

    Read the library passphrase from stdin instead of prompting, so the command works in scripts and CI where there is no terminal.

  • --json

    Print what the edit did as one JSON document on stdout: the target and its labels, capture time or location afterwards.

Synopsis

capsule library <COMMAND>

Description

Manage the local library

Commands

Synopsis

capsule library info <PATH>

Description

Show library information

Arguments

  • <PATH>

    Required. Path to the library.

Synopsis

capsule library init <PATH> [OPTIONS]

Description

Create a new Capsule library

Arguments

  • <PATH>

    Required. Directory for the new library.

Options

  • --name <NAME>

    Human-readable library name. Default: My Library.

Synopsis

capsule library list --library <PATH> [OPTIONS]

Description

List a library’s timeline, albums or stacks, as the TUI’s library browser shows them

Options

  • --library <PATH>

    Required. Path to the Capsule library.

  • --view <VIEW>

    Which view to list. Values: timeline, albums, stacks. Default: timeline.

  • --passphrase-stdin

    Read the library passphrase from stdin instead of prompting, so the command works in scripts and CI where there is no terminal.

  • --json

    Print the view as one JSON document on stdout: the timeline’s assets, every album with its labels and assets, or every stack with its labels and members.

Synopsis

capsule library rebuild <PATH>

Description

Rebuild the SQLite index from sidecar files

Arguments

  • <PATH>

    Required. Path to the library.

Synopsis

capsule list [OPTIONS]

Description

List the assets the sync feed has delivered

Options

  • --include-deleted

    Include assets the server has tombstoned (deleted) as well as live ones.

Synopsis

capsule match <PATH>

Description

Match metadata for current file

Arguments

  • <PATH>

    Required. Path to the file to match metadata for.

Synopsis

capsule peer <COMMAND>

Description

Hand uploads to another device of this account, or upload ones handed to this device

Commands

  • capsule peer accept

    Take hand-off files another device of this account sealed for this one, then upload every hand-off this device holds under its own session, deleting each copy once the server holds it. A hand-off that can never succeed is quarantined: kept, not retried, listed by capsule peer status and deleted only by capsule peer discard

  • capsule peer delegate

    Seal assets’ uploads for another device of this account to upload later. Each asset is written to a hand-off file the other device takes with capsule peer accept, or with --peer handed over the LAN peering channel to capsule peer accept --listen; this device keeps every original until its own check finds the server holds it

  • capsule peer discard

    Delete a quarantined hand-off this device holds for another device. Only a quarantined copy can be discarded; it may be the account’s only copy of the asset, so recover it first if its origin device is lost

  • capsule peer forget-delete

    Stop retrying a delete made after a hand-off that capsule peer status keeps reporting as not applied because the library holds neither the asset nor its tombstone. Local only: the server keeps the asset as it holds it. Refused while the library still holds the asset’s chain, since capsule peer status can then send the delete

  • capsule peer offer

    Send this library’s assets to another device of this account over the LAN peering channel: dial its capsule peer pull --listen, verify it over mutual TLS as a device of this account, and serve it one backup artifact sealed for that session. The other device skips what it already holds and refuses what it has purged

  • capsule peer pull

    Take assets another device of this account sends with capsule peer offer: listen on ADDR, verify the device over mutual TLS, pull its backup artifact and write every asset that is new or a forward update. An asset this device has purged is refused, and the run is refused before listening if the purge record cannot be read

  • capsule peer status

    Show this device’s handed-off assets: take the other device’s acknowledgements, take back uploads that are overdue or whose device was revoked, and release what the server holds. A delete made after a hand-off is held until the server holds the asset, then sent. Also lists every hand-off this device quarantined

Synopsis

capsule peer accept --library <PATH> [OPTIONS]

Description

Take hand-off files another device of this account sealed for this one, then upload every hand-off this device holds under its own session, deleting each copy once the server holds it. A hand-off that can never succeed is quarantined: kept, not retried, listed by capsule peer status and deleted only by capsule peer discard

Options

  • --library <PATH>

    Required. Path to this device’s Capsule library.

  • --from <FILE>

    A hand-off file to take (repeatable); without one, only the held hand-offs upload.

  • --listen <ADDR>

    Also take hand-offs over the LAN peering channel: listen on ADDR (e.g. 0.0.0.0:7420) for the other device’s capsule peer delegate --peer, verify it over mutual TLS as a device of this account, pull each hand-off it sealed for this device, and acknowledge each over the same channel once it is persisted. Only local-network peers are admitted. The address bound is printed on stderr.

  • --listen-timeout <SECONDS>

    Seconds --listen waits for a peer to connect and verify; a verified session is not cut by it, but runs to its end at a minimum transfer rate. Default: 300.

  • --staged

    Open the tier sessions in ladder order, gating the above-index tiers on the connection class, as capsule push --staged does.

  • --passphrase-stdin

    Read the library passphrase from stdin instead of prompting, so the command works in scripts and CI where there is no terminal.

  • --json

    Print the run as one JSON document on stdout: each hand-off taken with its acknowledgement (and, over the channel, the peer it came from and whether the peer took the acknowledgement), each refused, and what became of each held hand-off (removed, kept, failed and kept, or permanently refused and quarantined), each failure with a stable kind, the server’s code when it gave one, and the detail.

Synopsis

capsule peer delegate --library <PATH> --asset <ASSET_ID> [OPTIONS]

Description

Seal assets’ uploads for another device of this account to upload later. Each asset is written to a hand-off file the other device takes with capsule peer accept, or with --peer handed over the LAN peering channel to capsule peer accept --listen; this device keeps every original until its own check finds the server holds it

Options

  • --library <PATH>

    Required. Path to the Capsule library holding the assets.

  • --to <DEVICE_ID>

    The device to hand the uploads to: its id in this account’s device directory. Required with --out; with --peer, the device the channel verifies must be this one.

  • --asset <ASSET_ID>

    Required. An asset to hand off (repeatable).

  • --out <DIR>

    Directory the hand-off files are written to.

  • --peer <HOST:PORT>

    Hand the uploads over the LAN peering channel instead of files: dial the other device’s capsule peer accept --listen at HOST:PORT, verify it over mutual TLS as a device of this account, and serve it each hand-off to pull and acknowledge over the same channel. Only a local-network address is dialed.

  • --deadline-hours <HOURS>

    Hours to wait for the server to hold the assets before taking the uploads back. Default: 24.

  • --passphrase-stdin

    Read the library passphrase from stdin instead of prompting, so the command works in scripts and CI where there is no terminal.

  • --json

    Print the run as one JSON document on stdout: the delegate, each asset handed off, with its file or whether the delegate acknowledged it over the channel, and its content address, and each that was not, with a stable kind, the server’s code when it gave one, and the detail.

Synopsis

capsule peer discard <HAND_OFF> --library <PATH> [OPTIONS]

Description

Delete a quarantined hand-off this device holds for another device. Only a quarantined copy can be discarded; it may be the account’s only copy of the asset, so recover it first if its origin device is lost

Arguments

  • <HAND_OFF>

    Required. The quarantined hand-off’s content address, as capsule peer status lists it.

Options

  • --library <PATH>

    Required. Path to this device’s Capsule library.

  • --passphrase-stdin

    Read the library passphrase from stdin instead of prompting, so the command works in scripts and CI where there is no terminal.

  • --json

    Print the discarded hand-off as one JSON document on stdout: its content address, its asset and the kind it had been quarantined for.

Synopsis

capsule peer forget-delete <ASSET_ID> --library <PATH> [OPTIONS]

Description

Stop retrying a delete made after a hand-off that capsule peer status keeps reporting as not applied because the library holds neither the asset nor its tombstone. Local only: the server keeps the asset as it holds it. Refused while the library still holds the asset’s chain, since capsule peer status can then send the delete

Arguments

  • <ASSET_ID>

    Required. The asset, as capsule peer status lists it.

Options

  • --library <PATH>

    Required. Path to the Capsule library holding the assets.

  • --passphrase-stdin

    Read the library passphrase from stdin instead of prompting, so the command works in scripts and CI where there is no terminal.

  • --json

    Print the run as one JSON document on stdout: the asset and how many outbox entries were dropped.

Synopsis

capsule peer offer --library <PATH> --peer <HOST:PORT> [OPTIONS]

Description

Send this library’s assets to another device of this account over the LAN peering channel: dial its capsule peer pull --listen, verify it over mutual TLS as a device of this account, and serve it one backup artifact sealed for that session. The other device skips what it already holds and refuses what it has purged

Options

  • --library <PATH>

    Required. Path to the Capsule library holding the assets.

  • --peer <HOST:PORT>

    Required. The other device’s capsule peer pull --listen address. Only a local-network address is dialed.

  • --to <DEVICE_ID>

    The device the channel must verify; refused if the device at --peer is another.

  • --asset <ASSET_ID>

    An asset to send (repeatable); without one, every asset in the library is sent.

  • --passphrase-stdin

    Read the library passphrase from stdin instead of prompting, so the command works in scripts and CI where there is no terminal.

  • --json

    Print the run as one JSON document on stdout: the device the channel verified, the artifact’s content address, size and assets, how many bytes the other device pulled, and each failure with a stable kind and the detail.

Synopsis

capsule peer pull --library <PATH> --listen <ADDR> [OPTIONS]

Description

Take assets another device of this account sends with capsule peer offer: listen on ADDR, verify the device over mutual TLS, pull its backup artifact and write every asset that is new or a forward update. An asset this device has purged is refused, and the run is refused before listening if the purge record cannot be read

Options

  • --library <PATH>

    Required. Path to this device’s Capsule library.

  • --listen <ADDR>

    Required. The address to listen on (e.g. 0.0.0.0:7420). Only local-network peers are admitted. The address bound is printed on stderr.

  • --listen-timeout <SECONDS>

    Seconds to wait for a peer to connect and verify; a verified session is not cut by it, but runs to its end at a minimum transfer rate. Default: 300.

  • --passphrase-stdin

    Read the library passphrase from stdin instead of prompting, so the command works in scripts and CI where there is no terminal.

  • --json

    Print the run as one JSON document on stdout: the peer, each artifact pulled, the assets applied, quarantined (the peer sent stale state), tombstoned (purged here), identical (already held) and incomplete, each failure and each refused connection with a stable kind and the detail.

Synopsis

capsule peer status --library <PATH> [OPTIONS]

Description

Show this device’s handed-off assets: take the other device’s acknowledgements, take back uploads that are overdue or whose device was revoked, and release what the server holds. A delete made after a hand-off is held until the server holds the asset, then sent. Also lists every hand-off this device quarantined

Options

  • --library <PATH>

    Required. Path to the Capsule library holding the assets.

  • --ack <FILE>

    An acknowledgement file capsule peer accept wrote (repeatable).

  • --passphrase-stdin

    Read the library passphrase from stdin instead of prompting, so the command works in scripts and CI where there is no terminal.

  • --json

    Print the run as one JSON document on stdout: each delegation with its state, each refused acknowledgement with a stable kind and the detail, each quarantined hand-off with its file, the stable kind of its refusal, the server’s code when it gave one, and the detail, and each delete made after a hand-off with the records between the hand-off and it (held, sent, failed and kept, or refused and not retried).

Synopsis

capsule push --library <PATH> [OPTIONS]

Description

Upload a local Capsule library to the server. An asset handed to another device with capsule peer delegate is left to that device while its hand-off is open

Options

  • --library <PATH>

    Required. Path to the Capsule library to push.

  • --passphrase-stdin

    Read the library passphrase from stdin instead of prompting, so pushes work in scripts and CI where there is no terminal.

  • --dry-run

    Report what would be uploaded without opening a single upload session.

  • --force

    Re-drive every blob regardless of what the server already holds.

  • --staged

    Open the tier sessions in ladder order (index → preview → original), gating the above-index tiers on the connection class, instead of opening all eagerly.

  • --asset <ASSET_ID>

    Push only this asset (repeatable); every asset in the library when omitted. Retries the assets a run reported failed without re-importing them or re-checking the ones that reached custody.

  • --json

    Print the run as one JSON document on stdout: the totals and each asset’s outcome (verified, failed with its error, delegated to another device, or planned on a dry run).

  • --path-cost <COST>

    What the path costs; on metered or constrained the push is staged and the preview and original tiers wait. Values: unmetered, metered, constrained.

  • --path-interface <INTERFACE>

    The interface the path runs over. Values: wired, wifi, cellular, other.

  • --power <POWER>

    The power source; low-power holds the preview and original tiers back. Values: external, battery, low-power.

  • --thermal <STATE>

    The thermal state; serious holds the preview and original tiers back, critical sends nothing. Values: nominal, fair, serious, critical.

  • --background-deadline <SECONDS>

    Run as a background task the OS ends this many seconds from now; under a minute holds the preview and original tiers back.

Synopsis

capsule region <COMMAND>

Description

Mark or delete a circle or rectangle region on an asset

Commands

  • capsule region add

    Mark a circle or rectangle region on an asset, in fractions of the image (display orientation), and print its id

  • capsule region delete

    Delete a region of an asset. Final: another device’s edit of it does not bring it back

Synopsis

capsule region add --asset <ASSET> --library <PATH> [OPTIONS]

Description

Mark a circle or rectangle region on an asset, in fractions of the image (display orientation), and print its id

Options

  • --asset <ASSET>

    Required. The asset: its id, or a prefix of at least 8 hex characters of its content hash.

  • --circle <CX,CY,R>

    A circle: centre, a fraction of width and height, and radius, a fraction of the shorter side (min(width, height)).

  • --rect <X,Y,W,H>

    A rectangle: top-left corner, width and height, each a fraction of the image.

  • --label <LABEL>

    Give the region this label (repeatable).

  • --library <PATH>

    Required. Path to the Capsule library.

  • --passphrase-stdin

    Read the library passphrase from stdin instead of prompting, so the command works in scripts and CI where there is no terminal.

  • --json

    Print what the edit did as one JSON document on stdout: the target and its labels, capture time or location afterwards.

Synopsis

capsule region delete <REGION_ID> --asset <ASSET> --library <PATH> [OPTIONS]

Description

Delete a region of an asset. Final: another device’s edit of it does not bring it back

Arguments

  • <REGION_ID>

    Required. The region.

Options

  • --asset <ASSET>

    Required. The asset: its id, or a prefix of at least 8 hex characters of its content hash.

  • --library <PATH>

    Required. Path to the Capsule library.

  • --passphrase-stdin

    Read the library passphrase from stdin instead of prompting, so the command works in scripts and CI where there is no terminal.

  • --json

    Print what the edit did as one JSON document on stdout: the target and its labels, capture time or location afterwards.

Synopsis

capsule repair <COMMAND>

Description

Repair a local library in place, one signed correction per affected asset

Commands

  • capsule repair capture-time

    Re-read each original’s EXIF capture time and report every asset whose signed capture timestamp disagrees with it; with —apply, correct each one as a signed metadata update

Synopsis

capsule repair capture-time --library <PATH> [OPTIONS]

Description

Re-read each original’s EXIF capture time and report every asset whose signed capture timestamp disagrees with it; with —apply, correct each one as a signed metadata update

Options

  • --library <PATH>

    Required. Path to the Capsule library.

  • --passphrase-stdin

    Read the library passphrase from stdin instead of prompting, so the command works in scripts and CI where there is no terminal.

  • --apply

    Write the corrections. Without this flag the pass only reports what it would change; each correction is an irreversible signed record on the asset’s chain.

  • --limit <COUNT>

    Correct at most this many affected assets in one —apply run (the report still covers the whole library); only meaningful with —apply.

Synopsis

capsule reset [OPTIONS]

Description

Reset all local CLI data

Options

  • --config

    Reset configuration.

  • --data

    Reset data directory.

  • --cache

    Reset cache directory.

  • --all

    Reset all data.

Synopsis

capsule restore --library <PATH> --out <DIR> [OPTIONS]

Description

Download originals from the server and verify them byte for byte

Options

  • --library <PATH>

    Required. Path to the Capsule library whose album keys open the originals.

  • --out <DIR>

    Required. Directory the originals are written to, one file per asset named by its id; an interrupted run resumes from what it left there.

  • --album <ALBUM_ID>

    Restore only the assets of this album.

  • --asset <ASSET_ID>

    Restore only this asset.

  • --passphrase-stdin

    Read the library passphrase from stdin instead of prompting, so restores work in scripts and CI where there is no terminal.

  • --json

    Print the run as one JSON document on stdout: the totals and each asset’s outcome (restored, already present, or failed with its error).

Synopsis

capsule server-info [OPTIONS]

Description

Show how the server signs people in: its identity provider, and whether it accepts passwords, from its public server-info record

Options

  • --json

    Print the record as one JSON document on stdout: the server’s id, whether it has an identity provider (oidc) and whether it refuses passwords (password_disabled).

Synopsis

capsule share <COMMAND>

Description

Issue and revoke view-only share links on the server

Commands

Synopsis

capsule share create --library <PATH> [OPTIONS]

Description

Issue a view-only share link for an album or one asset, and print the URL to send

Options

  • --library <PATH>

    Required. Path to the Capsule library.

  • --album <ALBUM_ID>

    Share every asset of this album that is not in trash.

  • --asset <ASSET_ID>

    Share this one asset.

  • --expires-at <TIMESTAMP>

    When the link stops opening, as an RFC 3339 timestamp (e.g. 2026-12-31T23:59:59Z).

  • --passphrase-stdin

    Read the library passphrase from stdin instead of prompting, so the command works in scripts and CI where there is no terminal.

  • --protect

    Protect the link with a passphrase the recipient must enter as well as open the URL.

  • --link-passphrase-stdin

    With —protect, read the link passphrase from stdin instead of prompting (the line after the library passphrase when —passphrase-stdin is also given).

  • --json

    Print the issued link as one JSON document on stdout: its opaque id, URL, how many assets it covers, whether it is passphrase-protected, and its expiry.

Synopsis

capsule share revoke <OPAQUE_ID> [OPTIONS]

Description

Revoke a share link, so its URL stops opening

Arguments

  • <OPAQUE_ID>

    Required. The link’s opaque id: the 32 hex characters after /s/ in its URL.

Options

  • --json

    Print the outcome as one JSON document on stdout: the revoked link’s opaque id.

Synopsis

capsule show <ASSET> --library <PATH> [OPTIONS]

Description

Show what an imported asset’s signed sidecar records: caption, rating, tags, GPS, timestamps

Arguments

  • <ASSET>

    Required. The asset to show: its id, or a prefix of at least 8 hex characters of its SHA-256 content hash — the same digest shasum -a 256 prints for the source file.

Options

  • --library <PATH>

    Required. Path to the Capsule library.

  • --passphrase-stdin

    Read the library passphrase from stdin instead of prompting, so the command works in scripts and CI where there is no terminal.

  • --json

    Print the asset as one JSON document on stdout: every sidecar field, null where unset, and its provenance history record by record.

Synopsis

capsule status

Description

Show current status

Synopsis

capsule sync [OPTIONS] <COMMAND>

Description

Sync local and remote data

Options

  • --force

    Discard the saved cursor and re-drain the feed from the start. The per-album anti-rewind floor still applies, so this cannot resurrect stale entries.

  • --dry-run

    Perform a dry run without making changes.

  • --library <PATH>

    The library to re-announce from when the server has rebuilt this library’s index: with it, a sync that meets a stale cursor runs capsule sync reannounce itself.

  • --passphrase-stdin

    Read the library passphrase from stdin instead of prompting (with --library).

  • --json

    Print the run as one JSON document on stdout: how many changes were applied across how many albums and pages, whether the server had rebuilt the index, and the re-announce report when --library ran one.

Commands

  • capsule sync reannounce

    Give the server back the signed manifests this library holds and its feed no longer lists, after it rebuilt this library’s index. Manifests only: no bytes are uploaded

Synopsis

capsule sync reannounce --library <PATH> [OPTIONS]

Description

Give the server back the signed manifests this library holds and its feed no longer lists, after it rebuilt this library’s index. Manifests only: no bytes are uploaded

Options

  • --library <PATH>

    Required. Path to the Capsule library whose manifests are re-announced.

  • --passphrase-stdin

    Read the library passphrase from stdin instead of prompting, so the command works in scripts and CI where there is no terminal.

  • --dry-run

    Report what would be re-announced without sending anything.

  • --json

    Print the run as one JSON document on stdout: the totals and each asset’s answer (restored, already indexed, missing blobs, refused, or planned on a dry run).

Synopsis

capsule trash <COMMAND>

Description

Move assets to the trash or restore them from it, in the library and on the server

Commands

  • capsule trash delete

    Move assets to the trash: sign a delete carrying a retention window and send it to the server. Soft: each asset stays restorable until its window elapses

  • capsule trash restore

    Restore assets from the trash: sign a trash-restore and send it to the server. An asset whose retention window has closed cannot be restored, and is not retried

Synopsis

capsule trash delete --library <PATH> --asset <ASSET_ID> [OPTIONS]

Description

Move assets to the trash: sign a delete carrying a retention window and send it to the server. Soft: each asset stays restorable until its window elapses

Options

  • --library <PATH>

    Required. Path to the Capsule library.

  • --asset <ASSET_ID>

    Required. The asset to move to the trash (repeatable).

  • --retain-days <DAYS>

    Retention window, in days, a fresh delete signs. An asset already in the trash (for example by capsule cull --sweep) is resent with the window it was deleted with; --json reports that window as retention_until. Default: 30.

  • --passphrase-stdin

    Read the library passphrase from stdin instead of prompting, so the command works in scripts and CI where there is no terminal.

  • --json

    Print the run as one JSON document on stdout: the totals and each asset’s outcome (applied, or failed with a stable kind and the server’s code).

Synopsis

capsule trash restore --library <PATH> --asset <ASSET_ID> [OPTIONS]

Description

Restore assets from the trash: sign a trash-restore and send it to the server. An asset whose retention window has closed cannot be restored, and is not retried

Options

  • --library <PATH>

    Required. Path to the Capsule library.

  • --asset <ASSET_ID>

    Required. The asset to restore (repeatable).

  • --passphrase-stdin

    Read the library passphrase from stdin instead of prompting, so the command works in scripts and CI where there is no terminal.

  • --json

    Print the run as one JSON document on stdout: the totals and each asset’s outcome (applied, or failed with a stable kind such as retention_elapsed, the server’s code and the retention floor).

Synopsis

capsule verify --library <PATH> [OPTIONS]

Description

Ask the server whether it durably holds this library’s originals, and keep its signed answer as evidence

Options

  • --library <PATH>

    Required. Path to the Capsule library.

  • --asset <ASSET_ID>

    Verify only this asset (repeatable); every asset in the library when omitted.

  • --signed

    Ask for the server’s signed verdict, check it under the server’s attestation key, and keep it in the library beside each asset’s custody receipts.

  • --deep

    Have the server re-hash the stored bytes rather than only check they are present; spends the account’s deep-verify budget.

  • --passphrase-stdin

    Read the library passphrase from stdin instead of prompting, so the command works in scripts and CI where there is no terminal.

  • --json

    Print the run as one JSON document on stdout: the totals and each asset’s verdict (durable, not durable, or failed with its error).