diff --git a/docs/business.html b/docs/business.html index 9a4cb26c78..201b037ff7 100644 --- a/docs/business.html +++ b/docs/business.html @@ -781,7 +781,63 @@ window.addEventListener('scroll',changeHeaderBg);
To install SimpleX Chat CLI in the cloud, follow this:
+Create dedicated user for CLI:
+useradd -m -s /bin/bash simplex-cli
+
+Create new tmux session
+tmux new -s simplex-cli
+
+Login to dedicated user:
+su - simplex-cli
+
+Install CLI:
+curl -o- https://raw.githubusercontent.com/simplex-chat/simplex-chat/stable/install.sh | bash
+
+Run the CLI:
+simplex-chat
+
+To deattach from running CLI simply press Ctrl+B and then D.
To reattach back to CLI, run: tmux attach -t simplex-cli.
To use CLI from Desktop app, follow this:
+Enable Developer tools in desktop app.
+In the Desktop app, click - Linked mobile -> + Link a mobile, choose local address 127.0.0.1, enter some fixed port (can be any free port, e.g. 12345), and copy the link.
In the same machine where Desktop app is running, execute:
+Change PORT to port, chosen in the previous step in Desktop app and SERVER_IP to your server.
ssh -R PORT:127.0.0.1:PORT -N root@SERVER_IP
+
+In the CLI on the server:
+Change LINK to link, copied in the first step and enter the following:
/crc LINK
+
+CLI will print verification code:
+Compare session code with controller and use:
+/verify remote ctrl ...
+
+Simply copy the whole line starting with /verify ... from the terminal and paste it. Now you can control the CLI from your Desktop app.
Please let us know if you use SimpleX Chat to communicate with your customers and want to be included in this list.