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--jsonfor scripting-friendly output
Good defaults
- Quote SQL and 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.