Open j1mmie opened 1 year ago
I have a .firebaserc file that looks like this:
{ "projects": { "prod": "my-production-project-id" }, "targets": {}, "etags": {} }
Since the file exists, but no default project is specified, fire-import fails with the following error:
default
fire-import
Error: Command failed: gcloud firestore export gs://undefined.appspot.com/firestore_export/ ERROR: (gcloud.firestore.export) PERMISSION_DENIED: Permission denied: Consumer 'project:undefined' has been suspended.
It would be convenient to allow the user to specify a project name instead of default. For example:
npx fire-import firestore --project-name prod
My reason for not keeping a default project in my .firebaserc is so that I don't accidentally delete, push, or overwrite production data.
Thanks again for letting me know the requirement I wasn't aware of the custom project id use. I will try to provide arg in next update.
I have a .firebaserc file that looks like this:
Since the file exists, but no
default
project is specified,fire-import
fails with the following error:It would be convenient to allow the user to specify a project name instead of
default
. For example:My reason for not keeping a default project in my .firebaserc is so that I don't accidentally delete, push, or overwrite production data.