Reputation: 422
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
Upvotes: 0
Views: 77
Reputation: 599996
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.json
file 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.
Upvotes: 1