Skip to content

Commit 7087ef0

Browse files
JacobMGEvanspenalosadeadlypants1973
authored
[wrangler] dependency on libc++ (cloudflare#6744)
* [wrangler] dependency on lib++ There is a need for libc++ due to Workerd currently. * Update commands.md * added documentation for remote KV flag --experimental-local-remote-kv * Revised wording for libc++ depend warning * Update content/workers/wrangler/commands.md Co-authored-by: Somhairle MacLeòid <[email protected]> * Update content/workers/wrangler/commands.md Co-authored-by: Kate Tungusova <[email protected]> * Update content/workers/wrangler/commands.md Co-authored-by: Kate Tungusova <[email protected]> Co-authored-by: Somhairle MacLeòid <[email protected]> Co-authored-by: Kate Tungusova <[email protected]>
1 parent f854fa9 commit 7087ef0

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

content/workers/wrangler/commands.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,25 @@ None of the options for this command are required. Many of these options can be
155155
- `--tsconfig` {{<type>}}string{{</type>}}
156156
- Path to a custom `tsconfig.json` file.
157157
- `--local` {{<type>}}boolean{{</type>}} {{<prop-meta>}}(default: false){{</prop-meta>}}
158+
158159
- Run the preview of the Worker directly on your local machine.
159160
{{<Aside type="warning">}}
160-
This runs an ephemeral local version of your Worker, and will not be able to access data stored on Cloudflare's Edge (for instance, this includes your data stored on KV). If you'd like to persist data locally, using the `--persist` flag will tell Wrangler to store data in the `.wrangler/state` subdirectory.
161+
This runs an ephemeral local version of your Worker, and will not be able to access data stored on Cloudflare's network (for example, this includes your data stored on KV). To persist data locally, using the `--persist` flag will tell Wrangler to store data in the `.wrangler/state` subdirectory.
161162
{{</Aside>}}
162163

163164
- `--experimental-local` {{<type>}}boolean{{</type>}} {{<prop-meta>}}(default: false){{</prop-meta>}}
164165
- Run the preview of the Worker directly on your local machine using the [open source Cloudflare Workers runtime](https://github.com/cloudflare/workerd).
166+
{{<Aside type="warning">}}
167+
168+
When working on Wrangler, you need to satisfy [`workerd`](https://github.com/cloudflare/workerd)'s `libc++1` runtime dependencies:
169+
170+
On Linux: libc++ (for example, the package `libc++1` on Debian Bullseye).
171+
On macOS: The XCode command line tools, which can be installed with `xcode-select --install`.
172+
173+
{{</Aside>}}
174+
175+
- `--experimental-local-remote-kv` {{<type>}}boolean{{</type>}} {{<prop-meta>}}(default: false){{</prop-meta>}}
176+
- This will write/read to/from your remote KV namespaces, as specified in `wrangler.toml`. Note this flag requires `--experimental-local` to be enabled.
165177
- `--minify` {{<type>}}boolean{{</type>}}
166178
- Minify the script.
167179
- `--node-compat` {{<type>}}boolean{{</type>}}
@@ -1256,7 +1268,7 @@ Deployment ID: y565f193-a6b9-4c7f-91ae-4b4e6d98ftbf
12561268
Created on: 2022-11-11T15:49:08.117218Z
12571269
12581270
Source: Dashboard
1259-
1271+
12601272
Deployment ID: e81fe980-7622-6e1d-740b-1457de3e07e2
12611273
Created on: 2022-11-11T15:51:20.79936Z
12621274
@@ -1272,7 +1284,6 @@ Source: Wrangler
12721284
12731285
{{</definitions>}}
12741286
1275-
12761287
---
12771288
12781289
## types

0 commit comments

Comments
 (0)