gcloud_beta_emulators_pubsub_start (1)
NAME
- gcloud beta emulators pubsub start - start a local pubsub emulator
SYNOPSIS
-
gcloud beta emulators pubsub start [--data-dir=DATA_DIR] [--host-port=HOST_PORT] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(BETA) This command starts a local pubsub emulator.
- [pubsub] This is the Google Pub/Sub fake. [pubsub] Implementation may be incomplete or differ from the real system. [pubsub] INFO: Server started, listening on 8538
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)'
- --host-port=HOST_PORT
-
The host:port to which the emulator should be bound. The default value is
localhost:8085.
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 start a local pubsub emulator, run:
- $ gcloud beta emulators pubsub start --data-dir DATA-DIR
NOTES
This command is currently in BETA and may change without notice. This variant is also available:
- $ gcloud alpha emulators pubsub start