maton slack message send
Send a message to a channel or DM
maton slack message send [flags]
Options
-
--blocks <string> - Block Kit blocks as a JSON array string (one of --text/--text-from-file/--blocks)
-c,--channel <string>- Channel ID (e.g. C0123456789) (required)
-
--connection <string> - Connection ID to route through (Maton-Connection header)
-
--dry-run - Print the request that would be sent without executing it
-
--format <string> - Output format: 'json' (default) or 'text' on supported commands
-
--icon-emoji <string> - Override the bot icon with an emoji, e.g. :ghost:
-q,--jq <expression>- Filter JSON output using a jq expression
-
--paginate - Follow next_cursor and concatenate all pages (list commands only)
-
--reply-broadcast - When sent inside a thread, also broadcast to channel
-
--template <string> - Format JSON output using a Go template; see "maton help formatting"
-t,--text <string>- Message text — supports mrkdwn (one of --text/--text-from-file/--blocks)
-F,--text-from-file <string>- Read message text from a file path (or '-' for stdin) (one of --text/--text-from-file/--blocks)
-
--unfurl-links - Toggle URL link unfurling (true|false)
-
--unfurl-media - Toggle media unfurling (true|false)
-
--username <string> - Override the bot username (legacy)
Options inherited from parent commands
-p,--profile <string>- Profile to use for this invocation (overrides the active profile; also reads MATON_PROFILE)
Examples
$ maton slack message send --channel C0123456789 --text 'Deploy complete'
$ maton slack message send --channel C0123456789 --text-from-file ./post.md
$ maton slack message send --channel C012 --text 'Heads up' --blocks '[{"type":"section","text":{"type":"mrkdwn","text":"*Heads up*"}}]'