Hanzo AI

KV

The `hanzo kv` commands.

Also for this capability: API · CLI · SDKs

Your key-value store: buckets of versioned values your apps read and write by key.

API reference →

add

CommandWhat it does
hanzo kv add <bucket>Creates a KV bucket and returns it.

bucket

CommandWhat it does
hanzo kv bucket get <bucket> <key>Get returns one key's current value and revision.
hanzo kv bucket history <bucket> <key>History returns one key's retained revisions, oldest first — every put and every delete marker up to the bucket's…
hanzo kv bucket rm <bucket> <key>Delete removes one key — a delete marker in the key's history, so watchers see it and Get answers 404 — and answers 204…
hanzo kv bucket set <bucket> <key>Put sets one key to one value and returns the revision the write created.

rm

CommandWhat it does
hanzo kv rm <bucket>Removes one bucket of the caller's org — every key and every revision with it — and answers 204 with no body.

How is this guide?

On this page