An open API service indexing awesome lists of open source software.

https://github.com/kalm/kalm-cli

Kalm, from the comfort of the CLI
https://github.com/kalm/kalm-cli

cli ipc kalm socket tcp udp websocket ws

Last synced: 2 months ago
JSON representation

Kalm, from the comfort of the CLI

Awesome Lists containing this project

README

        



Kalm



kalm-cli



Enjoy kalm from the comfort of the CLI





## Getting started

Kalm-cli allows you to quickly build an echo server **or** send socket messages to kalm servers;

- With no programming necessary
- Without having to setup a node environement (self-contained executable)

**Getting the executable**

```
curl https://raw.githubusercontent.com/kalm/kalm-cli/v1.0.0/bin/kalm-cli --output ./kalm-cli
```

**Creating an Echo server that repeats and broadcasts back all messages sent to it**

```
kalm-cli echo ws my_channel -p 8080

```

This will create an echo server on port 8080 that broadcasts to all connected kalm clients subscribed to channel `my_channel`.

**Writing to a kalm server**

```
kalm-cli write ws my_channel '{"some": "json_payload"}' -p 8080

```

**Tailing messages from a kalm server**

```
kalm-cli tail ws my_channel -p 8080

```

**More options**

Check out the manual via `kalm-cli --help`

## Contribute

If you think of something that you want, [open an issue](//github.com/kalm/kalm-cli/issues/new) or file a pull request, we'll be more than happy to take a look!

## License

[Apache 2.0](LICENSE) (c) 2021 Frederic Charette