gcloud_alpha_emulators_pubsub_start (1)
NAME
- gcloud alpha emulators pubsub start - start a local pubsub emulator
SYNOPSIS
-
gcloud alpha emulators pubsub start [--data-dir=DATA_DIR] [--host-port=HOST_PORT] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(ALPHA) 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 alpha emulators pubsub start --data-dir DATA-DIR
NOTES
This command is currently in ALPHA and may change without notice. If this command fails with API permission errors despite specifying the right project, you will have to apply for early access and have your projects registered on the API whitelist to use it. To do so, contact Support at cloud.google.com/support This variant is also available:
- $ gcloud beta emulators pubsub start