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.
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. |
admin |
Signed admin-chain commits — drain, cordon, maintenance, drop-replicas, etc. |
ice |
Break-glass ICE — simulate then commit force-drain / evict / restart / cutover. |
snapshot |
One-shot MeshOsSnapshot reads (and --watch for streaming). |
audit |
Read-only queries against the RedEX-committed audit ledger. |
log tail |
Substrate log stream (--follow, --daemon, --level). |
failures tail |
Substrate failure stream — same shape as log tail. |
cap |
Capability advertisement + discovery. |
peer |
Peer + NAT-traversal helpers. |
daemon |
Per-daemon listing from the local snapshot. |
netdb |
NetDB local KV adapter — Cortex-backed tasks + memories. |
subnet |
Hierarchical subnet inspection (show, ls, tree). |
gateway |
SubnetGateway stats + export-table operator surface. |
channel |
ChannelConfigRegistry inspection (visibility, ls). |
aggregator |
AggregatorDaemon inspection + remote query. |
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.--output (json|yaml|ndjson|table|text)— auto-detectstable/texton TTY andjson/ndjsonoff-TTY.--quiet/-q— suppress stderr diagnostics.--verbose/-v—-vinfo,-vvdebug,-vvvtrace.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). Default30s.
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— success2— usage / parse error3— config / identity load failure4— substrate refused the action (auth, ICE threshold, etc.)5— timeout6— transport error
License
Apache-2.0.
Metadata
Release files for net-mesh-cli 0.34.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| net_mesh_cli-0.34.0.tar.gz | 7.3 MB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| net_mesh_cli-0.34.0-py3-none-win_arm64.whl | Python 3 | none | Windows ARM64 | Details |
| net_mesh_cli-0.34.0-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details |
| net_mesh_cli-0.34.0-py3-none-musllinux_1_2_x86_64.whl | Python 3 | none | Linux musl 1.2+ x86-64 | Details |
| net_mesh_cli-0.34.0-py3-none-musllinux_1_2_aarch64.whl | Python 3 | none | Linux musl 1.2+ ARM64 | Details |
| net_mesh_cli-0.34.0-py3-none-manylinux_2_28_x86_64.whl | Python 3 | none | Linux glibc 2.28+ x86-64 | Details |
| net_mesh_cli-0.34.0-py3-none-manylinux_2_28_aarch64.whl | Python 3 | none | Linux glibc 2.28+ ARM64 | Details |
| net_mesh_cli-0.34.0-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details |
| net_mesh_cli-0.34.0-py3-none-macosx_10_12_x86_64.whl | Python 3 | none | macOS 10.12+ x86-64 | Details |
Total release size: 39.4 MB
Release files / net_mesh_cli-0.34.0.tar.gz
| Download URL | net_mesh_cli-0.34.0.tar.gz |
|---|---|
| Size | 7.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3836d5d17de4bb9f1bcd0a5d7d96a6c38b6ce53141f5beaa024bebdd5fee51eb
|
|
BLAKE2b-256 checksum How to use checksums |
76515ed176a126db023854c20f6f9e7f164944ed4dd85c6812f48d0c1b5863f3
|
| 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.34.0-py3-none-win_arm64.whl
| Download URL | net_mesh_cli-0.34.0-py3-none-win_arm64.whl |
|---|---|
| Size | 3.8 MB |
| Tags | Python 3 Windows ARM64 |
|
SHA-256 checksum How to use checksums |
05e4e5b3efbf71f82d5c49dc0d93e7ebc6d163ed0b4f500e8c0417707c7a2a15
|
|
BLAKE2b-256 checksum How to use checksums |
fb81a968ea78a811ca85b4f3921c8470d103672aa24b12e6ed5c388a08507435
|
| 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.34.0-py3-none-win_amd64.whl
| Download URL | net_mesh_cli-0.34.0-py3-none-win_amd64.whl |
|---|---|
| Size | 4.0 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
12aefbc0f0710ec7cd6e1e0f242af59394aba6dffca96d0584f7e56c8f2a07d4
|
|
BLAKE2b-256 checksum How to use checksums |
80b7c72e73f83f770db9c11594db2987acefcf116b6105f92152b46785d7b605
|
| 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.34.0-py3-none-musllinux_1_2_x86_64.whl
| Download URL | net_mesh_cli-0.34.0-py3-none-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 4.3 MB |
| Tags | Linux musl 1.2+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
a178341fa1dfcf7b35689f4ffbd264c5bc883b665066e87584819fd3b291e021
|
|
BLAKE2b-256 checksum How to use checksums |
3e4799bf3b2966e015a760c8683a5ab39990c4cfaba69f334e4dc698356dde75
|
| 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.34.0-py3-none-musllinux_1_2_aarch64.whl
| Download URL | net_mesh_cli-0.34.0-py3-none-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 4.0 MB |
| Tags | Linux musl 1.2+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
e612aa10c0b71211c1228c0e817ea1d41eb32dc5efe974ccfc09f65c66d75a0c
|
|
BLAKE2b-256 checksum How to use checksums |
be63cc47ee47c94fdf1eb554f6ce41cec24e57b1bff729c64971d92d19d0a42d
|
| 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.34.0-py3-none-manylinux_2_28_x86_64.whl
| Download URL | net_mesh_cli-0.34.0-py3-none-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 4.2 MB |
| Tags | Linux glibc 2.28+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
31430e059d59c85e12281e1e889c2b63206cab2aa5c274ec97649e4d0f495f79
|
|
BLAKE2b-256 checksum How to use checksums |
c123a6f4b8e2c15050ce1092a722b36b3d8f213f022fdf28b3fe04d20d517260
|
| 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.34.0-py3-none-manylinux_2_28_aarch64.whl
| Download URL | net_mesh_cli-0.34.0-py3-none-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 4.0 MB |
| Tags | Linux glibc 2.28+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
5927612baca170486caa0761e933155e6dabfd45601889c9ee78c8bc2bcda754
|
|
BLAKE2b-256 checksum How to use checksums |
f2ecc14fe698d08575a4ae1733d8478b93ad16fda625c8f7192325c78558e51b
|
| 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.34.0-py3-none-macosx_11_0_arm64.whl
| Download URL | net_mesh_cli-0.34.0-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 3.7 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
a50da1f5ece26e190947107c167059d53d1d13482a21867b3eb6d8298db9e419
|
|
BLAKE2b-256 checksum How to use checksums |
8970455dc4b8df3e9a69fe55e58ba85ff52652251374c84285721dfd25fabe2f
|
| 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.34.0-py3-none-macosx_10_12_x86_64.whl
| Download URL | net_mesh_cli-0.34.0-py3-none-macosx_10_12_x86_64.whl |
|---|---|
| Size | 4.1 MB |
| Tags | Python 3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
cd34671fcd896949bbb8260b03f247945de3e14aa2bcfd6e00831aa4b5e90811
|
|
BLAKE2b-256 checksum How to use checksums |
8489dd1e52c2a08e900b7addadfbd2879f6cce25e6e4a9cb638159b83c1af155
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|