Crates.io | cups-cli |
lib.rs | cups-cli |
version | 0.1.1 |
source | src |
created_at | 2020-01-29 06:00:32.142111 |
updated_at | 2020-02-11 22:26:24.842705 |
description | A minimal client for Cups Instant Messanger |
homepage | https://github.com/Start9Labs/cups-cli |
repository | https://github.com/Start9Labs/cups-cli |
max_upload_size | |
id | 202937 |
size | 84,012 |
Cups CLI is a terminal based client for interacting with an installed instance of the Cups Messenger sovereign app on a Start9 Server.
On a Mac or Linux based machine you can find the terminal by searching for "terminal" in the global search bar.
In what follows a '$' indicates that the following text is to be pasted into the terminal, followed by return to run the command. You should not copy the '$' sign. Please direct issues with installation to support@start9labs.com.
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
$ source ~/.cargo/env
$ cargo install cups-cli
The terminal program cups-cli is now installed onto your system, and can be used and invoked by issuing requests of the following form.
$ cups-cli <Command> <SubCommand> < ... arguments ... >
Here and in what follows the hard angle brackets < ... >
indicate that you will type one of a handful of options in those locations within the command.
In order to run cups-cli using your Start9 Server, you'll need to set up the cups-cli program to point to your server. This is done by configuring a CUPS_HOST and a CUPS_PASSWORD.
Open your Start9 Companion App, click on the server running Cups Messenger, click on the "..." hamburger menu in the top right corner, and then "Server Specs". The first line "LAN IP" will be your CUPS_HOST. To get the password, navigate to your installed Cups Messenger app, click the "..." kebab menu and then "App Config".
To communicate these value to your cups-cli terminal program, run the following in your terminal with no extra spaces or quotes:
$ export CUPS_HOST=<your Cups onion url>
$ export CUPS_PASSWORD=<your Cups Messenger password>
$ cups-cli contacts ...
: The contacts command allows you to see and add new contacts for you to message.
$ cups-cli contacts show
: To render your contacts to the screen.$ cups-cli contacts add <Friend's Tor address> <friend's name>
: To add a new contact of someone running Cups Messenger on their S0 Server, you will need the Tor address listed on their Cups Messenger page.$ cups-cli messages ...
: The messages command allows you to send and view messsages with your contacts.
$ cups-cli messages show < Friends's Tor address >
: To render your messages with your friend.$ cups-cli messages send < message > < Friends's Tor address >
: To send a message to your friend!export CUPS_HOST<your LAN IP>
export CUPS_PASSWORD=<your Cups Messager password>
$ cups-cli messages show <Friend's Tor address> --limit n
WORK IN PROGRESS Will start up when no subcommand is passed, however is not in a fully functional state