Skip to content
Edith

Docs

Command reference

ed shelf manifest

Create a portable SHA-256 manifest, then verify files in a received folder. These commands belong to Shelf and run through its extension runtime.

Terminal
ed shelf manifest create <paths...> --root <folder> --output <new-file> [--json]ed shelf manifest verify <manifest> --root <received-folder> [--output <new-report>] [--json]

create accepts file and folder paths relative to --root. Folder selections include their files recursively, including hidden files, but skip Finder bookkeeping (.DS_Store, Icon\r and ._ AppleDouble files), symbolic links and names that are not portable. A path you name explicitly must still be a portable regular file or folder. Preserve those relative paths when transferring the files. The output is a version 1 JSON document with algorithm: "sha256" and an entries array. Each entry has path, size in bytes, and sha256 as 64 lowercase hexadecimal characters. Entries sort by relative path. No absolute source paths are saved.

Terminal
ed shelf manifest create notes report.pdf --root ./source --output ./checksums.jsoned shelf manifest verify ./checksums.json --root ./received --json

The selected files are read without changing them. The manifest is created only after hashing completes, and an existing output file is never replaced. --json on create also prints the saved manifest to stdout. Without it, the command prints the file count and saved path.

verify does not change the received files or manifest. It checks every listed entry, retaining its order, and ignores extra files in the received folder. Without --json, stdout is a result/path table. Use --output <new-report> to save the full JSON report without replacing an existing file; stdout then gives a short count. --json prints a report:

JSON
{  "results": [    {      "actualSHA256": "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad",      "actualSize": 3,      "path": "notes/report.txt",      "status": "matched"    },    {      "path": "empty.txt",      "status": "missing"    }  ],  "verified": false}
Status Meaning
matched Both size and SHA-256 match.
changed The received content or size differs. Actual hash and size are included.
missing A file or parent folder is absent.
duplicate The same path occurs more than once, including case or Unicode normalization collisions. Every conflicting entry is marked.
invalidPath The path is absolute, contains traversal, empty components, control characters or nonportable names. It is never read.
invalidEntry The SHA-256 value is not 64 lowercase hexadecimal characters.
unreadable The path is a symlink, a nonregular file, cannot be read, or changed while being read.

Paths use /. Backslashes, Windows drive prefixes, reserved device names, trailing spaces and periods are rejected. Symlinks in parent folders are also refused. Malformed JSON, unsupported versions or algorithms, and empty manifests fail the command before any verification result is emitted.

Both commands stream files in 1 MiB chunks. Ctrl-C cancels the runtime stream and releases file handles. There is no successful report for a cancelled run. The stream deadline is six hours. Limits are 5000 files, 10000 paths including selected folders, 64 folder levels, and a 4 MiB manifest. Stdout is limited to 512 KiB to fit the runtime stream buffer. For larger manifests, omit --json on create and read the saved file. For larger verification reports, use --output without --json.

Exit 0 means creation succeeded or all entries matched. Verification exits 1 when any entry fails, with the per-file report still on stdout or in --output. Other read, format and save failures also exit 1 with a message on stderr. Invalid command syntax, an existing create output filename, and oversized stdout exit 2. Extension access failures use the ordinary Shelf runtime error contract.

In the notch tray, right-click files and choose Create Checksum Manifest, or use the tray's more menu for every file. The window hashes the shelf copies and Add manifest to Shelf parks the result as Checksums.json. Right-click a JSON manifest on the Shelf and choose Verify Files With This Manifest to check the files parked next to it.