- NAME
-
- gcloud beta emulators firestore start - start a local Firestore emulator
- SYNOPSIS
-
-
gcloud beta emulators firestore start
[--database-mode
=DATABASE_MODE
] [--host-port
=HOST_PORT
] [--rules
=RULES
] [GCLOUD_WIDE_FLAG …
]
-
- DESCRIPTION
-
(BETA)
This command starts a local Firestore emulator. - EXAMPLES
-
To start the local Firestore emulator, run:
gcloud beta emulators firestore start
To bind to a specific host and port, run:
gcloud beta emulators firestore start --host-port=0.0.0.0:8080
To run the local Firestore emulator with a Firebase Rules set, run:
gcloud beta emulators firestore start --rules=firestore.rules
To run the local Firestore emulator in Datastore Mode, run:
gcloud beta emulators firestore start --database-mode=datastore-mode
- FLAGS
-
--database-mode
=DATABASE_MODE
-
The database mode to start the Firestore Emulator in. The valid options are:
`firestore-native` (default): start the emulator in Firestore Native `datastore-mode`: start the emulator in Datastore Mode
--host-port
=HOST_PORT
-
The host:port to which the emulator should be bound. Can take the form of a
single address (hostname, IPv4, or IPv6) and/or port:
[ADDRESS][:PORT]
In this format you must enclose IPv6 addresses in square brackets: e.g.
[2001:db8:0:0:0:ff00:42:8329]:8080
The default value is localhost:8080.
--rules
=RULES
- If set, all projects will use the security rules in this file. More information on Firebase Rules and the syntax for this file is available at https://firebase.google.com/docs/rules.
- GCLOUD WIDE FLAGS
-
These flags are available to all commands:
--access-token-file
,--account
,--billing-project
,--configuration
,--flags-file
,--flatten
,--format
,--help
,--impersonate-service-account
,--log-http
,--project
,--quiet
,--trace-token
,--user-output-enabled
,--verbosity
.Run
$ gcloud help
for details. - NOTES
-
This command is currently in beta and might change without notice. These
variants are also available:
gcloud emulators firestore start
gcloud alpha emulators firestore start
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-02-21 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]