Skip to main content

net-mesh-cli

net-mesh — the unified command-line interface for the NET mesh.

The non-interactive counterpart to net-deck: a one-shot tool for operator scripts, CI pipelines, daemon authoring, and ad-hoc cluster inspection. Same SDK underneath, same signed admin chain, no TUI.

net-mesh

Install

# pip
pip install net-mesh-cli

# uv
uv tool install net-mesh-cli

The wheel bundles the Rust net-mesh binary directly (built with maturin's bindings = "bin" mode) — pip install / uv tool install puts it on your $PATH with no compilation step and no Python shim layer.

Wheels are published for linux (glibc + musl, x86_64 + aarch64), macOS (x86_64 + aarch64), and Windows (x86_64 + aarch64). A source distribution is also published for any platform pip can't find a wheel for — that path needs a Rust toolchain.

Run

net-mesh --help

Subcommand surface

Subcommand What it does
version SDK version + build metadata.
identity Generate / inspect / fingerprint operator identity files.
up / down Start one long-lived node for the profile (foreground); drain and stop it.
invite Create / inspect / list / revoke / approve / deny join links on up --enroll.
join / leave Join a mesh from a link and run as it; leave it (local, durable).
enrollment Enrollment ledger setup for up --enroll.
relay Run a blind UDP relay (serve), the fallback path for unreachable devices.
admin Offline previews or signed commits against a temporary supervisor.
ice Simulate/commit break-glass operations against a temporary supervisor.
snapshot One-shot substrate reads, both requiring --local: get prints the MeshOsSnapshot; status prints the typed StatusSummary.
audit Read/stream the temporary supervisor's audit ring.
log tail Substrate log stream (--follow, --daemon, --min-level).
failures tail Substrate failure stream — same shape as log tail.
cap Temporary snapshot reads; announce authors a signed artifact offline, not a broadcast.
peer ls reads the temporary snapshot; no NAT-management verbs.
daemon Per-daemon listing from the local snapshot.
netdb NetDB local KV adapter — Cortex-backed tasks + memories.
org Offline org root tools; org links (invite / approve / join), remove, leave, members.
node status of this profile's node; ownership provisioning (adopt).
subnet Offline authority issuance; subnet links (invite / join), remove, leave, members; temporary topology reads.
gateway Temporary-context reads; export validates its arguments, then refuses: not supported yet.
channel Offline issue-grant; standalone links (invite / join); serve, status, publish, leave on the running node; registry reads (visibility, ls).
aggregator Temporary inspect/list with --local; remote query/spawn/scale and list selected by flags or profile. Remote verbs and ls support --inspect-target.
transfer Receive/admin via mesh; send computes references or stages local content, not hosting or publication.
wrap Wrap a local stdio MCP server as owner-only mesh capabilities (--joined runs as an enrolled device).
mcp MCP bridge — expose mesh capabilities to a local MCP host (serve, --joined).
forwarding Caller-side credential/header forwarding policy + audit (deny-by-default).
typegen Generate typed language bindings from discovered tool descriptors.
completion Emit a shell-completion script (bash / zsh / fish / powershell).
man Emit the troff(1) man page on stdout.

Global flags

Applied to every subcommand; environment-variable fallbacks in brackets:

  • --config <path> [NET_MESH_CONFIG] — profile file (default $XDG_CONFIG_HOME/net-mesh/config.toml).
  • --profile <name> [NET_MESH_PROFILE] — named profile within the config file.
  • --insecure-config-permissions [NET_MESH_INSECURE_CONFIG_PERMISSIONS] — read the profile even when it is group/world-accessible or owned by another user.
  • --output (json|yaml|ndjson|table|text) — auto-detects table/text on TTY and json/ndjson off-TTY.
  • --quiet / -q — suppress stderr diagnostics.
  • --verbose / -v — -v info, -vv debug, -vvv trace. NET_MESH_LOG= env-filter overrides.
  • --no-color [NO_COLOR] — disable ANSI in table / text output.
  • --timeout <dur> — global per-call timeout (e.g. 500ms, 1h30m). Default 30s.

Config + identity

The profile file is optional — every flag has a sensible default. When present, it lives at $XDG_CONFIG_HOME/net-mesh/config.toml (or the platform equivalent) and looks like:

[default]
identity        = "~/.config/net-mesh/identity.toml"
endpoint        = "in-process"
default_timeout_ms = 30000

[profiles.prod]
identity   = "~/.config/net-mesh/ops-identity.toml"
node_addr  = "10.0.0.4:7700"
node_pubkey = "abcd…"      # 64 hex
psk_hex     = "1234…"      # 64 hex

Operator identity files are authored by net-mesh identity generate — ed25519 seed + public key + SHA-256 fingerprint, the same format the deck loads from the maintenance node. Every signed admin / ice command picks the identity up from the active profile (or --identity).

Exit codes

Typed via ExitCodeKind. Scripts can match on the discriminator:

  • 0 — success
  • 1 — generic error
  • 2 — invalid arguments / parse error
  • 3 — SDK error
  • 4 — ICE simulation blocked
  • 5 — operator-policy reject
  • 6 — connection failure
  • 7 — timeout
  • 8 — confirmation refused
  • 10 — daemon: factory id not registered
  • 11 — db: query JSON failed to parse
  • 12 — db: predicate DSL (--where / --filter) failed to parse
  • 13 — ice: a supplied operator signature failed verification
  • 14 — typegen diff --exit-code: a breaking schema change was detected

License

MIT OR Apache-2.0. See LICENSE-MIT and LICENSE-APACHE.

Metadata

Release files for net-mesh-cli 0.45.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for net-mesh-cli 0.45.0
File Size Uploaded Provenance Actions
net_mesh_cli-0.45.0.tar.gz 10.8 MB Without provenance Details for net_mesh_cli-0.45.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for net-mesh-cli 0.45.0
File Actions
net_mesh_cli-0.45.0-py3-none-win_arm64.whl Python 3 none Windows ARM64 Details for net_mesh_cli-0.45.0-py3-none-win_arm64.whl
net_mesh_cli-0.45.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for net_mesh_cli-0.45.0-py3-none-win_amd64.whl
net_mesh_cli-0.45.0-py3-none-musllinux_1_2_x86_64.whl Python 3 none Linux musl 1.2+ x86-64 Details for net_mesh_cli-0.45.0-py3-none-musllinux_1_2_x86_64.whl
net_mesh_cli-0.45.0-py3-none-musllinux_1_2_aarch64.whl Python 3 none Linux musl 1.2+ ARM64 Details for net_mesh_cli-0.45.0-py3-none-musllinux_1_2_aarch64.whl
net_mesh_cli-0.45.0-py3-none-manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64 Details for net_mesh_cli-0.45.0-py3-none-manylinux_2_28_x86_64.whl
net_mesh_cli-0.45.0-py3-none-manylinux_2_28_aarch64.whl Python 3 none Linux glibc 2.28+ ARM64 Details for net_mesh_cli-0.45.0-py3-none-manylinux_2_28_aarch64.whl
net_mesh_cli-0.45.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for net_mesh_cli-0.45.0-py3-none-macosx_11_0_arm64.whl
net_mesh_cli-0.45.0-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details for net_mesh_cli-0.45.0-py3-none-macosx_10_12_x86_64.whl

Total release size: 59.4 MB

Release files / net_mesh_cli-0.45.0.tar.gz

Download URL net_mesh_cli-0.45.0.tar.gz
Size 10.8 MB
Tags Source
SHA-256 checksum
How to use checksums
73792a06ddc893ebd11f0d48d8227c42123f4d306acc068034425323230d3105
BLAKE2b-256 checksum
How to use checksums
b0f611431d6464eba120a71ac0091ff05fdd8a5b504857f0a507deb4058d359b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / net_mesh_cli-0.45.0-py3-none-win_arm64.whl

Download URL net_mesh_cli-0.45.0-py3-none-win_arm64.whl
Size 5.8 MB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
22385a63730cb306e6db5c51bd78d7a11c40f3c0176874547b5577e7ca697660
BLAKE2b-256 checksum
How to use checksums
166f58e081b740c7a6d93f055d259cfcf67ed9671ce518af64bbedee002e09f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / net_mesh_cli-0.45.0-py3-none-win_amd64.whl

Download URL net_mesh_cli-0.45.0-py3-none-win_amd64.whl
Size 6.1 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
2632ef7a14437091bbe8b87fee7fca2c0c8c381c2bbf9ea3fa8e3885fa91d5b7
BLAKE2b-256 checksum
How to use checksums
c1ec576d5fd2974a076b972e90788b9bbc46ec57445fd5c8c517b093ffcbd803
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / net_mesh_cli-0.45.0-py3-none-musllinux_1_2_x86_64.whl

Download URL net_mesh_cli-0.45.0-py3-none-musllinux_1_2_x86_64.whl
Size 6.5 MB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
e6dc29e57bfaaaf61fe80d8d7725635b5de0567a3f3df67fccbe56580821d27e
BLAKE2b-256 checksum
How to use checksums
882d407d3817b3b17ee39946fa5110753ff8c00f964084f8e5493dce7c86c37e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / net_mesh_cli-0.45.0-py3-none-musllinux_1_2_aarch64.whl

Download URL net_mesh_cli-0.45.0-py3-none-musllinux_1_2_aarch64.whl
Size 6.0 MB
Tags Linux musl 1.2+ ARM64 Python 3
SHA-256 checksum
How to use checksums
9ab8bc2ed51f360549698b08fb937a375118aa7ec5cdd98033f55976ce694f73
BLAKE2b-256 checksum
How to use checksums
04be75614c4d118216c8a0149e78b168327299a59a0c94c9f5f15f1da9e8125f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / net_mesh_cli-0.45.0-py3-none-manylinux_2_28_x86_64.whl

Download URL net_mesh_cli-0.45.0-py3-none-manylinux_2_28_x86_64.whl
Size 6.4 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
0454e15753b73c24b550efa4927282804515c4ac3e4c0047329ddd4d19034551
BLAKE2b-256 checksum
How to use checksums
499dc865caae1c3b46bcfb896237db06dff478598c5a01d5b0c1dd1b7b7226a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / net_mesh_cli-0.45.0-py3-none-manylinux_2_28_aarch64.whl

Download URL net_mesh_cli-0.45.0-py3-none-manylinux_2_28_aarch64.whl
Size 6.0 MB
Tags Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
e8890c65f0466fba341dc9539be8515950cfe4e1e9aa9dbc92811adaa82fb6d3
BLAKE2b-256 checksum
How to use checksums
cf8029fb103672b77ed0c88cbab156d8aca70c48388730e6076e5ee15ebb750e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / net_mesh_cli-0.45.0-py3-none-macosx_11_0_arm64.whl

Download URL net_mesh_cli-0.45.0-py3-none-macosx_11_0_arm64.whl
Size 5.6 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
679c35423e006ead2a8b33d47b505bc0ee3399e26f592c878d584023d1e15990
BLAKE2b-256 checksum
How to use checksums
041ae676f3c641d0d6d452e865e924bababe34ae1ab8749b43cd5e5a815e88ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / net_mesh_cli-0.45.0-py3-none-macosx_10_12_x86_64.whl

Download URL net_mesh_cli-0.45.0-py3-none-macosx_10_12_x86_64.whl
Size 6.2 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
60653c1e628a6ba8eb3c8f14031a5f3898184f4d343603259a0e69dbae67de2b
BLAKE2b-256 checksum
How to use checksums
9393dfd06fc2b9dbdd7b769a2e87a14ea2de200240239500c5d46683a71aca8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Security for net-mesh-cli 0.45.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.45.0 This release

9 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page