spatialpack hash
Synopsis
Section titled “Synopsis”spatialpack hash <command> [options]Description
Section titled “Description”Hash computation commands.
Compute BLAKE3 integrity hashes for pack assets.
Commands
Section titled “Commands”| Command | Description |
|---|---|
hash file | Compute BLAKE3 hash for a single file. |
hash pack | Compute hashes for all assets in a spatialpack. |
hash verify | Verify all pack asset hashes against manifest. |
Examples
Section titled “Examples”# Compute hash for a single filespatialpack hash file input.parquet
# Scan pack and compute all hashesspatialpack hash pack ./my-pack/
# Update manifest with computed hashesspatialpack hash pack ./my-pack/ --update-manifestCommand Details
Section titled “Command Details”hash file
Section titled “hash file”Compute BLAKE3 hash for a single file.
spatialpack hash file FILE_PATH [options]Arguments
Section titled “Arguments”FILE_PATH — path (required)
Options:
| Option | Type | Default | Description |
|---|---|---|---|
--json-output | flag | false | Output as JSON |
spatialpack hash file input.parquetspatialpack hash file rasters/dem.tif --json-outputhash pack
Section titled “hash pack”Compute hashes for all assets in a spatialpack.
Scans the pack’s rasters/ and layers/ directories and computes BLAKE3 hashes for all files.
spatialpack hash pack PACK_PATH [options]Arguments
Section titled “Arguments”PACK_PATH — path (required)
Options:
| Option | Type | Default | Description |
|---|---|---|---|
--update-manifest | flag | false | Update spatialpack.json with computed hashes |
--verify | flag | false | Verify existing hashes match computed hashes |
--json-output | flag | false | Output as JSON |
# Scan and display hashesspatialpack hash pack ./my-pack/
# Update manifest with hashesspatialpack hash pack ./my-pack/ --update-manifest
# Verify existing hashesspatialpack hash pack ./my-pack/ --verifyhash verify
Section titled “hash verify”Verify all pack asset hashes against manifest.
Shortcut for ‘spatialpack hash pack —verify’.
spatialpack hash verify PACK_PATH [options]Arguments
Section titled “Arguments”PACK_PATH — path (required)
Options:
| Option | Type | Default | Description |
|---|---|---|---|
--strict | flag | false | Fail if any asset is missing from manifest |
spatialpack hash verify ./my-pack/spatialpack hash verify ./my-pack/ --strict