@pcon/sf-cli-pubsub
v1.2.1
Published
A toolchain to help with pubsub related tasks.
Maintainers
Readme
@pcon/pubsub
Setup
Install Latest
sf plugins install @pcon/sf-cli-pubsubYou will be prompted to confirm that you want to install an unsigned plugin. Choose "yes"
This plugin is not digitally signed and its authenticity cannot be verified. Continue installation y/n?: yTo allowlist this plugin, add an entry for it in $HOME/.config/sfdx/unsignedPluginAllowList.json.
Install Older Version
sf plugins install @pcon/[email protected]Issues
Please report any issues at https://github.com/pcon/sf-cli-pubsub/issues
Commands
sf pubsub subscribe
Subscribes to one or more topics.
USAGE
$ sf pubsub subscribe -o <value> --topic <value>... [--json] [--flags-dir <value>] [-c <value>] [--api-version
<value>]
FLAGS
-c, --count=<value> [default: 100] The number of messages to watch for.
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
configuration variable is already set.
--api-version=<value> Override the api version used for api requests made by this command
--topic=<value>... (required) The topic to subscribe to.
GLOBAL FLAGS
--flags-dir=<value> Import flag values from a directory.
--json Format output as json.
DESCRIPTION
Subscribes to one or more topics.
Connects to a pub / sub endpoint and logs the message to the console.
EXAMPLES
$ sf pubsub subscribe --target-org myTargetOrg --topic "/data/CaseChangeEvent" --topic "/event/My_Event**e" --topic "/data/My_Object**ChangeEvent"See code: src/commands/pubsub/subscribe.ts
