🐛 BUG: Using wrangler d1 export
with --no-schema
or --no-data
options are incorrectly parsed
#5764
Labels
bug
Something that isn't working
Which Cloudflare product(s) does this pertain to?
D1
What version(s) of the tool(s) are you using?
3.53.1 [Wrangler]
What version of Node are you using?
20.12.2
What operating system and version are you using?
Mac Sonoma
Describe the Bug
Observed behavior
I have been trying to export my D1 database to local using the
export
command, but trying to use--no-data
or--no-schema
seems to not be working (using"wrangler": "^3.53.1"
).Example command:
I receive an error like:
Expected behavior
Command is interpreted correctly and SQL file is generated as data-only or schema-only.
Steps to reproduce
pnpm run db:sync
and observe--no-schema
failurePlease provide a link to a minimal reproduction
https://github.com/LA1CH3/math-rock-stack
Please provide any relevant error logs
✘ [ERROR] Unknown argument: schema
The text was updated successfully, but these errors were encountered: