Skip to content

Firestore emulator doesn't recognise rules flag #1303

@Yuripetusko

Description

@Yuripetusko

[REQUIRED] Environment info

firebase-tools: 6.9.2

Platform: macOS

[REQUIRED] Test case

According to docs

The emulator supports an optional --rules CLI flag. It expects the name of a local file containing your Cloud Firestore Security Rules and applies those rules to all projects. If you don't provide the local file path or use the loadFirestoreRules method as described below, the emulator treats all projects as having open rules.

[REQUIRED] Steps to reproduce

firestore (master) $ firebase emulators:start --only firestore --rules firestore.stable.rules

[REQUIRED] Expected behavior

--rules flag to be recognised as per Documentation

[REQUIRED] Actual behavior

error: unknown option --rules'`

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions