Skip to content

spatialpack hash

Terminal window
spatialpack hash <command> [options]

Hash computation commands.

Compute BLAKE3 integrity hashes for pack assets.

CommandDescription
hash fileCompute BLAKE3 hash for a single file.
hash packCompute hashes for all assets in a spatialpack.
hash verifyVerify all pack asset hashes against manifest.
Terminal window
# Compute hash for a single file
spatialpack hash file input.parquet
# Scan pack and compute all hashes
spatialpack hash pack ./my-pack/
# Update manifest with computed hashes
spatialpack hash pack ./my-pack/ --update-manifest

Compute BLAKE3 hash for a single file.

Terminal window
spatialpack hash file FILE_PATH [options]

FILE_PATH — path (required)

Options:

OptionTypeDefaultDescription
--json-outputflagfalseOutput as JSON
Terminal window
spatialpack hash file input.parquet
spatialpack hash file rasters/dem.tif --json-output

Compute hashes for all assets in a spatialpack.

Scans the pack’s rasters/ and layers/ directories and computes BLAKE3 hashes for all files.

Terminal window
spatialpack hash pack PACK_PATH [options]

PACK_PATH — path (required)

Options:

OptionTypeDefaultDescription
--update-manifestflagfalseUpdate spatialpack.json with computed hashes
--verifyflagfalseVerify existing hashes match computed hashes
--json-outputflagfalseOutput as JSON
Terminal window
# Scan and display hashes
spatialpack hash pack ./my-pack/
# Update manifest with hashes
spatialpack hash pack ./my-pack/ --update-manifest
# Verify existing hashes
spatialpack hash pack ./my-pack/ --verify

Verify all pack asset hashes against manifest.

Shortcut for ‘spatialpack hash pack —verify’.

Terminal window
spatialpack hash verify PACK_PATH [options]

PACK_PATH — path (required)

Options:

OptionTypeDefaultDescription
--strictflagfalseFail if any asset is missing from manifest
Terminal window
spatialpack hash verify ./my-pack/
spatialpack hash verify ./my-pack/ --strict