0.1.1 • Published 5 years ago

slackctl v0.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

Slack CLI (slackctl)

Basic command line helper for sending Slack Messages that utilized @slack/web-api

Install

npm install slackctl -g

Usage

    slackctl --help
    slackctl <command>

    Commands:
    slackctl message [auth] [channel] [text]  Send or post message to Slack
    [linknames]

    Options:
    --version  Show version number                                       [boolean]
    --help     Show help                                                 [boolean]

Or display specific command help

    slackctl message --help
slackctl message [auth] [channel] [text] [linknames]

Send or post message to Slack

Options:
  --version        Show version number                                 [boolean]
  --help           Show help                                           [boolean]
  --channel, -c    Channel to send the message                        [required]
  --linknames, -l  Make mentioned available            [boolean] [default: true]
  --text, -t       Message to send                                    [required]
  --auth, -a       Slack authorization token                          [required]

Example

slackctl --auth xoxb-00000000000-000000000000-00000 --channel general --text "Hello Slack"

Sending multiple line of text message

slackctl --auth xoxb-00000000000-000000000000-00000 --channel general --text $'Hello\nSlack'