- INFORMATION
-
gcloud beta emulators datastore env-init
is supported in universe domainuniverse
; however, some of the values used in the help text may not be available. Command examples may not work as-is and may requires changes before execution. - NAME
-
- gcloud beta emulators datastore env-init - print the commands required to export env variables of a datastore
- SYNOPSIS
-
-
gcloud beta emulators datastore env-init
[--data-dir
=DATA_DIR
] [GCLOUD_WIDE_FLAG …
]
-
- DESCRIPTION
-
(BETA)
Prints the commands but does not execute them. It will output in shell syntax or on Windows it will be in cmd.exe syntax. - EXAMPLES
-
To print the env variables exports for a datastore emulator, run:
gcloud beta emulators datastore env-init --data-dir=DATA-DIR
You can use this command to set env vars in a bash script by adding the below line in the script.
eval $(gcloud beta emulators datastore env-init --data-dir=DATA-DIR)
- FLAGS
-
--data-dir
=DATA_DIR
-
The directory to be used to store/retrieve data/config for an emulator run. The
default value is
<USER_CONFIG_DIR>/emulators/datastore
. The value of USER_CONFIG_DIR can be found by running:gcloud info --format='get(config.paths.global_config_dir)'
- 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. This variant
is also available:
gcloud alpha emulators datastore env-init
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 2025-05-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-07 UTC."],[],[]]