is there any wrangler.toml init function?

if i create project with npm create cloudflare@latest and select webapp, there is no initialized wrangler.toml file. So i have to search toml initial code and copy paste edit... not smart way.. cuz im already login with npx wrangler login... there is no way to initialize using wrangler cli?
3 Replies
sv._.342
sv._.3425mo ago
ummm... but docs said pages can use D1 database ..etc and D1 database docs tells D1 needs wrangler.toml for binding... hmmm... i need to read again carefully. thanks!
sv._.342
sv._.3425mo ago
what is this for? https://developers.cloudflare.com/pages/functions/bindings/#interact-with-your-d1-databases-locally i think local dosen't mean no ethernet connection. if i want testing d1 without deploy (like npm run dev in cli), i think i need local.. am i right? i want local because i want check process quickly without build, deploy, check logs..etc sorry im new
Bindings · Cloudflare Pages docs
A binding enables your Pages Functions to interact with resources on the Cloudflare developer platform. Use bindings to integrate your Pages Functions …
sv._.342
sv._.3425mo ago
oh thanks i got it