Skip to content

Commit 696a866

Browse files
committed
Update some C3 docs to mention wrangler.json
1 parent 7739d79 commit 696a866

File tree

2 files changed

+23
-17
lines changed

2 files changed

+23
-17
lines changed

src/content/docs/learning-paths/workers/get-started/c3-and-wrangler.mdx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ title: C3 & Wrangler
33
pcx_content_type: learning-unit
44
sidebar:
55
order: 1
6-
76
---
87

98
Before deploying your first Worker, learn about the CLI tools you will use to build and deploy your Worker project.
@@ -16,8 +15,8 @@ You can build and develop your Worker on the Cloudflare dashboard, without needi
1615

1716
The Cloudflare Developer Platform ecosystem has two command-line interfaces (CLI):
1817

19-
* C3: To create new projects.
20-
* Wrangler: To build and deploy your projects.
18+
- C3: To create new projects.
19+
- Wrangler: To build and deploy your projects.
2120

2221
## C3
2322

@@ -35,15 +34,15 @@ When you run C3 to create your project, C3 will install the latest version of Wr
3534

3635
## Source of truth
3736

38-
If you are building your Worker on the Cloudflare dashboard, you will set up your project configuration (such as environment variables, bindings, and routes) through the dashboard. If you are building your project programmatically using C3 and Wrangler, you will rely on a [`wrangler.toml`](/workers/wrangler/configuration/) file to configure your Worker.
37+
If you are building your Worker on the Cloudflare dashboard, you will set up your project configuration (such as environment variables, bindings, and routes) through the dashboard. If you are building your project programmatically using C3 and Wrangler, you will rely on a [`wrangler.json`/`wrangler.toml`](/workers/wrangler/configuration/) file to configure your Worker.
3938

40-
Cloudflare recommends choosing and using one [source of truth](/workers/wrangler/configuration/#source-of-truth), the dashboard or `wrangler.toml`, to avoid errors in your project.
39+
Cloudflare recommends choosing and using one [source of truth](/workers/wrangler/configuration/#source-of-truth), the dashboard or `wrangler.json`/`wrangler.toml`, to avoid errors in your project.
4140

4241
## Summary
4342

4443
By reading this page, you have learned:
4544

46-
* How to use C3 to create new Workers and Pages projects.
47-
* How to use Wrangler to develop, configure, and delete your projects.
45+
- How to use C3 to create new Workers and Pages projects.
46+
- How to use Wrangler to develop, configure, and delete your projects.
4847

4948
In the next section, you will learn more about the Cloudflare dashboard before moving on to deploy your first Worker.

src/content/docs/pages/get-started/c3.mdx

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,14 @@ description: Use C3 (`create-cloudflare` CLI) to set up and deploy new
1010
deployment.
1111
---
1212

13-
import { Render, TabItem, Tabs, Type, MetaInfo, PackageManagers } from "~/components";
13+
import {
14+
Render,
15+
TabItem,
16+
Tabs,
17+
Type,
18+
MetaInfo,
19+
PackageManagers,
20+
} from "~/components";
1421

1522
Cloudflare provides a CLI command for creating new Workers and Pages projects — `npm create cloudflare`, powered by the [`create-cloudflare` package](https://www.npmjs.com/package/create-cloudflare).
1623

@@ -163,8 +170,8 @@ bun create cloudflare@latest [--] [<DIRECTORY>] [OPTIONS] [-- <NESTED ARGS...>]
163170
At a minimum, templates must contain the following:
164171

165172
- `package.json`
166-
- `wrangler.toml`
167-
- `src/` containing a worker script referenced from `wrangler.toml`
173+
- `wrangler.json` or `wrangler.toml`
174+
- `src/` containing a worker script referenced from `wrangler.json`/`wrangler.toml`
168175

169176
See the [templates folder](https://github.com/cloudflare/workers-sdk/tree/main/packages/create-cloudflare/templates) of this repo for more examples.
170177

@@ -229,7 +236,7 @@ Cloudflare collects anonymous usage data to improve `create-cloudflare` over tim
229236
You can opt-out if you do not wish to share any information.
230237

231238
<PackageManagers
232-
type="create"
239+
type="create"
233240
pkg="cloudflare@latest"
234241
args="telemetry disable"
235242
/>
@@ -243,15 +250,15 @@ export CREATE_CLOUDFLARE_TELEMETRY_DISABLED=1
243250
You can check the status of telemetry collection at any time.
244251

245252
<PackageManagers
246-
type="create"
247-
pkg="cloudflare@latest"
248-
args="telemetry status"
253+
type="create"
254+
pkg="cloudflare@latest"
255+
args="telemetry status"
249256
/>
250257

251258
You can always re-enable telemetry collection.
252259

253260
<PackageManagers
254-
type="create"
255-
pkg="cloudflare@latest"
256-
args="telemetry enable"
261+
type="create"
262+
pkg="cloudflare@latest"
263+
args="telemetry enable"
257264
/>

0 commit comments

Comments
 (0)