https://github.com/dvob/rocket-chat-client
https://github.com/dvob/rocket-chat-client
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dvob/rocket-chat-client
- Owner: dvob
- License: apache-2.0
- Created: 2020-09-07T06:00:09.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-02-03T15:15:36.000Z (over 3 years ago)
- Last Synced: 2025-02-16T10:45:30.892Z (over 1 year ago)
- Language: Go
- Size: 44.9 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rocket-chat-client
[](https://godoc.org/github.com/dvob/rocket-chat-client/pkg/rocket-chat-client)
[](https://goreportcard.com/report/github.com/dvob/rocket-chat-client)
## Usage
To use the Rocket.Chat client you have to configure the server URL, a user ID and a token.
The user ID and a token can be created under https:///account/tokens
```
export RC_URL=https://your-rocket-chat-server.com
export RC_USER_ID=...
export RC_TOKEN=...
```
Then you can:
```shell
# list users
rocket-chat-client list user
# list channels
rocket-chat-client list channel
# send message
rocket-chat-client send "@username" "Hello World!"
rocket-chat-client send "#channel-name" "Hello World!"
```
With `rocket-chat-client completion` you can generate shell completions for Bash, ZSH, Fish and Powershell.
Checkout `rocket-chat-client completion --help` for more information.