dt kv ls
Overview
List keys in the KV store
Synopsis
dt kv ls [OPTIONS] [<key_prefix>]
Options
-
-a,--acls
Include ACLs when listing keys -
-S,--secure
List encrypted keys -
-v,--include-values
Include values when listing keys (ignored for secure keys) -
-j,--json
Output as JSON -
-p,--pretty
Pretty print results -
-e,--environment=<environment>
Target environment(s). Comma-separated for multiple (e.g. dev,pre,prod). Only available from system/local. -
-o,--offset=<offset>
Offset to start showing results (default 0) -
-b,--batch-size=<batch-size>
Retrieve up to batch-size results (default 100) -
-f,--filter=<filter>
Filter expression, e.g. "key starts_with foo" -
-s,--sort=<sort>
Sort expression: +field for ASC, -field for DESC
Arguments
key_prefix(optional)
Type:String
Prefix of the key
Examples
List all keys including their acls
dt kv ls
List all keys with prefix foo
dt kv ls foo
List keys across multiple environments
dt kv ls --environment dev,pre,prod
Filter and sort keys by key
dt kv ls -f "key contains token" -s "-key"
SEE ALSO
← Back to dt kv