Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 25 additions & 42 deletions src/content/docs/workers/wrangler/commands.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,10 @@ You can then run them using your package manager of choice:

---

<WranglerCommand command="docs" description="Open the Cloudflare developer documentation in your default browser." />
<WranglerCommand
command="docs"
description="Open the Cloudflare developer documentation in your default browser."
/>

---

Expand Down Expand Up @@ -142,7 +145,7 @@ Interact with Cloudflare's D1 service.

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

<WranglerNamespace namespace="hyperdrive" headingLevel={3}/>
<WranglerNamespace namespace="hyperdrive" headingLevel={3} />

---

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

### `upload`

Upload a new [version](/workers/configuration/versions-and-deployments/#versions) of your Worker that is not deployed immediately.

```txt
wrangler versions upload [OPTIONS]
```

- `--tag` <Type text="string" /> <MetaInfo text="optional" />
- Add a version tag. Accepts empty string.
- `--message` <Type text="string" /> <MetaInfo text="optional" />
- Add a version message. Accepts empty string.
- `--preview-alias` <Type text="string" /> <MetaInfo text="optional" />
- Creates an alias to this version.
- `--name` <Type text="string" /> <MetaInfo text="optional" />
- Perform on a specific Worker rather than inheriting from the [Wrangler configuration file](/workers/wrangler/configuration/).
- `--env` <Type text="string" /> <MetaInfo text="optional" />
- Perform on a specific environment.
<Render file="vite-environments" product="workers" />

<Render file="wrangler-commands/global-flags" product="workers" />

### `deploy`

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.
<WranglerCommand
command="versions upload"
description="
Upload a new [version](/workers/configuration/versions-and-deployments/#versions) of your Worker that is not deployed immediately."
headingLevel={3}
/>

```txt
wrangler versions deploy [OPTIONS]
```
<WranglerCommand
command="versions deploy"
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."
headingLevel={3}

- `--name` <Type text="string" /> <MetaInfo text="optional" />
- Perform on a specific Worker rather than inheriting from the [Wrangler configuration file](/workers/wrangler/configuration/).

<Render file="wrangler-commands/global-flags" product="workers" />
/>

:::note

Expand All @@ -1318,18 +1300,19 @@ For example:

:::

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

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

```txt
wrangler versions list [OPTIONS]
```
<WranglerCommand
command="versions view"

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

<Render file="wrangler-commands/global-flags" product="workers" />
/>

### `secret put`

Expand Down
Loading