From 15b907ebbd4885a7da084fa0530031347643f43d Mon Sep 17 00:00:00 2001
From: tuxmain <tuxmain@zettascript.org>
Date: Thu, 16 Feb 2023 14:29:19 +0100
Subject: [PATCH] doc: smith commands

---
 README.md | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/README.md b/README.md
index a23d0ff..d627d14 100644
--- a/README.md
+++ b/README.md
@@ -19,3 +19,22 @@ Send 10 ÄžD from Alice to Ferdie:
 List certifications and session keys that will expire within one month:
 
 	cargo run -- --url wss://gdev.librelois.fr:443/ws expire --blocks 432000
+
+### Smith
+
+You want to rotate keys and go online to start forging blocks.
+
+Smith nodes must not expose a public RPC API. Then you can either use SSH directly, or make an SSH bridge by adding this to your local `.bashrc`:
+
+```bash
+alias duniter-rpc='ssh -L 9944:localhost:9944 duniter@gdev.example.tld'
+```
+
+Now the command `duniter-rpc` will open an SSH session and a bridge to your RPC API.
+
+When your node is ready to forge blocks, rotate keys and go online:
+
+```bash
+gcli update-keys
+gcli --secret "my secret phrase" go-online
+```
-- 
GitLab