Wrangler command to only init a toml file and create a proj on cloudflare

Hi! I'm making a template for some users of an open source library, which includes the cloudflare worker code. I want to give them an example command they can run that will initialize a cloudflare project for them, and generate a wrangler.toml file, and that's it. I don;t want to create from a cloudflare template, or generate any js files. They'll have that already from my repo. Does a wrangler command for this exist? If not, I can have them create the toml file manually, but I'm not aware of how you create a corresponding cloudflare project without doing it via the wrangler templating commands, ie dry-bread-4c37
1 Reply
Adam
Adam8mo ago
We don't currently have a command like that, but you shouldn't need it. You can create the wrangler.toml for them with name, entrypoint, and compat date. The project won't be initialized until deployment with the name being whatever you set it to in the config file. Does that work?