data
Upstash Redis CLI for CI
Use the Upstash Redis CLI for CI with headless JSON commands, schema discovery, credentials, and permission controls.
7 functions 5 read 2 write API key auth
Upstash Redis CLI for CI
Run integration calls from CI jobs with JSON output, explicit credentials, and predictable exit status.
Use this shape when a pipeline needs to read or update an external service. The Upstash Redis CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.
Command Shape
# Upstash Redis CLI for CI
kosmokrator integrations:configure upstash --set api_key="$UPSTASH_API_KEY" --set redis_url="$UPSTASH_REDIS_URL" --enable --read allow --write ask --json
kosmo integrations:call upstash.upstash_get_key '{"key":"example_key"}' --json Discovery Before Execution
Agents and scripts can inspect Upstash Redis docs and schemas before choosing a function.
kosmo integrations:docs upstash --json
kosmo integrations:docs upstash.upstash_get_key --json
kosmo integrations:schema upstash.upstash_get_key --json
kosmo integrations:search "Upstash Redis" --json
kosmo integrations:list --json Useful Upstash Redis CLI Functions
| Function | Type | Parameters | Description |
|---|---|---|---|
upstash.upstash_get_key | Read | key | Retrieve the value stored at a Redis key. Returns null if the key does not exist. |
upstash.upstash_set_key | Write | key, value, ex | Store a key-value pair in Redis. Optionally set a TTL (time-to-live) in seconds so the key expires automatically. |
upstash.upstash_delete_key | Write | key | Delete a key from Redis. Returns the number of keys that were removed. |
upstash.upstash_list_keys | Read | pattern | List Redis keys matching a glob-style pattern. Defaults to "*" to list all keys. |
upstash.upstash_list_databases | Read | none | List all Redis databases in the Upstash account. Returns database IDs, names, regions, and endpoints. |
upstash.upstash_get_database | Read | id | Get details for a specific Upstash Redis database by ID, including endpoint, region, and usage stats. |
upstash.upstash_get_current_user | Read | none | Get current team information from Upstash, including team name, members, and plan details. |
Automation Notes
- Use
--jsonfor machine-readable output. - Keep credentials out of argv by using environment variables or stored KosmoKrator configuration.
- Configure read/write policy before unattended runs; use
--forceonly for trusted automation. - Use the MCP gateway instead when the agent needs dynamic tool discovery inside a conversation.