Skip to content

Commit a2f6913

Browse files
Update wrangler deploy command docs to also mention that a directory can be passed as well (#26399)
* Update `wrangler deploy` command docs to also mention that a directory can be passed as well * mention that providing an assets dir only works in interactive mode
1 parent 19946ae commit a2f6913

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

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

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ None of the options for this command are required. Many of these options can be
258258
Deploy your Worker to Cloudflare.
259259

260260
```txt
261-
wrangler deploy [<SCRIPT>] [OPTIONS]
261+
wrangler deploy [<PATH>] [OPTIONS]
262262
```
263263

264264
:::note
@@ -267,8 +267,17 @@ None of the options for this command are required. Also, many can be set in your
267267

268268
:::
269269

270-
- `SCRIPT` <Type text="string" />
271-
- The path to an entry point for your Worker. Only required if your [Wrangler configuration file](/workers/wrangler/configuration/) does not include a `main` key (for example, `main = "index.js"`).
270+
- `PATH` <Type text="string" />
271+
- A path specific what needs to be deployed, this can either be:
272+
- The path to an entry point for your Worker.
273+
- Only required if your [Wrangler configuration file](/workers/wrangler/configuration/) does not include a `main` key (for example, `main = "index.js"`).
274+
275+
- Or the path to an assets directory for the deployment of a static site.
276+
- Visit [assets](/workers/static-assets/) for more information.
277+
- This overrides the eventual `assets` configuration in your [Wrangler configuration file](/workers/wrangler/configuration/).
278+
- This is equivalent to the `--assets` option listed below.
279+
- Note: this option currently only works only in interactive mode (so not in CI systems).
280+
272281
- `--name` <Type text="string" /> <MetaInfo text="optional" />
273282
- Name of the Worker.
274283
- `--no-bundle` <Type text="boolean" /> <MetaInfo text="(default: false) optional" />

0 commit comments

Comments
 (0)