nats subscribe --help

From wikieduonline
Jump to navigation Jump to search

nats subscribe --help
usage: nats subscribe [<flags>] [<subject>]

Generic subscription client

Args:
  [<subject>]  Subject to subscribe to

Flags:
      --queue=QUEUE              Subscribe to a
                                 named queue group
      --durable=DURABLE          Use a durable
                                 consumer (requires
                                 JetStream)
  -r, --raw                      Show the raw data
                                 received
      --[no-]ack                 Acknowledge
                                 JetStream message
                                 that have the
                                 correct metadata
      --match-replies            Match replies to
                                 requests
  -i, --inbox                    Subscribes to a
                                 generate inbox
      --count=COUNT              Quit after
                                 receiving this
                                 many messages
      --dump=DIRECTORY           Dump received
                                 messages to files,
                                 1 file per
                                 message.
                                 Specify - for null
                                 terminated STDOUT
                                 for use with xargs
                                 -0
      --headers-only             Do not render any
                                 data, shows only
                                 headers
      --start-sequence=SEQUENCE  Starts at a
                                 specific Stream
                                 sequence (requires
                                 JetStream)
      --all                      Delivers all
                                 messages found
                                 in the Stream
                                 (requires
                                 JetStream
      --new                      Delivers only
                                 future messages
                                 (requires
                                 JetStream)
      --last                     Delivers the
                                 most recent
                                 and all future
                                 messages (requires
                                 JetStream)
      --since=DURATION           Delivers messages
                                 received since
                                 a duration like
                                 1d3h5m2s(requires
                                 JetStream)
      --last-per-subject         Deliver the
                                 most recent
                                 messages for each
                                 subject in the
                                 Stream (requires
                                 JetStream)
      --stream=STREAM            Subscribe to
                                 a specific
                                 stream (required
                                 JetStream)
  -I, --ignore-subject=SUBJECT ...
                                 Subjects for which
                                 corresponding
                                 messages will
                                 be ignored and
                                 therefore not
                                 shown in the
                                 output


nats [ pub | subscribe | server | reply | account | events | errors | --help ]

Advertising: