docs(cli): expand --help with all launch flags, groups hierarchy, env vars
Some checks failed
CI / Lint (push) Has been cancelled
CI / Typecheck (push) Has been cancelled
CI / Broker tests (Postgres) (push) Has been cancelled
CI / Docker build (linux/amd64) (push) Has been cancelled

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Alejandro Gutiérrez
2026-04-07 12:16:04 +01:00
parent d451fc296e
commit 03661e1b68

View File

@@ -27,29 +27,52 @@ Usage:
claudemesh <command> [args] claudemesh <command> [args]
Commands: Commands:
install Register MCP + Stop/UserPromptSubmit status hooks install Register MCP server + status hooks with Claude Code
(add --no-hooks for bare MCP registration) --no-hooks Register MCP only, skip hooks
uninstall Remove MCP server + hooks uninstall Remove MCP server and hooks
launch [opts] Launch Claude Code with real-time push messages launch [opts] Launch Claude Code connected to a mesh
--name <name> Display name for this session join <url> Join a mesh via invite URL
--mesh <slug> Select mesh (picker if >1, omitted) list Show joined meshes and identities
--join <url> Join a mesh before launching leave <slug> Leave a mesh
--quiet Skip the info banner status Check broker reachability for each joined mesh
-- <args> Pass remaining args to claude doctor Diagnose install, config, keypairs, and PATH
join <url> Join a mesh via https://claudemesh.com/join/... URL mcp Start MCP server (stdio — Claude Code only)
list Show all joined meshes
leave <slug> Leave a joined mesh
status Health report: broker reachability per joined mesh
doctor Diagnostic checks (install, config, keypairs, PATH)
seed-test-mesh Dev-only: inject a mesh into config (skips invite flow)
mcp Start MCP server (stdio) — invoked by Claude Code
--help, -h Show this help --help, -h Show this help
--version, -v Show the CLI version --version, -v Show version
launch options:
--name <name> Display name for this session
--role <role> Role tag (dev, lead, analyst — free-form)
--groups <spec> Groups to join: "g1:role,g2" (colon = role)
--mesh <slug> Select mesh by slug (interactive if omitted)
--join <url> Join a mesh before launching
--message-mode <mode> push (default) | inbox | off
push — peer messages arrive in real time
inbox — held until you call check_messages
off — no messages; use tools only
--system-prompt <text> Set Claude's system prompt for this session
-y, --yes Skip permission confirmation
--quiet Skip banner and all interactive prompts
-- <args> Pass remaining args directly to claude
Full non-interactive launch:
claudemesh launch \\
--name Worker --mesh myteam --role analyst \\
--groups "myteam/docs:member" \\
--message-mode push \\
--system-prompt "You are a documentation analyst..." \\
-y --quiet
Groups support hierarchy (slash-separated):
--groups "eng/frontend:lead,eng/reviewers"
@eng delivers to members of @eng, @eng/frontend, @eng/reviewers, etc.
Environment: Environment:
CLAUDEMESH_BROKER_URL Override broker URL (default: wss://ic.claudemesh.com/ws) CLAUDEMESH_BROKER_URL Override broker URL (default: wss://ic.claudemesh.com/ws)
CLAUDEMESH_CONFIG_DIR Override config directory (default: ~/.claudemesh/) CLAUDEMESH_CONFIG_DIR Override config directory (default: ~/.claudemesh/)
CLAUDEMESH_DEBUG=1 Verbose logging CLAUDEMESH_DISPLAY_NAME Override display name (set automatically by launch)
CLAUDEMESH_ROLE Override role tag (set automatically by launch)
CLAUDEMESH_DEBUG=1 Verbose logging
`; `;
const cmd = process.argv[2]; const cmd = process.argv[2];