Skip to content

Commit 5712378

Browse files
Fix link locations for wrangler versions upload and wrangler versions deploy commands (#25959)
Co-authored-by: kodster28 <[email protected]>
1 parent 623cdff commit 5712378

File tree

8 files changed

+19
-19
lines changed

8 files changed

+19
-19
lines changed

src/content/changelog/workers/2025-07-23-workers-preview-urls.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ These preview URLs are named after your branch and are posted as a comment to ea
1717

1818
Each comment includes **two preview URLs** as shown above:
1919

20-
* **Commit Preview URL**: Unique to the specific version/commit (e.g., `<version-prefix>-<worker-name>.<subdomain>.workers.dev`)
20+
* **Commit Preview URL**: Unique to the specific version/commit (e.g., `<version-prefix>-<worker-name>.<subdomain>.workers.dev`)
2121
* **Branch Preview URL**: A stable alias based on the branch name (e.g., `<branch-name>-<worker-name>.<subdomain>.workers.dev`)
2222

2323
## How it works
@@ -31,7 +31,7 @@ When you create a pull request:
3131

3232
## Custom alias name
3333

34-
You can also assign a custom preview alias using the [Wrangler CLI](/workers/wrangler/), by passing the `--preview-alias` flag when [uploading a version](/workers/wrangler/commands/#upload) of your Worker:
34+
You can also assign a custom preview alias using the [Wrangler CLI](/workers/wrangler/), by passing the `--preview-alias` flag when [uploading a version](/workers/wrangler/commands/#versions-upload) of your Worker:
3535

3636
```bash
3737
wrangler versions upload --preview-alias staging
@@ -41,5 +41,5 @@ wrangler versions upload --preview-alias staging
4141

4242
* Only available on the **workers.dev** subdomain (custom domains not yet supported)
4343
* Requires **Wrangler v4.21.0+**
44-
* Preview URLs are not generated for Workers that use [Durable Objects](/durable-objects/)
44+
* Preview URLs are not generated for Workers that use [Durable Objects](/durable-objects/)
4545
* Not yet supported for [Workers for Platforms](/cloudflare-for-platforms/workers-for-platforms/)

src/content/docs/workers/configuration/previews.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Every time you create a new [version](/workers/configuration/versions-and-deploy
4242
New versions of a Worker are created when you run:
4343

4444
- [`wrangler deploy`](/workers/wrangler/commands/#deploy)
45-
- [`wrangler versions upload`](/workers/wrangler/commands/#upload)
45+
- [`wrangler versions upload`](/workers/wrangler/commands/#versions-upload)
4646
- Or when you make edits via the Cloudflare dashboard
4747

4848
If Preview URLs have been enabled, they are public and available immediately after version creation.
@@ -53,7 +53,7 @@ Minimum required Wrangler version: 3.74.0. Check your version by running `wrangl
5353

5454
#### View versioned preview URLs using Wrangler
5555

56-
The [`wrangler versions upload`](/workers/wrangler/commands/#upload) command uploads a new [version](/workers/configuration/versions-and-deployments/#versions) of your Worker and returns a preview URL for each version uploaded.
56+
The [`wrangler versions upload`](/workers/wrangler/commands/#versions-upload) command uploads a new [version](/workers/configuration/versions-and-deployments/#versions) of your Worker and returns a preview URL for each version uploaded.
5757

5858
#### View versioned preview URLs on the Workers dashboard
5959

src/content/docs/workers/configuration/secrets.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Secrets can be added through [`wrangler secret put`](/workers/wrangler/commands/
5353
npx wrangler secret put <KEY>
5454
```
5555

56-
If using [gradual deployments](/workers/configuration/versions-and-deployments/gradual-deployments/), instead use the `wrangler versions secret put` command. This will only create a new version of the Worker, that can then be deploying using [`wrangler versions deploy`](/workers/wrangler/commands/#deploy-2).
56+
If using [gradual deployments](/workers/configuration/versions-and-deployments/gradual-deployments/), instead use the `wrangler versions secret put` command. This will only create a new version of the Worker, that can then be deploying using [`wrangler versions deploy`](/workers/wrangler/commands/#versions-deploy).
5757

5858
:::note
5959
Wrangler versions before 3.73.0 require you to specify a `--x-versions` flag.
@@ -88,7 +88,7 @@ Secrets can be deleted through [`wrangler secret delete`](/workers/wrangler/comm
8888
npx wrangler secret delete <KEY>
8989
```
9090

91-
If using [gradual deployments](/workers/configuration/versions-and-deployments/gradual-deployments/), instead use the `wrangler versions secret delete` command. This will only create a new version of the Worker, that can then be deploying using [`wrangler versions deploy`](/workers/wrangler/commands/#deploy-2).
91+
If using [gradual deployments](/workers/configuration/versions-and-deployments/gradual-deployments/), instead use the `wrangler versions secret delete` command. This will only create a new version of the Worker, that can then be deploying using [`wrangler versions deploy`](/workers/wrangler/commands/#versions-deploy).
9292

9393
```sh
9494
npx wrangler versions secret delete <KEY>

src/content/docs/workers/configuration/versions-and-deployments/gradual-deployments.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Answer `yes` or `no` to using TypeScript. Answer `yes` to deploying your applica
4646

4747
#### 2. Create a new version of the Worker
4848

49-
To create a new version of the Worker, edit the Worker code by changing the `Response` content to your desired text and upload the Worker by using the [`wrangler versions upload`](/workers/wrangler/commands/#upload) command.
49+
To create a new version of the Worker, edit the Worker code by changing the `Response` content to your desired text and upload the Worker by using the [`wrangler versions upload`](/workers/wrangler/commands/#versions-upload) command.
5050

5151
```sh
5252
npx wrangler versions upload
@@ -56,7 +56,7 @@ This will create a new version of the Worker that is not automatically deployed.
5656

5757
#### 3. Create a new deployment
5858

59-
Use the [`wrangler versions deploy`](/workers/wrangler/commands/#deploy-2) command to
59+
Use the [`wrangler versions deploy`](/workers/wrangler/commands/#versions-deploy) command to
6060
create a new deployment that splits traffic between two versions of the Worker. Follow the interactive prompts to create a deployment with the versions uploaded in [step #1](/workers/configuration/versions-and-deployments/gradual-deployments/#1-create-and-deploy-a-new-worker) and [step #2](/workers/configuration/versions-and-deployments/gradual-deployments/#2-create-a-new-version-of-the-worker). Select your desired percentages for each version.
6161

6262
```sh
@@ -190,7 +190,7 @@ In this example, your deployment is initially configured to route all traffic to
190190
| :----------------------------------: | :--------: |
191191
| db7cd8d3-4425-4fe7-8c81-01bf963b6067 | 100% |
192192

193-
Create a new deployment using [`wrangler versions deploy`](/workers/wrangler/commands/#deploy-2) and specify 0% for the new version whilst keeping the previous version at 100%.
193+
Create a new deployment using [`wrangler versions deploy`](/workers/wrangler/commands/#versions-deploy) and specify 0% for the new version whilst keeping the previous version at 100%.
194194

195195
| Version ID | Percentage |
196196
| :----------------------------------: | :--------: |

src/content/docs/workers/configuration/versions-and-deployments/index.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ Wrangler versions before 3.73.0 require you to specify a `--x-versions` flag.
5858

5959
:::
6060

61-
To create a new version of your Worker that is not deployed immediately, use the [`wrangler versions upload`](/workers/wrangler/commands/#upload) command or create a new version via the Cloudflare dashboard using the **Save** button. You can find the **Save** option under the down arrow beside the "Deploy" button.
61+
To create a new version of your Worker that is not deployed immediately, use the [`wrangler versions upload`](/workers/wrangler/commands/#versions-upload) command or create a new version via the Cloudflare dashboard using the **Save** button. You can find the **Save** option under the down arrow beside the "Deploy" button.
6262

63-
Versions created in this way can then be deployed all at once or gradually deployed using the [`wrangler versions deploy`](/workers/wrangler/commands/#deploy-2) command or via the Cloudflare dashboard under the **Deployments** tab.
63+
Versions created in this way can then be deployed all at once or gradually deployed using the [`wrangler versions deploy`](/workers/wrangler/commands/#versions-deploy) command or via the Cloudflare dashboard under the **Deployments** tab.
6464

6565
:::note
6666
When using [Wrangler](/workers/wrangler/), changes made to a Worker's triggers [routes, domains](/workers/configuration/routing/) or [cron triggers](/workers/configuration/cron-triggers/) need to be applied with the command [`wrangler triggers deploy`](/workers/wrangler/commands/#triggers).
@@ -94,11 +94,11 @@ To view your deployments in the Cloudflare dashboard:
9494

9595
### First upload
9696

97-
You must use [C3](/workers/get-started/guide/#1-create-a-new-worker-project) or [`wrangler deploy`](/workers/wrangler/commands/#deploy) the first time you create a new Workers project. Using [`wrangler versions upload`](/workers/wrangler/commands/#upload) the first time you upload a Worker will fail.
97+
You must use [C3](/workers/get-started/guide/#1-create-a-new-worker-project) or [`wrangler deploy`](/workers/wrangler/commands/#deploy) the first time you create a new Workers project. Using [`wrangler versions upload`](/workers/wrangler/commands/#versions-upload) the first time you upload a Worker will fail.
9898

9999
### Service worker syntax
100100

101-
Service worker syntax is not supported for versions that are uploaded through [`wrangler versions upload`](/workers/wrangler/commands/#upload). You must use ES modules format.
101+
Service worker syntax is not supported for versions that are uploaded through [`wrangler versions upload`](/workers/wrangler/commands/#versions-upload). You must use ES modules format.
102102

103103
Refer to [Migrate from Service Workers to ES modules](/workers/reference/migrate-to-module-workers/#advantages-of-migrating) to learn how to migrate your Workers from the service worker format to the ES modules format.
104104

src/content/docs/workers/observability/source-maps.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ upload_source_maps = true
2323

2424
</WranglerConfig>
2525

26-
When `upload_source_maps` is set to `true`, Wrangler will automatically generate and upload source map files when you run [`wrangler deploy`](/workers/wrangler/commands/#deploy) or [`wrangler versions deploy`](/workers/wrangler/commands/#deploy-2).
26+
When `upload_source_maps` is set to `true`, Wrangler will automatically generate and upload source map files when you run [`wrangler deploy`](/workers/wrangler/commands/#deploy) or [`wrangler versions deploy`](/workers/wrangler/commands/#versions-deploy).
2727
​​
2828

2929
:::note

src/content/docs/workers/wrangler/commands.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,8 +1271,8 @@ If you are using `CLOUDFLARE_API_TOKEN` instead of OAuth, and you can logout by
12711271

12721272
<DashButton url="/?to=/:account/api-tokens" />
12731273

1274-
3. Select the three-dot menu on your Wrangler token.
1275-
4. Select **Delete**.
1274+
2. Select the three-dot menu on your Wrangler token.
1275+
3. Select **Delete**.
12761276

12771277
---
12781278

@@ -1387,7 +1387,7 @@ The minimum required wrangler version to use these commands is 3.40.0. For versi
13871387

13881388
### `deploy`
13891389

1390-
Apply changes to triggers ([Routes or domains](/workers/configuration/routing/) and [Cron Triggers](/workers/configuration/cron-triggers/)) when using [`wrangler versions upload`](/workers/wrangler/commands/#upload).
1390+
Apply changes to triggers ([Routes or domains](/workers/configuration/routing/) and [Cron Triggers](/workers/configuration/cron-triggers/)) when using [`wrangler versions upload`](/workers/wrangler/commands/#versions-upload).
13911391

13921392
```txt
13931393
wrangler triggers deploy [OPTIONS]

src/content/docs/workers/wrangler/configuration.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1279,7 +1279,7 @@ In many cases, this allows you to work provide just enough of an API to make a d
12791279
[Source maps](/workers/observability/source-maps/) translate compiled and minified code back to the original code that you wrote. Source maps are combined with the stack trace returned by the JavaScript runtime to present you with a stack trace.
12801280

12811281
- `upload_source_maps` <Type text="boolean" />
1282-
- When `upload_source_maps` is set to `true`, Wrangler will automatically generate and upload source map files when you run [`wrangler deploy`](/workers/wrangler/commands/#deploy) or [`wrangler versions deploy`](/workers/wrangler/commands/#deploy-2).
1282+
- When `upload_source_maps` is set to `true`, Wrangler will automatically generate and upload source map files when you run [`wrangler deploy`](/workers/wrangler/commands/#deploy) or [`wrangler versions deploy`](/workers/wrangler/commands/#versions-deploy).
12831283

12841284
Example:
12851285

0 commit comments

Comments
 (0)