Matrix Command Line Interface
This is a revised version of the mtxcli Matrix chat program. This version, 0.5.0 (and beyond), strives to be as simple as possible in order to prepare for running on the Xous operating system on the Betrusted (Precursor) hardware device.
The previous work used the tokio library for asynchronous
communication, but became very complex (NOTE: that code
is still available in the mtxcli-tokio
branch).
This version will display any recent messages after you type a message to a given room. In this way the code flow is much easier to develop and debug for the Betrusted environment.
Before using this program you should:
- Setup a new user (if needed) using the Matrix protocol
- Create a new room (if needed)
- Join the room
When you start using mtxcli you will need to set your user identifer, your password and the room you would like to join.
You can do this with commands that start with slash /
(see the example below).
NOTE: Type /help
for a list of available commands.
Perhaps the easist way to explain using mtxcli is by example: (here I just typed Hello! to send a message to the room)
tmarble@espoir 996 :) cargo run
Finished dev [unoptimized + debuginfo] target(s) in 0.02s
Running `target/debug/mtxcli`
/set user @info9net:matrix.org
/set password my-secret-password
/set room #toms-brewpub
Hello!
mtxcli> logging in...
mtxcli> logged in
tmarble> This is just a test room...
tmarble> to experiment with matrix chat
tmarble> Please join us!
info9net> Hello!
This is a test
info9net> Hello!
tmarble> Welcome info9net !
info9net> This is a test
Thank you!
info9net> Thank you!
/quit
tmarble@espoir 997 :)
View the terminal session in Asciinema!
NOTE: You will need to set your password
Please see CONTRIBUTING for details on how to make a contribution.
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide its terms.
Copyright © 2020-2022
Licensed under the GPL-3.0 LICENSE
This project is supported in part by a grant from the NGI0 PET Fund, a fund established by NLnet with financial support from the European Commission's Next Generation Internet program.