- Notifications
You must be signed in to change notification settings - Fork0
simple but convenient CLI-based Jami client app for setting up accounts and swarms as well as sending
License
8go/jami-commander
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Jami (https://jami.net) is a privacy-preserving peer-to-peer communication application available on many platforms.Jami
is in concept similar toKeet
(https://keet.io), both are peer-to-peer and use servers as little as possible. As a chat app it is similar toMatrix
(https://http://matrix.org) as both can be self-hosted.
jami-commander
(jc
for short) is a simple but convenient CLI-based Jami client app for setting up accounts and swarms as well as sending.
jami-commander
helps to set up a Jami account, configure the account and send messages and files to Jami peers. It provides the minimal set of commands to useJami
from the CLI.
The objective ofjami-commander
is to:
- be able to use
Jami
from the terminal, the CLI, via SSH, and on head-less servers without monitor. - to use minimal resources. No Jami front-end (GUI) needs to be installed.
- to be able to perform minimal operations to run a bot, e.g. to publish daily weather information
- be simple. It is written in Python.
Functionality is minimal. You are invited to help to improvejami-commander
. Pull requests are welcome.
jami-commander
is only a client. It requires the Jamijamid
daemon to run to performs the work.- first install Jami daemon
jamid
as follows:- e.g. on Fedora 40 (seehttps://jami.net/download-jami-linux/ for details)
sudo dnf-3 config-manager --add-repo https://dl.jami.net/stable/fedora_40/jami-stable.repo # add the Jami repo
sudo dnf install jami-daemon # install only the jamid daemon
- e.g. on Ubuntu 24.04 (seehttps://jami.net/download-jami-linux/ for details)
sudo apt install gnupg dirmngr ca-certificates curl --no-install-recommends
curl -s https://dl.jami.net/public-key.gpg | sudo tee /usr/share/keyrings/jami-archive-keyring.gpg > /dev/null
sudo sh -c "echo 'deb [signed-by=/usr/share/keyrings/jami-archive-keyring.gpg] https://dl.jami.net/stable/ubuntu_24.04/ jami main' > /etc/apt/sources.list.d/jami.list"
sudo apt-get update && sudo apt-get install jami-daemon # install only the jamid daemon
- This installs around 204MB on Ubuntu
- second install dependencies
- e.g. Ubuntu 24.04
sudo apt install libdbus-1-dev libglib2.0-dev libcairo2-dev libgirepository1.0-dev
- third install
jami-commander
pip install jami-commander
- see alsohttps://pypi.org/pypi/jami-commander
- run the
jamid
daemon:- e.g. on Fedora 40, similar on Ubuntu 24.04, etc.
/usr/libexec/jamid -p & # start the jamid daemon
- now you can start and run the
jami-commander
- try
jami-commander -h
first to see what is available
- try
- alternatively, if you do not want to install via
pip
and just want to download the files from this repo,then you can run the program, bycd
-ing into the root project directoryand then running a command likepython -m jami_commander.jami_commander --help
.
jami-commander supports these arguments:--usage Print usage.-h, --help Print help.--manual Print manual.--readme Print README.md file.-d, --debug Print debug information.--log-level DEBUG|INFO|WARNING|ERROR|CRITICAL [DEBUG|INFO|WARNING|ERROR|CRITICAL ...] Set the log level(s).--verbose Set the verbosity level.--get-enabled-accounts List all enabled accounts by ids.--add-account ALIAS HOSTNAME USERNAME PASSWORD Add a new Jami account.--remove-account ACCOUNTID [ACCOUNTID ...] Remove a Jami account.--get-conversations List all swarm conversations by ids.--add-conversation Add a conversation to an account.--remove-conversation Remove one or multiple conversations from an account.--get-conversation-members List all members of one or multiple swarm conversations by ids.--add-conversation-member USERID [USERID ...] Add member(s) to one or multiple swarm conversations.--remove-conversation-member USERID [USERID ...] Remove member(s) from one or multiple swarm conversations.-a ACCOUNTID, --account ACCOUNTID Connect to and use the specified account.-c CONVERSATIONID [CONVERSATIONID ...], --conversations CONVERSATIONID [CONVERSATIONID ...] Specify one or multiple swarm conversations.-m TEXT [TEXT ...], --message TEXT [TEXT ...] Send one or multiple text messages.-f FILE [FILE ...], --file FILE [FILE ...] Send one or multiple files (e.g. PDF, DOC, MP4).-w, --html Send message as format "HTML".-z, --markdown Send message as format "MARKDOWN".-k, --code Send message as format "CODE".-j, --emojize Send message after emojizing.--split SEPARATOR Split message text into multiple Jami messages.--separator SEPARATOR Set a custom separator used for certain print outs.-o TEXT|JSON, --output TEXT|JSON Select an output format.-v [PRINT|CHECK], -V [PRINT|CHECK], --version [PRINT|CHECK] Print version information or check for updates.
About
simple but convenient CLI-based Jami client app for setting up accounts and swarms as well as sending
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.