net-cli 0.20.1

Unified `net-mesh` command-line tool for the Net mesh
net-cli-0.20.1 is not a library.

net — unified command-line interface for the Net mesh SDK.

Phase 1 of NET_CLI_PLAN.md: scaffolding + read-only surface. Subsequent phases bolt admin writes / nRPC / ICE / daemon-run / blob absorption on top of the same routing skeleton.

Entry point shape

tokio::main builds the multi-thread runtime once, parses the global Cli struct via clap, builds a CliContext (config + identity + tracing — see context.rs), then dispatches to the matched subcommand. Every subcommand returns an ExitCode — typed errors flow through error::ExitCodeKind which maps onto the documented exit table at NET_CLI_PLAN.md:§"Exit codes (locked)".

Module map

  • [commands] — one module per top-level subcommand.
  • [config] — profile-file parsing + env-var fallback.
  • [output] — --output (json|yaml|ndjson|table|text) dispatch.
  • [error] — typed exit-code surface; main returns its code.
  • [prelude] — re-exports the SDK types every command imports.