diff --git a/src/content/docs/pages/get-started/c3.mdx b/src/content/docs/pages/get-started/c3.mdx index 3f1e54fb5ed734e..df9a36a3f2a3e23 100644 --- a/src/content/docs/pages/get-started/c3.mdx +++ b/src/content/docs/pages/get-started/c3.mdx @@ -25,10 +25,14 @@ Cloudflare provides a CLI command for creating new Workers and Pages projects Open a terminal window and run: - + Running this command will prompt you to install the [`create-cloudflare`](https://www.npmjs.com/package/create-cloudflare) package, and then ask you questions about the type of application you wish to create. +:::note +To create a Pages project you must now specify the `--platform=pages` arg, otherwise C3 will always create a Workers project. +::: + ## Web frameworks If you choose the "Framework Starter" option, you will be prompted to choose a framework to use. The following frameworks are currently supported: @@ -71,25 +75,7 @@ C3 collects any required input through a series of interactive prompts. You may This is the full format of a C3 invocation alongside the possible CLI arguments: - - -```sh -npm create cloudflare@latest [--] [] [OPTIONS] [-- ] -``` - - - -```sh -yarn create cloudflare [--] [] [OPTIONS] [-- ] -``` - - - -```sh -pnpm create cloudflare@latest [--] [] [OPTIONS] [-- ] -``` - - + - `DIRECTORY` diff --git a/src/content/partials/pages/c3-run-command-no-directory.mdx b/src/content/partials/pages/c3-run-command-no-directory.mdx new file mode 100644 index 000000000000000..a64961aff54a926 --- /dev/null +++ b/src/content/partials/pages/c3-run-command-no-directory.mdx @@ -0,0 +1,8 @@ +--- +{} +--- + +import { PackageManagers } from "~/components"; + + + diff --git a/src/content/partials/workers/c3-run-command-no-directory.mdx b/src/content/partials/workers/c3-run-command-no-directory.mdx deleted file mode 100644 index eedcecffc3df851..000000000000000 --- a/src/content/partials/workers/c3-run-command-no-directory.mdx +++ /dev/null @@ -1,7 +0,0 @@ ---- -{} ---- - -import { PackageManagers } from "~/components"; - -