Force Pubsub Subscribe

force pubsub subscribe

Subscribe to a pub/sub channel

Synopsis

Subscribe to a pub/sub channel to stream Change Data Capture or custom Platform Events.

Event payloads are automatically processed to extract values from Avro union types, converting nested structures like {“string”: “value”} to just “value”.

force pubsub subscribe [channel] [flags]

Examples


	force pubsub subscribe /data/ChangeEvents | jq .
	force pubsub subscribe /data/AccountChangeEvent
	force pubsub subscribe /data/My_Object__ChangeEvent

	force pubsub subscribe /event/My_Event__e
	force pubsub subscribe /event/My_Channel__chn
	

Options

  -c, --changes           show only changed fields (for Change Data Capture events)
  -e, --earliest          start at earliest events (default is latest)
  -h, --help              help for subscribe
  -q, --quiet             disable status messages to stderr
  -r, --replayid string   replay id to start after

Options inherited from parent commands

  -a, --account username    account username to use
  -V, --apiversion string   API version to use
      --config string       config directory to use (default: .force)

SEE ALSO

© 2012–2025 October Swimmer.