Skip to content

Commit 05412ab

Browse files
committed
use wrangler command component for versions upload
1 parent a7e17a5 commit 05412ab

File tree

1 file changed

+11
-23
lines changed

1 file changed

+11
-23
lines changed

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

Lines changed: 11 additions & 23 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,27 +1277,12 @@ 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" />
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+
/>
12981286

12991287
### `deploy`
13001288

0 commit comments

Comments
 (0)