Skip to content

API template not appearing when passing --lang ts to create cloudflare #15649

Description

@tventosa-cf

What versions & operating system are you using?

pnpx envinfo --system --npmPackages '{wrangler,create-cloudflare,miniflare,@cloudflare/*}' --binaries

System:
OS: macOS 26.5.2
CPU: (18) arm64 Apple M5 Pro
Memory: 346.17 MB / 48.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 26.8.1 - /opt/homebrew/bin/node
Yarn: 1.22.22 - /opt/homebrew/bin/yarn
npm: 11.19.0 - /opt/homebrew/bin/npm
pnpm: 11.14.0 - /opt/homebrew/bin/pnpm

pnpm create cloudflare@latest -v
2.72.7

Please provide a link to a minimal reproduction

not required

Describe the Bug

when running the following command:

pnpm create cloudflare@latest "./workers/$worker_name" \
        --agents \
        --no-deploy \
        --lang ts \
        --no-git

the API starter (OpenAPI compliant) template does not show up, but if I remove --lang ts, it does. This behaviour is specially weird since the template is written in TypeScript

Please provide any relevant error logs

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature:templatesIssue with a workers-sdk templatepackage:c3Relating to C3 (create-cloudflare) package

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions