onflow / flow-cli

The Flow CLI is a command-line interface that provides useful utilities for building Flow applications
https://onflow.org
Apache License 2.0
206 stars 62 forks source link

flow init should add previewnet to flow.json and create a .gitignore #1646

Closed bluesign closed 2 weeks ago

bluesign commented 2 weeks ago

Issue To Be Solved

I tried flow init saved me an hour, it is amazing. It would be nice to add previewnet to flow.json and create .gitignore for keys

chasefleming commented 2 weeks ago

Awesome! That's so great to hear. Previewnet should be on there when it's created on the stable cadence branch. Do you need it on master? And yes to the gitignore for keys. Great idea.

bluesign commented 2 weeks ago

ah I think this was my bad, I created config with flow init then tried to use it with flow-c1 dev or something. I got error something like: contract EVM alias contains nonexisting network previewnet

flow-c1 init was not interactive somehow.