Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚀 Feature Request: #7858

Open
lightshareteam opened this issue Jan 22, 2025 · 1 comment
Open

🚀 Feature Request: #7858

lightshareteam opened this issue Jan 22, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@lightshareteam
Copy link

Describe the solution

In short: when running npm create cloudflare@latest myapp, please add an option that allow user to choose to use wrangler.toml or wrangler.json

Reason:

When creating D1 with npx wrangler d1 create myD1, it output

[[d1_databases]]
binding = "DB"
database_name = "myD1"
database_id = "xxxxxxxxxxxxxxxxxx"

I have to convert it to json before I can paste it into wrangler.json. So, it would be great if you add an option that allow user to choose to use wrangler.toml or wrangler.json

@lightshareteam lightshareteam added the enhancement New feature or request label Jan 22, 2025
@github-project-automation github-project-automation bot moved this to Untriaged in workers-sdk Jan 22, 2025
@penalosa
Copy link
Contributor

@lightshareteam Running npx wrangler d1 create myD1 should output in the format of your local project (whether that's a wrangler.json or wrangler.toml config file). It sounds like that might have a bug? Where did you run npx wrangler d1 create myD1?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Untriaged
Development

No branches or pull requests

2 participants