{
  "slug": "temporal-worker-deployment-create-and-create-version-commands-89c361a7134a",
  "title": "temporal worker deployment create and create-version commands",
  "tools": [
    "temporal"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-04-29T22:36:03.000Z",
  "announced_at": "2026-04-29T22:36:03.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "To predefine a Worker Deployment and add a version from a repository workflow, run `temporal worker deployment create`, then `temporal worker deployment create-version` with the deployment name and build ID. For AWS Lambda compute configuration, include the Lambda ARN and the required role and external ID flags.",
    "examples": [
      "temporal worker deployment create --name <deployment-name>",
      "temporal worker deployment create-version --namespace <namespace> --deployment-name <deployment-name> --build-id <build-id> --aws-lambda-function-arn <lambda-function-arn> --aws-lambda-assume-role-arn <assume-role-arn> --aws-lambda-assume-role-external-id <external-id>"
    ],
    "gotchas": [
      "Version: v1.7.0",
      "--name (required): Worker Deployment name for `create`.",
      "--namespace: Namespace; shown in the documented `create-version` example, but not listed as a required option for that command.",
      "--deployment-name (required): Worker Deployment name for `create-version`.",
      "--build-id (required): Build ID of the Worker Deployment Version.",
      "--aws-lambda-function-arn: Lambda function ARN to invoke when there are no active pollers for task queue targets in the Deployment.",
      "--aws-lambda-assume-role-arn: Role ARN the Temporal server assumes to invoke Lambda; required with `--aws-lambda-function-arn` unless `--aws-lambda-skip-role-and-external-id` is passed.",
      "--aws-lambda-assume-role-external-id: External ID enforced by the role trust policy; required with `--aws-lambda-function-arn` unless `--aws-lambda-skip-role-and-external-id` is passed.",
      "--aws-lambda-skip-role-and-external-id: When using a Lambda ARN, omit both assume-role flags if this flag is passed. This choice is mutually exclusive with supplying either assume-role flag.",
      "Prerequisite: Predefine the Deployment with `create` before calling `create-version`.",
      "Commands manage Worker Deployments via direct gRPC API calls."
    ]
  },
  "why_it_matters": "Create or create a version of a Worker Deployment from a repository workflow.",
  "sources": [
    "https://github.com/temporalio/cli/releases/tag/v1.7.0",
    "https://github.com/temporalio/documentation/blob/main/docs/cli/command-reference/worker.mdx"
  ],
  "rank": 0.90027,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave2b-20261017",
    "verdict_id": "wave2b-20261017:wave2b-20261017-866ee4f38ce6985d-4:gate",
    "evidence_hash": "0dae986704f81235363bfbc4e236801c78b71a2e4cbe71646c923d5247954c78"
  },
  "review": {
    "draft_hash": "dd5b559b606747e1b4c124eabad230c947a2b63a7e43c7521248bef6c65052a9",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2b-20261017:gate",
    "reason": "2 of 3 judge runs approved with p_yes >= 0.9 (mean 0.90 >= 0.9; 2 needed) and Jev gave 0.64 (>= 0.6 needed)."
  }
}
