HEX
Server: Apache/2.4.65 (Ubuntu)
System: Linux ielts-store-v2 6.8.0-1036-gcp #38~22.04.1-Ubuntu SMP Thu Aug 14 01:19:18 UTC 2025 x86_64
User: root (0)
PHP: 7.2.34-54+ubuntu20.04.1+deb.sury.org+1
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: //snap/google-cloud-cli/396/help/man/man1/gcloud_alpha_emulators_firestore_start.1
.TH "GCLOUD_ALPHA_EMULATORS_FIRESTORE_START" 1



.SH "NAME"
.HP
gcloud alpha emulators firestore start \- start a local Firestore emulator



.SH "SYNOPSIS"
.HP
\f5gcloud alpha emulators firestore start\fR [\fB\-\-database\-mode\fR=\fIDATABASE_MODE\fR] [\fB\-\-export\-on\-exit\fR=\fIEXPORT_ON_EXIT\fR] [\fB\-\-host\-port\fR=\fIHOST_PORT\fR] [\fB\-\-import\-data\fR=\fIIMPORT_DATA\fR] [\fB\-\-licenses\fR] [\fB\-\-rules\fR=\fIRULES\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]



.SH "DESCRIPTION"

\fB(ALPHA)\fR This command starts a local Firestore emulator.



.SH "EXAMPLES"

To start the local Firestore emulator, run:

.RS 2m
$ gcloud alpha emulators firestore start
.RE

To bind to a specific host and port, run:

.RS 2m
$ gcloud alpha emulators firestore start \-\-host\-port=0.0.0.0:8080
.RE

To run the local Firestore emulator with a Firebase Rules set, run:

.RS 2m
$ gcloud alpha emulators firestore start \-\-rules=firestore.rules
.RE

To run the local Firestore emulator in Datastore Mode, run:

.RS 2m
$ gcloud alpha emulators firestore start \e
    \-\-database\-mode=datastore\-mode
.RE

To import data at the start of the Firestore emulator, run:

.RS 2m
$ gcloud alpha emulators firestore start \-\-import\-data=<path/to/file>
.RE

To export emulator data upon emulator shutdown, run:

.RS 2m
$ gcloud alpha emulators firestore start \e
    \-\-export\-on\-exit=<path/to/directory>
.RE



.SH "FLAGS"

.RS 2m
.TP 2m
\fB\-\-database\-mode\fR=\fIDATABASE_MODE\fR

The database mode to start the Firestore Emulator in. The valid options are:

.RS 2m
`firestore\-native` (default): start the emulator in Firestore Native
`datastore\-mode`: start the emulator in Datastore Mode
.RE

.TP 2m
\fB\-\-export\-on\-exit\fR=\fIEXPORT_ON_EXIT\fR

Directory path in which emulator data will be saved upon shutdown.
Example:\f5/home/user/myexports/2024\-03\-26/\fR

.TP 2m
\fB\-\-host\-port\fR=\fIHOST_PORT\fR

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:

.RS 2m
[ADDRESS][:PORT]
.RE

In this format you must enclose IPv6 addresses in square brackets: e.g.

.RS 2m
[2001:db8:0:0:0:ff00:42:8329]:8080
.RE

The default value is localhost:8080.

.TP 2m
\fB\-\-import\-data\fR=\fIIMPORT_DATA\fR

File path to the data to be loaded into the emulator upon start up.
Example:\f5/home/user/myexports/sampleExport/sampleExport.overall_export_metadata.\fR

.TP 2m
\fB\-\-licenses\fR

If set, the emulator will print open\-source dependencies and licenses, then
exit.

.TP 2m
\fB\-\-rules\fR=\fIRULES\fR

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.


.RE
.sp

.SH "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 \fB$ gcloud help\fR for details.



.SH "NOTES"

This command is currently in alpha and might change without notice. If this
command fails with API permission errors despite specifying the correct project,
you might be trying to access an API with an invitation\-only early access
allowlist. These variants are also available:

.RS 2m
$ gcloud emulators firestore start
.RE

.RS 2m
$ gcloud beta emulators firestore start
.RE