madonctl stream

Listen to an event stream

Synopsis

Listen to an event stream

The stream command stays connected to the server and listen to a stream of events (user, local or federated). A list-based stream can be displayed by prefixing the list ID with a '!'. It can also get a hashtag-based stream if the keyword is prefixed with ':' or '#'.

madonctl stream [user|local|public|!LIST|:HASHTAG] [flags]

Examples

  madonctl stream           # User timeline stream
  madonctl stream local     # Local timeline stream
  madonctl stream public    # Public timeline stream
  madonctl stream '!42'     # List (ID 42)
  madonctl stream :mastodon # Hashtag
  madonctl stream #madonctl
  madonctl stream --notifications-only
  madonctl stream --notifications-only --notification-types mentions,follows

Several (up to 4) hashtags can be given.
Note: madonctl will use 1 websocket per hashtag stream.
  madonctl stream #madonctl,#mastodon,#golang
  madonctl stream :madonctl,mastodon,api

Options

      --command string              Execute external command
  -h, --help                        help for stream
      --notification-types string   Filter notifications (mentions, favourites, reblogs, follows)
      --notifications-only          Display only notifications (user stream)

Options inherited from parent commands

      --color string           Color mode (auto|on|off; for output=template)
      --config string          config file (default is $HOME/.config/madonctl/madonctl.yaml)
  -i, --instance string        Mastodon instance
  -L, --login string           Instance user login
  -o, --output string          Output format (plain|json|yaml|template|theme)
  -P, --password string        Instance user password
      --template string        Go template (for output=template)
      --template-file string   Go template file (for output=template)
      --theme string           Theme name (for output=theme)
  -t, --token string           User token
  -v, --verbose                Verbose mode

SEE ALSO

Auto generated by spf13/cobra on 21-Mar-2018