| Crates.io | rslack |
| lib.rs | rslack |
| version | 0.5.5 |
| created_at | 2021-11-23 03:18:30.225586+00 |
| updated_at | 2026-01-25 07:21:37.523515+00 |
| description | cli for posting slack message |
| homepage | |
| repository | https://github.com/kohbis/rslack |
| max_upload_size | |
| id | 486010 |
| size | 185,900 |

brew install kohbis/rslack/rslack
git clone https://github.com/kohbis/rslack.git
cd rslack
cargo build --release
# The binary will be available at ./target/release/rslack
channels:read - To list available channelschannels:history - To read messages from channelschat:write - To post messages to channelsYou can provide your Slack token in one of two ways:
export RSLACK_TOKEN=xoxp-your-token-here
Create a .rslack file in your home directory:
echo "RSLACK_TOKEN=xoxp-your-token-here" > ${HOME}/.rslack
Note: If both methods are used, the configuration file takes precedence.
Simply run the command to start the interactive interface:
rslack
This will:
h, j, k, lEnterq or Ctrl+cCtrl+pCtrl+cYou can bypass the interactive interface by specifying options:
# Post to a specific channel
rslack -c general
# Post a specific message to a specific channel
rslack -c general -m "Hello, world!"
# Read messages from a channel (default: 10 messages)
rslack -r -c general
# Read a specific number of messages
rslack -r -c general -l 20
Options:
-c, --channel <CHANNEL>: Specify the channel-m, --message <MESSAGE>: Specify the message to post-r, --read: Read messages from channel instead of posting-l, --limit <LIMIT>: Number of messages to fetch (default: 10)# Build and run in release mode
cargo run --release
# Build only
cargo build --release
cargo test
This project is licensed under the MIT License - see the LICENSE file for details.