Skip to main content
The tc kv commands let you store, retrieve, list, and delete key-value data in your space directly from the terminal.

Commands

tc kv put

Store a value at a key.
tc kv put <key> [value]
OptionDescription
--file <path>Read value from a file
--stdinRead value from standard input
$ tc kv put greeting "Hello, World!"
  Stored: greeting (13 bytes)

tc kv get

Retrieve a value by key.
tc kv get <key>
OptionDescription
--rawOutput the raw value without formatting
--output <path>Write value to a file
$ tc kv get greeting
  Key:    greeting
  Value:  Hello, World!
  Size:   13 bytes

tc kv list

List keys in your space.
tc kv list [prefix]
OptionDescription
--prefix <prefix>Filter keys by prefix
$ tc kv list
  Keys in space:
    config/app
    greeting
    user/profile
    user/settings

  4 keys total

tc kv delete

Remove a key and its value.
tc kv delete <key>
$ tc kv delete greeting
  Deleted: greeting

tc kv head

Get metadata for a key without retrieving its value.
tc kv head <key>
$ tc kv head user/profile
  Key:           user/profile
  Size:          248 bytes
  Content-Type:  application/json
  Updated:       2026-03-07T14:22:00.000Z

Pipeline Examples

The CLI is designed to compose with standard Unix tools. When output is piped, it automatically switches to JSON.
# Capture system info
uname -a | tc kv put system/info --stdin
Use --raw with tc kv get when piping to other tools. This outputs the value directly without any formatting or metadata.