Skip to content

Commit aadeed3

Browse files
authored
Using WranglerCommand component for deployments commands (#26485)
1 parent bbeb077 commit aadeed3

File tree

2 files changed

+3
-25
lines changed

2 files changed

+3
-25
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ curl -s https://example.com -H 'Cloudflare-Workers-Version-Overrides: my-worker-
165165

166166
The dictionary can contain multiple key-value pairs. Each key indicates the name of the Worker the override should be applied to. The value indicates the version ID that should be used and must be a [String](https://www.rfc-editor.org/rfc/rfc8941#name-strings).
167167

168-
A version override will only be applied if the specified version is in the current deployment. The versions in the current deployment can be found using the [`wrangler deployments list`](/workers/wrangler/commands/#list-5) command or on the **Workers & Pages** page of the Cloudflare dashboard > Select your Workers > Deployments > Active Deployment.
168+
A version override will only be applied if the specified version is in the current deployment. The versions in the current deployment can be found using the [`wrangler deployments list`](/workers/wrangler/commands/#deployments-list) command or on the **Workers & Pages** page of the Cloudflare dashboard > Select your Workers > Deployments > Active Deployment.
169169

170170
:::note[Verifying that the version override was applied]
171171

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

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1410,35 +1410,13 @@ wrangler triggers deploy [OPTIONS]
14101410

14111411
[Deployments](/workers/configuration/versions-and-deployments/#deployments) track the version(s) of your Worker that are actively serving traffic.
14121412

1413-
### `list`
1414-
14151413
:::note
14161414
The minimum required wrangler version to use these commands is 3.40.0. For versions before 3.73.0, you will need to add the `--x-versions` flag.
14171415
:::
14181416

1419-
Retrieve details for the 10 most recent [deployments](/workers/configuration/versions-and-deployments/#deployments). Details include `Created on`, `Author`, `Source`, an optional `Message`, and metadata about the `Version(s)` in the deployment.
1420-
1421-
```txt
1422-
wrangler deployments list [OPTIONS]
1423-
```
1424-
1425-
- `--name` <Type text="string" /> <MetaInfo text="optional" />
1426-
- Perform on a specific Worker rather than inheriting from the [Wrangler configuration file](/workers/wrangler/configuration/).
1427-
1428-
<Render file="wrangler-commands/global-flags" product="workers" />
1429-
1430-
### `status`
1431-
1432-
Retrieve details for the most recent deployment. Details include `Created on`, `Author`, `Source`, an optional `Message`, and metadata about the `Version(s)` in the deployment.
1433-
1434-
```txt
1435-
wrangler deployments status
1436-
```
1437-
1438-
- `--name` <Type text="string" /> <MetaInfo text="optional" />
1439-
- Perform on a specific Worker rather than inheriting from the [Wrangler configuration file](/workers/wrangler/configuration/).
1417+
<WranglerCommand command="deployments list" headingLevel={3} />
14401418

1441-
<Render file="wrangler-commands/global-flags" product="workers" />
1419+
<WranglerCommand command="deployments status" headingLevel={3} />
14421420

14431421
## `rollback`
14441422

0 commit comments

Comments
 (0)