| Crates.io | rslack |
| lib.rs | rslack |
| version | 0.5.2 |
| created_at | 2021-11-23 03:18:30.225586+00 |
| updated_at | 2025-06-14 05:07:58.488009+00 |
| description | cli for posting slack message |
| homepage | |
| repository | https://github.com/kohbis/rslack |
| max_upload_size | |
| id | 486010 |
| size | 156,360 |

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 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!"
Options:
-c, --channel <CHANNEL>: Specify the channel to post to-m, --message <MESSAGE>: Specify the message to post# 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.