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

🐛 BUG: Using wrangler d1 export with --no-schema or --no-data options are incorrectly parsed #5764

Open
LA1CH3 opened this issue May 6, 2024 · 0 comments
Labels
bug Something that isn't working

Comments

@LA1CH3
Copy link

LA1CH3 commented May 6, 2024

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:

wrangler d1 export $DATABASE_NAME --remote --no-schema --output tmp/export.sql

I receive an error like:

✘ [ERROR] Unknown argument: schema

Expected behavior

Command is interpreted correctly and SQL file is generated as data-only or schema-only.

Steps to reproduce

Please provide a link to a minimal reproduction

https://github.com/LA1CH3/math-rock-stack

Please provide any relevant error logs

✘ [ERROR] Unknown argument: schema

@LA1CH3 LA1CH3 added the bug Something that isn't working label May 6, 2024
@LA1CH3 LA1CH3 changed the title 🐛 BUG: Using wrangler d1 export with --no-schema or --no-data does not work 🐛 BUG: Using wrangler d1 export with --no-schema or --no-data options are incorrectly parsed May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that isn't working
Projects
Status: Untriaged
Development

No branches or pull requests

1 participant