{
  "manifest_version": "1.0.0",
  "template": {
    "id": "81f4bd8b-26f7-43ac-bbea-7e5db827e1ce",
    "slug": "railway-shell-function",
    "name": "Railway Shell Function",
    "description": "Quickly run any shell script in a Railway container.",
    "url": "https://railway.com/deploy/railway-shell-function",
    "upstream": {
      "image": "ghcr.io/thesamgordon/railway-function-shell"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "railway-function-shell",
      "source": {
        "image": "ghcr.io/thesamgordon/railway-function-shell"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "SCRIPT",
      "service": "railway-function-shell",
      "description": "Base64 encoded shell script.",
      "secret": false,
      "strategy": "ask_user"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "railway-shell-function"
      }
    },
    "cli": "railway deploy --template railway-shell-function",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "81f4bd8b-26f7-43ac-bbea-7e5db827e1ce",
            "serializedConfig": {
              "services": {
                "5e77848e-6b1c-4349-b9dd-14982f57c1b9": {
                  "icon": "https://www.svgrepo.com/show/353478/bash-icon.svg",
                  "name": "railway-function-shell",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"exec ./run.sh $SCRIPT\""
                  },
                  "source": {
                    "image": "ghcr.io/thesamgordon/railway-function-shell"
                  },
                  "variables": {
                    "SCRIPT": {
                      "isOptional": false,
                      "description": "Base64 encoded shell script.",
                      "defaultValue": "{{SCRIPT}}"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0"
}
