You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Copy file name to clipboardExpand all lines: src/content/docs/workers/wrangler/commands.mdx
+12-3Lines changed: 12 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -258,7 +258,7 @@ None of the options for this command are required. Many of these options can be
258
258
Deploy your Worker to Cloudflare.
259
259
260
260
```txt
261
-
wrangler deploy [<SCRIPT>] [OPTIONS]
261
+
wrangler deploy [<PATH>] [OPTIONS]
262
262
```
263
263
264
264
:::note
@@ -267,8 +267,17 @@ None of the options for this command are required. Also, many can be set in your
267
267
268
268
:::
269
269
270
-
-`SCRIPT` <Typetext="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` <Typetext="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).
0 commit comments