aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/guides/federation/getting-started.md10
-rw-r--r--docs/lifecycle.md4
2 files changed, 8 insertions, 6 deletions
diff --git a/docs/guides/federation/getting-started.md b/docs/guides/federation/getting-started.md
index fb4c791..d148672 100644
--- a/docs/guides/federation/getting-started.md
+++ b/docs/guides/federation/getting-started.md
@@ -32,14 +32,14 @@ Here one key does everything a party signs.
## A node for each party
Each node needs its node key, a user of its API, and its node ID, which the first
-version names before the federation starts. A node makes its key with
-`--node-key-create` and logs its ID before anything else (`Node identity`): start it so
-once, with nothing of a swarm, and stop it.
+version names before the federation starts. `continuum node-id` makes the key and says
+the ID, without starting the node:
```sh
+continuum node-id --create node.key
+# a new node key in node.key: a new node
+# continuum:5be1…
printf '%s' 'secret' | argon2 "$(openssl rand -hex 16)" -id -e | sed 's/^/tv:/' > htpasswd
-continuum --node-key-file node.key --node-key-create --htpasswd htpasswd --mycelium-enable
-# INFO Created a new node key: this is a new node node_id=continuum:5be1…
```
## The first version
diff --git a/docs/lifecycle.md b/docs/lifecycle.md
index 47cf051..a221063 100644
--- a/docs/lifecycle.md
+++ b/docs/lifecycle.md
@@ -45,7 +45,9 @@ What happens before the node talks to anyone, in order:
2. **The node key** (`--node-key-file`) and **the swarm key** (`--swarm-key-file`) are
read, so a bad file fails at once. A missing key file is an error, unless
`--node-key-create` asks for a new node key (a new node), or `--swarm-key-create`
- for a new swarm key (on the swarm's first node; the others need a copy).
+ for a new swarm key (on the swarm's first node; the others need a copy). `continuum
+ node-id FILE` prints the node ID of the key `FILE` holds, without starting a node
+ (`--create` makes the key first, where there is none).
3. **The state file** (`--state-file`) is read: the swarm ID the node belongs to and
members to reach it through.
4. **A document to start on**, if any: the document file (`--document-file`) or a