llama com slack

Send messages or upload files to Slack using LLAMA’s built-in methods.

usage: llama com slack [-h] [-l LOGFILE]
                       [-v {debug,info,warning,error,critical,none}]
                       [-o {LLAMA,IceCube}] [-m MESSAGE]
                       [-u USERS [USERS ...]] [-f FILE] [--print-users]
                       [channel [channel ...]]

Positional Arguments


Which Slack channel to upload to.

Named Arguments

-o, --organization

Possible choices: LLAMA, IceCube

Which oranization to send a message to. (default: LLAMA)

Default: “LLAMA”

-m, --message

Text content to send. Can be formatted using Slack’s markdown-esque syntax. If not specified, read message from a pipe or send with no message if no pipe is being used.

-u, --users

Names of users to tag. You can use real names, display names, or Slack user IDs. They will be alerted to your message if they have access to the channel you are posting to.

Default: []

-f, --file

Path to a file to upload as part of the message.


Print a list of taggable users for the specified organization and then exit.

Default: False


Print a list of channels that can be posted to for the specified organization and then exit.

Default: False

logging settings

-l, --logfile

File where logs should be written. By default, all logging produced by llama run goes to both an archival logfile shared by all instances of the process as well as STDERR. The archival logfile can be overridden with this argument. If you specify /dev/null or a path that resolves to the same, logfile output will be suppressed automatically. Logs written to the logfile are always at maximum verbosity, i.e. DEBUG. (default: /dev/null)

Default: “/dev/null”

-v, --verbosity

Possible choices: debug, info, warning, error, critical, none

Set the verbosity level at which to log to STDOUT; the --logfile will ALWAYS receive maximum verbosity logs (unless it is completely supressed by writing to /dev/null). Available choices correspond to logging severity levels from the logging library, with the addition of none if you want to completely suppress logging to standard out. (default: info)

Default: “info”