@zanii/cli
v0.1.0
Published
The Zanii command line: generate identities, sign delegations, record + verify proofs, and export audit bundles — no code required.
Readme
@zanii/cli
The Zanii command line — generate identities, sign delegations, record and verify proofs, and export audit bundles from the terminal, no code required.
npm install -g @zanii/cli # or: npx @zanii/cli …Commands
zanii keygen --out identity.json # a new agent identity (did:key)
zanii did identity.json # print its DID
zanii delegate --owner owner.json --to <agent-did> \
--scopes crm.*,email.send --exp 2027-01-01T00:00:00Z --out cert.json
zanii verify <hash> # fetch + verify a proof, offline (exit 1 if it fails)
zanii bundle bundle.json # verify an exported audit bundle, offline
zanii export <did> --out bundle.json # download an agent's full history
zanii stats # ledger counters
zanii agent <did> # an agent's trust summaryGlobal flags: --server <url> (or ZANII_SERVER; default https://ledger.zanii.agency)
and --json for machine-readable output on any command. verify / bundle exit
non-zero on failure, so they drop straight into CI.
Also exported as a library: import { run } from '@zanii/cli'.
Changelog
- 0.1.0 — initial release:
keygen,did,delegate,revoke,verify,bundle,export,stats,agent.
License
Apache-2.0.
