Skip to content

Send

Send message

Synopsis

Send messages to one or more Teams channels using templates, raw strings, or text files. See Message templates for template syntax and examples.

Usage

teams-cli channels messages send [flags]

Options

      --channels strings      Channels list
      --data string           Template data
      --dry-run               Preview only
  -h, --help                  help for send
      --ignore-errors         Continue on error
      --message string        Message content
      --message-file string   Message file
      --team string           Team name/ID
      --template string       Template file

Examples

Send templated messages

teams-cli channels messages send --template msg.txt --data recipients.yaml --team MyTeam

Send raw message to specific channels

teams-cli channels messages send --message "Hello team!" --channels General,Announcements --team MyTeam

Send message from file

teams-cli channels messages send --message-file msg.txt --channels General --team MyTeam

Dry run to preview

teams-cli channels messages send --template msg.txt --data recipients.yaml --team MyTeam --dry-run

TUI Preview

Channels messages send TUI

Channels messages send TUI (alternate)

Channels messages send TUI (alternate 2)