{
  "name": "redis-command",
  "title": "Run a Redis command",
  "category": "Databases",
  "tags": [
    "databases",
    "redis"
  ],
  "version": "1.0.0",
  "date": "2026-07-17",
  "notes": "Initial release.",
  "latest": true,
  "installable": true,
  "url": "https://catalog.dagweave.com/api/v1/items/redis-command/1.0.0.json",
  "templateUrl": "https://catalog.dagweave.com/api/v1/items/redis-command/1.0.0/template.yaml",
  "entrypoint": "run",
  "parameters": [
    {
      "name": "command",
      "title": "Command",
      "description": "The Redis command to run.",
      "type": "string",
      "required": true,
      "example": "GET"
    },
    {
      "name": "host",
      "title": "Host",
      "description": "Redis server host.",
      "type": "string",
      "required": true,
      "example": "redis.default.svc"
    },
    {
      "name": "args",
      "title": "Arguments",
      "description": "Space-separated arguments for the command.",
      "type": "string",
      "required": false,
      "default": "",
      "example": "mykey myvalue"
    },
    {
      "name": "password-secret-key",
      "title": "Password secret key",
      "description": "Key within the Secret that holds the password.",
      "type": "string",
      "required": false,
      "default": "password"
    },
    {
      "name": "password-secret-name",
      "title": "Password secret name",
      "description": "Name of the Kubernetes Secret holding the AUTH password.",
      "type": "string",
      "required": false,
      "default": "redis-password"
    },
    {
      "name": "port",
      "title": "Port",
      "description": "Redis server port.",
      "type": "string",
      "required": false,
      "default": "6379"
    }
  ],
  "images": [
    {
      "ref": "redis@sha256:21090af93f8324db2f0f0f4f38a7c60369d47d917e000c3423d89d2ae2883537",
      "repository": "redis",
      "digest": "sha256:21090af93f8324db2f0f0f4f38a7c60369d47d917e000c3423d89d2ae2883537"
    }
  ],
  "install": {
    "kubectl": "kubectl apply -n argo -f https://catalog.dagweave.com/api/v1/items/redis-command/1.0.0/template.yaml",
    "argo": "argo template create -n argo https://catalog.dagweave.com/api/v1/items/redis-command/1.0.0/template.yaml"
  },
  "template": "apiVersion: argoproj.io/v1alpha1\nkind: WorkflowTemplate\nmetadata:\n  name: redis-command\n  labels:\n    dagweave.io/catalog-item: redis-command\n  annotations:\n    # The catalog semver this manifest was authored at. The dagweave app records\n    # (catalog-item-id, semver) -\u003e content-hash -\u003e base-vN when it mints the tenant\n    # cluster name via ResolveOrMint. Keep in sync with metadata.yaml `version`.\n    dagweave.io/catalog-version: \"1.0.0\"\n    dagweave.io/catalog-category: \"Databases\"\nspec:\n  entrypoint: run\n  templates:\n    - name: run\n      inputs:\n        parameters:\n          # Redis server host.\n          - name: host\n          # Redis server port.\n          - name: port\n            default: \"6379\"\n          # The Redis command to run (e.g. GET, SET, LPUSH).\n          - name: command\n          # Space-separated arguments for the command (e.g. \"mykey myvalue\").\n          - name: args\n            default: \"\"\n          # Name of the Kubernetes Secret holding the AUTH password. Defaults let a\n          # user leave them blank in the Inspector.\n          - name: password-secret-name\n            default: redis-password\n          - name: password-secret-key\n            default: password\n      container:\n        # Pinned by digest per the catalog convention: an image rebuild can never\n        # silently change the behaviour of an already-released item version.\n        # redis:8-alpine (ships redis-cli)\n        image: redis@sha256:21090af93f8324db2f0f0f4f38a7c60369d47d917e000c3423d89d2ae2883537\n        command: [sh, -c]\n        # Host, port, command and args are passed as env vars (below), never\n        # interpolated from Argo into the shell, so they carry no injection risk.\n        # redis-cli reads the AUTH password from REDISCLI_AUTH, so it never appears on\n        # the command line. $COMMAND and $ARGS are intentionally left unquoted so the\n        # args string is split into separate redis-cli arguments.\n        args:\n          - |\n            set -eu\n            redis-cli -h \"$HOST\" -p \"$PORT\" $COMMAND $ARGS\n        env:\n          - name: HOST\n            value: \"{{inputs.parameters.host}}\"\n          - name: PORT\n            value: \"{{inputs.parameters.port}}\"\n          - name: COMMAND\n            value: \"{{inputs.parameters.command}}\"\n          - name: ARGS\n            value: \"{{inputs.parameters.args}}\"\n          - name: REDISCLI_AUTH\n            valueFrom:\n              secretKeyRef:\n                name: \"{{inputs.parameters.password-secret-name}}\"\n                key: \"{{inputs.parameters.password-secret-key}}\"\n",
  "templateSha256": "afc41bab5e864a3d8ecf6bc9307530708c30698f349a0c92dcb58c9ae088387c",
  "source": "https://github.com/dagweave/catalog/tree/67458f74dbbf913b03177f3cefc69424be85eb1d/catalog/redis-command",
  "catalogSha": "67458f74dbbf913b03177f3cefc69424be85eb1d"
}
