Skip to content

support CLI arg to select variant in create-cloudflare #9600

@sam-goodwin

Description

@sam-goodwin

I am trying to run

npm create cloudflare vite -- --framework=react --platform=workers --no-deploy  --no-git --lang=ts

And I still get asked to pick a "variant"

╰ Select a variant:
  ● TypeScript
  ○ TypeScript + SWC
  ○ JavaScript
  ○ JavaScript + SWC

How do I select this non-interactively? If I add --accept-defaults it seems to override all the other options.

Metadata

Metadata

Labels

c3Relating to C3 (create-cloudflare) packageenhancementNew feature or requestquick winPotentially easy/straightforward issue to tackle

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions