CLI Command

shiro data

Manage workflow data with key-value storage. Set, get, delete, and list data across workflow executions.

Subcommands

shiro data set

Store a key-value pair in the data store.

bash
shiro data set <key> <value> [flags]

# Examples
shiro data set build_status success
shiro data set deploy_version "v1.2.3" -namespace production
shiro data set temp_token abc123 -ttl 1h
FlagDescription
-namespaceNamespace for the key
-ttlTime-to-live (e.g., '24h', '1h30m')
-state-storeState store type (memory, filesystem, gitlab)

shiro data get

Retrieve a value from the data store.

bash
shiro data get <key> [flags]

# Examples
shiro data get build_status
shiro data get deploy_version -namespace production

shiro data delete

Delete a key from the data store.

bash
shiro data delete <key> [flags]

# Examples
shiro data delete temp_token
shiro data delete old_data -namespace staging

shiro data list

List all keys in the data store.

bash
shiro data list [flags]

# Examples
shiro data list
shiro data list -namespace production

Using Data in Workflows

Access stored data in workflows using the template syntax:

json
{
  "id": "check_status",
  "type": "print",
  "config": {
    "message": "Build status: {{data.build_status}}"
  }
}