Skip to content

Commit 68440d8

Browse files
use wrangler command component for versions upload (#24833)
* use wrangler command component for versions upload * include some more versions commands --------- Co-authored-by: kodster28 <[email protected]>
1 parent c3043a5 commit 68440d8

File tree

1 file changed

+25
-42
lines changed

1 file changed

+25
-42
lines changed

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

Lines changed: 25 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,10 @@ You can then run them using your package manager of choice:
100100

101101
---
102102

103-
<WranglerCommand command="docs" description="Open the Cloudflare developer documentation in your default browser." />
103+
<WranglerCommand
104+
command="docs"
105+
description="Open the Cloudflare developer documentation in your default browser."
106+
/>
104107

105108
---
106109

@@ -142,7 +145,7 @@ Interact with Cloudflare's D1 service.
142145

143146
Manage [Hyperdrive](/hyperdrive/) database configurations.
144147

145-
<WranglerNamespace namespace="hyperdrive" headingLevel={3}/>
148+
<WranglerNamespace namespace="hyperdrive" headingLevel={3} />
146149

147150
---
148151

@@ -1274,40 +1277,19 @@ If you are using `CLOUDFLARE_API_TOKEN` instead of OAuth, and you can logout by
12741277
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.
12751278
:::
12761279

1277-
### `upload`
1278-
1279-
Upload a new [version](/workers/configuration/versions-and-deployments/#versions) of your Worker that is not deployed immediately.
1280-
1281-
```txt
1282-
wrangler versions upload [OPTIONS]
1283-
```
1284-
1285-
- `--tag` <Type text="string" /> <MetaInfo text="optional" />
1286-
- Add a version tag. Accepts empty string.
1287-
- `--message` <Type text="string" /> <MetaInfo text="optional" />
1288-
- Add a version message. Accepts empty string.
1289-
- `--preview-alias` <Type text="string" /> <MetaInfo text="optional" />
1290-
- Creates an alias to this version.
1291-
- `--name` <Type text="string" /> <MetaInfo text="optional" />
1292-
- Perform on a specific Worker rather than inheriting from the [Wrangler configuration file](/workers/wrangler/configuration/).
1293-
- `--env` <Type text="string" /> <MetaInfo text="optional" />
1294-
- Perform on a specific environment.
1295-
<Render file="vite-environments" product="workers" />
1296-
1297-
<Render file="wrangler-commands/global-flags" product="workers" />
1298-
1299-
### `deploy`
1300-
1301-
Deploy a previously created [version](/workers/configuration/versions-and-deployments/#versions) of your Worker all at once or create a [gradual deployment](/workers/configuration/versions-and-deployments/gradual-deployments/) to incrementally shift traffic to a new version by following an interactive prompt.
1280+
<WranglerCommand
1281+
command="versions upload"
1282+
description="
1283+
Upload a new [version](/workers/configuration/versions-and-deployments/#versions) of your Worker that is not deployed immediately."
1284+
headingLevel={3}
1285+
/>
13021286

1303-
```txt
1304-
wrangler versions deploy [OPTIONS]
1305-
```
1287+
<WranglerCommand
1288+
command="versions deploy"
1289+
description="Deploy a previously created [version](/workers/configuration/versions-and-deployments/#versions) of your Worker all at once or create a [gradual deployment](/workers/configuration/versions-and-deployments/gradual-deployments/) to incrementally shift traffic to a new version by following an interactive prompt."
1290+
headingLevel={3}
13061291

1307-
- `--name` <Type text="string" /> <MetaInfo text="optional" />
1308-
- Perform on a specific Worker rather than inheriting from the [Wrangler configuration file](/workers/wrangler/configuration/).
1309-
1310-
<Render file="wrangler-commands/global-flags" product="workers" />
1292+
/>
13111293

13121294
:::note
13131295

@@ -1318,18 +1300,19 @@ For example:
13181300

13191301
:::
13201302

1321-
### `list`
1303+
<WranglerCommand
1304+
command="versions list"
1305+
description="Retrieve details for the 10 most recent versions. Details include `Version ID`, `Created on`, `Author`, `Source`, and optionally, `Tag` or `Message`."
1306+
headingLevel={3}
13221307

1323-
Retrieve details for the 10 most recent versions. Details include `Version ID`, `Created on`, `Author`, `Source`, and optionally, `Tag` or `Message`.
1308+
/>
13241309

1325-
```txt
1326-
wrangler versions list [OPTIONS]
1327-
```
1310+
<WranglerCommand
1311+
command="versions view"
13281312

1329-
- `--name` <Type text="string" /> <MetaInfo text="optional" />
1330-
- Perform on a specific Worker rather than inheriting from the [Wrangler configuration file](/workers/wrangler/configuration/).
1313+
headingLevel={3}
13311314

1332-
<Render file="wrangler-commands/global-flags" product="workers" />
1315+
/>
13331316

13341317
### `secret put`
13351318

0 commit comments

Comments
 (0)