File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
src/content/docs/pages/get-started Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 131131 },
132132 "volta" : {
133133 "node" : " 22.9.0"
134- }
134+ },
135+ "packageManager" :
" [email protected] +sha512.4abf725084d7bcbafbd728bfc7bee61f2f791f977fd87542b3579dcb23504d170d46337945e4c66485cd12d588a0c0e570ed9c477e7ccdd8507cf05f3f92eaca" 135136}
Original file line number Diff line number Diff line change @@ -74,23 +74,27 @@ This is the full format of a C3 invocation alongside the possible CLI arguments:
7474<Tabs > <TabItem label = " npm" >
7575
7676``` sh
77- npm create cloudflare@latest [--] [< DIRECTORY> ] [OPTIONS] [-- < NESTED ARGS...> ]
77+ npm create cloudflare@latest -- --platform=pages [< DIRECTORY> ] [OPTIONS] [-- < NESTED ARGS...> ]
7878```
7979
8080</TabItem > <TabItem label = " yarn" >
8181
8282``` sh
83- yarn create cloudflare [--] [< DIRECTORY> ] [OPTIONS] [-- < NESTED ARGS...> ]
83+ yarn create cloudflare --platform=pages [< DIRECTORY> ] [OPTIONS] [-- < NESTED ARGS...> ]
8484```
8585
8686</TabItem > <TabItem label = " pnpm" >
8787
8888``` sh
89- pnpm create cloudflare@latest [--] [< DIRECTORY> ] [OPTIONS] [-- < NESTED ARGS...> ]
89+ pnpm create cloudflare@latest --platform=pages [< DIRECTORY> ] [OPTIONS] [-- < NESTED ARGS...> ]
9090```
9191
9292</TabItem > </Tabs >
9393
94+ :::note
95+ To create a Pages project you must now specify the ` --platform=pages ` arg, otherwise C3 will always create a Workers project.
96+ :::
97+
9498- ` DIRECTORY ` <Type text = " string" /> <MetaInfo text = " optional" />
9599
96100 - The directory where the application should be created. The name of the application is taken from the directory name.
You can’t perform that action at this time.
0 commit comments