Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

firebase cli: firestore rules - how to specify the file to deploy

in the docs
https://firebase.google.com/docs/firestore/security/get-started#use_the_firebase_cli

I know i can deploy rules using:

firebase deploy --only firestore:rules

is there a way for me to specify the location of the rules file?

like image 303
w-- Avatar asked Jan 25 '18 08:01

w--


1 Answers

You cannot specify the rules file location in a command-line flag, but you can set it in firebase.json:

{
  "firestore": {
    "rules": "path/to/your/firestore.rules"
  }
}
like image 131
Michael Bleigh Avatar answered Oct 03 '22 20:10

Michael Bleigh