From 356a19e4bf244c3896126034c517e082044e7049 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Mon, 2 Mar 2026 11:21:35 +0000 Subject: [PATCH 1/2] docs: add missing CLI commands to reference Appends documentation for `meshguard connect`, `org-keygen`, `org-sign`, `org-vouch`, and `upgrade` to `docs/reference/cli.md`. These commands are implemented in `src/main.zig` but were missing from the reference guide. Also documented the drift learning in `.jules/scribe.md` as requested by the persona guidelines. Co-authored-by: igorls <4753812+igorls@users.noreply.github.com> --- docs/reference/cli.md | 76 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) diff --git a/docs/reference/cli.md b/docs/reference/cli.md index 750324c..baa82af 100644 --- a/docs/reference/cli.md +++ b/docs/reference/cli.md @@ -95,6 +95,82 @@ meshguard up [options] --- +## `meshguard connect` + +Direct peer connection via token exchange (no seed node needed). Performs a coordinated UDP hole punch. + +```bash +meshguard connect --generate [--in ] +meshguard connect --join +``` + +| Flag | Description | +| ---- | ----------- | +| `--generate` | Run as initiator. Generates a token to share with the peer. | +| `--in ` | Wait time before coordinated punch (default: 1). | +| `--join` | Run as joiner. Accepts an `mg://` token. | + +--- + +## `meshguard org-keygen` + +Generate a new Ed25519 organization keypair. + +```bash +meshguard org-keygen +``` + +**Output files** (in `$MESHGUARD_CONFIG_DIR`, default `~/.config/meshguard/org/`): + +- `org.key` — secret key +- `org.pub` — public key + +Generates an org keypair and derives the deterministic mesh domain (e.g., `a1b2c3.mesh`). + +--- + +## `meshguard org-sign` + +Sign a node's public key with the org private key, producing a `NodeCertificate`. + +```bash +meshguard org-sign --name