-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Labels
d1Relating to D1Relating to D1documentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or requestquick winPotentially easy/straightforward issue to tacklePotentially easy/straightforward issue to tackle
Description
Which Cloudflare product(s) does this pertain to?
D1, Workers Runtime
What versions are you using?
3.99.0 Wrangler 2.11.0 Node.js
What operating system and version are you using?
Fedora Linux
Please provide a link to a minimal reproduction
No response
Describe the Bug
I am on first stage development, not a single worker has been deployed, so I have never logged in with wrangler. Running npx wrangler d1 migrations apply DB
and it immediately opens the OAuth web page for authentication so it is trying to run the migrations on remote database.
The documentation states that --local
is default true but I still need to add it in order to run it on a local database. It is extremely dangerous that the default doesn't match the documentation.
It would be helpful if the local or remote status of the operation to be shows the confirmation message:
Your database may not be available to serve requests during the migration, continue?
The remote or local status of the database is only shown after confirmation:
Executing on local database DB
Please provide any relevant error logs
No response
Metadata
Metadata
Assignees
Labels
d1Relating to D1Relating to D1documentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or requestquick winPotentially easy/straightforward issue to tacklePotentially easy/straightforward issue to tackle
Type
Projects
Status
Backlog