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

--instance flag is returning a "unknown option" error #8275

Open
mdurfee opened this issue Mar 1, 2025 · 1 comment
Open

--instance flag is returning a "unknown option" error #8275

mdurfee opened this issue Mar 1, 2025 · 1 comment

Comments

@mdurfee
Copy link

mdurfee commented Mar 1, 2025

[REQUIRED] Environment info

13.32.0

Windows

[REQUIRED] Test case

firebase --project myfirebasetest --instance myfirebasetest-cxid-vor00000 database:remove /DATAB/EXAMPLE
error: unknown option '--instance'

[REQUIRED] Steps to reproduce

When using the --project and --instance flags to perform a bulk data delete

[REQUIRED] Expected behavior

Bulk Data delete for specified instance (shard) completes after warnings are confirmed.

[REQUIRED] Actual behavior

error: unknown option '--instance'

@aalej
Copy link
Contributor

aalej commented Mar 3, 2025

Hey @mdurfee, thanks for reporting this. From what I can gather, this looks like an issue with how the Firebase CLI parses the command options. Re-arranging the command to something like below works:

firebase database:remove /PATH --project PROJECT_ID --instance INSTANCE

Could you give the above a try to see if this would work?

It also looks like this behavior started on firebase-tools v13.26.0. I'll check this with our engineering team to get a better idea of what could have cause this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants