1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-08 18:45:13 +00:00
gcloud-help/gcloud/alpha/emulators/pubsub/start
2022-03-01 04:29:52 +00:00

51 lines
1.8 KiB
Text

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.
On successful start up, you should expect to see:
...
[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
EXAMPLES
To start a local pubsub emulator, run:
$ gcloud alpha emulators pubsub start --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/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 [::1]:8085.
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 alpha and might change without notice. If this
command fails with API permission errors despite specifying the correct
project, you might be trying to access an API with an invitation-only early
access allowlist. This variant is also available:
$ gcloud beta emulators pubsub start