Skip to content

application generator

The create-cloudflare generator wraps Cloudflare’s create-cloudflare (C3) CLI to scaffold a Worker project, then makes it Nx-ready with Wrangler target inference and workspace-managed dependencies.

Aliases: c3, application, app

bunx nx g @naxodev/nx-cloudflare:application my-worker
OptionTypeDefaultDescription
directorystring(required)The directory of the new application. Takes the first positional argument.
namestringThe name of the application. Must match ^[a-zA-Z][^:]*$.
typestringWorker template forwarded to C3 --type (e.g. hello-world, hello-world-durable-object, scheduled, queues, openapi).
frameworkstringWeb framework forwarded to C3 --framework (e.g. react, hono, next, astro, svelte, vue).
templatestringRemote git template forwarded to C3 --template.
langts | js | pythontsLanguage of the generated scaffold, forwarded to C3 --lang.
c3Versionstring2.70.0Override the pinned create-cloudflare version to invoke.
c3Argsstring[]Additional raw flags forwarded to C3. Generator-controlled flags (git, deploy, open, auto-update) cannot be overridden.
tagsstringComma-separated tags added to the application (used for linting).
useProjectJsonbooleanfalseWrite an explicit project.json. Off by default — the worker is registered from its package.json and Wrangler config via target inference.
skipFormatbooleanfalseSkip formatting files.

Provide exactly one of type, framework, or template to control the C3 scaffold non-interactively. If none are provided, C3’s interactive prompts guide selection.

bunx nx show project my-worker

The project appears in the graph with inferred serve, deploy, and typegen targets — no project.json required.