CLI Reference

Command Line Interface

Install with npm install -g @krusade/cli or use the REST API directly.

Install
npm install -g @krusade/cli
$ krusade hash <file>

Hash a file and register a receipt

$ krusade hash ./document.pdf
Receipt: rc_8f3j2k
Hash:    a455a711200155b0...
Signed:  yes
Time:    42ms
$ krusade verify --hash <hash>

Verify a file hash against its receipt

$ krusade verify --hash a455a711...
Valid:   true
Signed:  true
Org:     org_abc123
$ krusade receipt <hash>

Lookup receipt details by file hash

$ krusade receipt a455a711...
Receipt:    rc_8f3j2k
Hash:       a455a711...
Signature:  30450221...
Prev Hash:  b722c910...
Created:    2026-06-24
$ krusade verify --file <file>

Hash a local file and verify in one step

$ krusade verify --file ./doc.pdf
Hash:    a455a711...
Valid:   true
Signed:  true
Configuration

Set your API key and endpoint:

krusade config --api-key kr_live_...
krusade config --endpoint https://api.krusade.dev