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| Flag | Description |
|---|---|
| -namespace | Namespace for the key |
| -ttl | Time-to-live (e.g., '24h', '1h30m') |
| -state-store | State 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 productionshiro 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 stagingshiro data list
List all keys in the data store.
bash
shiro data list [flags]
# Examples
shiro data list
shiro data list -namespace productionUsing 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}}"
}
}