gcloud_beta_emulators_pubsub_env-init (1)
NAME
- gcloud beta emulators pubsub env-init - print the commands required to export pubsub emulator's env variables
SYNOPSIS
-
gcloud beta emulators pubsub env-init [--data-dir=DATA_DIR] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(BETA) After starting the emulator, you need to set environment variables
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/pubsub. 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: --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 pubsub emulator, run:
- $ gcloud beta emulators pubsub env-init --data-dir DATA-DIR
For a detailed walkthrough of setting Pub/Sub emulator environment variables, see cloud.google.com/pubsub/docs/emulator#env
NOTES
This command is currently in BETA and may change without notice. This variant is also available:
- $ gcloud alpha emulators pubsub env-init