gcloud_beta_emulators_datastore_env-init (1)
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] [--legacy] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(BETA) Prints the commands but does not execute them. It will output in
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)'
- --legacy
-
Set to use the legacy emulator which supports Cloud Datastore API v1beta2.
GCLOUD WIDE FLAGS
These flags are available to all commands: --account, --configuration, --flags-file, --flatten, --format, --help, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity. Run $ gcloud help for details.
EXAMPLES
To print the env variables exports for a datastore emulator, run:
- $ gcloud beta emulators datastore env-init --data-dir DATA-DIR
NOTES
This command is currently in BETA and may change without notice. This variant is also available:
- $ gcloud alpha emulators datastore env-init