other than firebase deploy --only firestore:rules is there any other solution to upload the rules ?
the goal is to upload a different rules file without changing the project configuration
other than firebase deploy --only firestore:rules is there any other solution to upload the rules ?
the goal is to upload a different rules file without changing the project configuration
Copyright © 2021 Jogjafile Inc.
The command only tells the Firebase that it should upload the Firestore rules, not which file to upload. What exact file it uploads is actually configured in the
firebase.jsonfile for that project. There is no way to specify the file name on the command line though.What you can do is set up multiple project aliases, one for each rules file you want to use, and then either switch between the aliases with
firebase use ...or specify the alias with a--project=<alias>flag.