tc kv when you want the shortest path from a shell prompt to a stored value.
Basic workflow
Input and output
tc kv put accepts one of three inputs:
tc kv get can print plain text, raw bytes, or JSON:
Target a different space
--space accepts either a short owned-space name or a full tinycloud:pkh:eip155:... URI.
What the command family does
put,get,list,deleteheadfor metadata without fetching the body--prefixfor listing a subset of keys- the global
--jsonflag for scripting-friendly output
Key rules
Keys cannot contain spaces or control characters.get, put, head,
delete, and list --prefix refuse them with USAGE_ERROR (exit 2) before
contacting the node. Use -, _, ., or / instead.
When storage is full
Reads keep working when your storage is full; writes are refused and nothing is saved. In CLI 1.0.0,tc kv put exits 1 with STORAGE_QUOTA_EXCEEDED
and the used and limit sizes when the node reports them.
CLI 1.1.0 beta gives every command one storage-full result: exit
10, code
STORAGE_QUOTA_EXCEEDED (or STORAGE_LIMIT_REACHED when a single write is
larger than the space left), and a link to manage storage. See
Storage is full.Good defaults
- Quote JSON-like shell values so the shell passes them as a single argument
- Use
--rawwhen you need the exact stored value in a pipe - Use
--outputwhen you want to save binary data to a file
The CLI source routes KV operations through the active profile and uses the node’s primary space unless you pass
--space.