nsc

nsc tool pub

Publish to a subject from a NATS account

Synopsis

Publish to a subject from a NATS account

nsc tool pub [flags]

Examples

nsc tool pub <subject> <opt_payload>

Options

  -a, --account string   account name
  -h, --help             help for pub
  -u, --user string      user name

Options inherited from parent commands

      --config-dir string     nsc config directory
      --data-dir string       nsc data store directory
  -i, --interactive           ask questions for various settings
      --keystore-dir string   nsc keystore directory
      --nats string           nats url, defaults to the operator's service URLs
  -K, --private-key string    Key used to sign. Can be specified as role (where applicable),
                              public key (private portion is retrieved)
                              or file path to a private key or private key 

SEE ALSO

Auto generated by spf13/cobra on 25-Feb-2022