{
  "slug": "wrangler-deploy-and-versions-upload-accept-a-positional-path-bae2ebf91d50",
  "title": "wrangler deploy and versions upload accept a positional path",
  "tools": [
    "wrangler"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-06-05T10:47:44.000Z",
  "announced_at": "2026-06-05T10:47:44.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "If deploying a Worker entry point or static asset directory, pass its path positionally to `wrangler deploy` or `wrangler versions upload`; Wrangler treats it as the entry point or assets directory. For directory deployments, the release note says the positional path avoids an interactive confirmation prompt.",
    "examples": [
      "npx wrangler deploy ./src/index.ts",
      "npx wrangler deploy ./public",
      "npx wrangler versions upload <path>"
    ],
    "gotchas": [
      "Version: 4.98.0",
      "[PATH]: Path to a Worker entry point or static assets directory. Required for a Worker when the Wrangler config has no `main` key. For static assets, overrides configured assets and is equivalent to `--assets`.",
      "--assets <directory>: Folder of static assets to serve; equivalent to passing the assets directory as the positional path.",
      "--script: Release note says this option is hidden and deprecated, remains for backwards compatibility, and accepts file paths only.",
      "`--script` remains available for backwards compatibility but only accepts file paths.",
      "Passing a directory to `--script` produces an error suggesting the positional `path` argument or `--assets` flag.",
      "Docs conflict: Current Wrangler docs say positional asset paths work only in interactive mode, conflicting with the release note's statement that directory deployment avoids an interactive confirmation prompt. Current docs may describe a newer version: https://developers.cloudflare.com/workers/wrangler/commands/workers/"
    ]
  },
  "why_it_matters": "Deploy a Worker entry point or a directory of static assets using Wrangler.",
  "before": "Use `--script` for a Worker file; the positional argument was `[script]`.",
  "sources": [
    "https://github.com/cloudflare/workers-sdk/releases/tag/wrangler%404.98.0",
    "https://developers.cloudflare.com/workers/wrangler/commands/workers/"
  ],
  "rank": 0.97074,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v1+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "backfill-20261007",
    "verdict_id": "backfill-20261007:backfill-20261007-40c1f70e01209979-1:gate",
    "evidence_hash": "516917ad6f4f82b126c35837f5002cbba2d9ac7c5f90642053004e904bcbbecf"
  },
  "review": {
    "draft_hash": "e96331c914864f69582b1a9d4b4acb891d9c2854ff8757036b254564381859da",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "backfill-20261007:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.97 >= 0.9; 2 needed) and Jev gave 0.76 (>= 0.6 needed)."
  }
}
