Skip to main content

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

Project description

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.
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-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
  • 2 — usage / parse error
  • 3 — config / identity load failure
  • 4 — substrate refused the action (auth, ICE threshold, etc.)
  • 5 — timeout
  • 6 — transport error

License

Apache-2.0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

net_mesh_cli-0.25.1.tar.gz (5.8 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

net_mesh_cli-0.25.1-py3-none-win_arm64.whl (2.1 MB view details)

Uploaded Python 3Windows ARM64

net_mesh_cli-0.25.1-py3-none-win_amd64.whl (2.3 MB view details)

Uploaded Python 3Windows x86-64

net_mesh_cli-0.25.1-py3-none-musllinux_1_2_x86_64.whl (2.5 MB view details)

Uploaded Python 3musllinux: musl 1.2+ x86-64

net_mesh_cli-0.25.1-py3-none-musllinux_1_2_aarch64.whl (2.3 MB view details)

Uploaded Python 3musllinux: musl 1.2+ ARM64

net_mesh_cli-0.25.1-py3-none-manylinux_2_28_x86_64.whl (2.4 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ x86-64

net_mesh_cli-0.25.1-py3-none-manylinux_2_28_aarch64.whl (2.3 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ ARM64

net_mesh_cli-0.25.1-py3-none-macosx_11_0_arm64.whl (2.1 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

net_mesh_cli-0.25.1-py3-none-macosx_10_12_x86_64.whl (2.3 MB view details)

Uploaded Python 3macOS 10.12+ x86-64

File details

Details for the file net_mesh_cli-0.25.1.tar.gz.

File metadata

  • Download URL: net_mesh_cli-0.25.1.tar.gz
  • Upload date:
  • Size: 5.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for net_mesh_cli-0.25.1.tar.gz
Algorithm Hash digest
SHA256 2999ef27902b63ea4fcef3a438ef32c30f9d022c2732d7fb08f87ec086b131c6
MD5 57baedd34f208678c4a6e256d3b15304
BLAKE2b-256 26b25a36a6c980c4bbe317f70c552ab31e7ef2545ee47623fdc5c5dceb5c9653

See more details on using hashes here.

Provenance

The following attestation bundles were made for net_mesh_cli-0.25.1.tar.gz:

Publisher: release-pypi-cli.yml on ai-2070/net

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file net_mesh_cli-0.25.1-py3-none-win_arm64.whl.

File metadata

File hashes

Hashes for net_mesh_cli-0.25.1-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 deb7896c3bafd018d374696b19fc81344596fc9b397284a8b7574cf4bd33b81d
MD5 76cf8ad3f7360ad0e205b637613b8728
BLAKE2b-256 45257b369d623279c29ec3cd3ce44f3fe82f7d37dc897c3cff07f0c70c0f8abf

See more details on using hashes here.

Provenance

The following attestation bundles were made for net_mesh_cli-0.25.1-py3-none-win_arm64.whl:

Publisher: release-pypi-cli.yml on ai-2070/net

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file net_mesh_cli-0.25.1-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for net_mesh_cli-0.25.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 813ddc82a0050be036ddeaf98056bf041e9a23f020dfe27e4744320ce08a0453
MD5 fbe9cbb8bf789f27cb09d952d3f2e348
BLAKE2b-256 655e17e937048f7e030b083f67594d7b266b3f49547cff0b575f3378c61bff1b

See more details on using hashes here.

Provenance

The following attestation bundles were made for net_mesh_cli-0.25.1-py3-none-win_amd64.whl:

Publisher: release-pypi-cli.yml on ai-2070/net

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file net_mesh_cli-0.25.1-py3-none-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for net_mesh_cli-0.25.1-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 72a97ec478e25c3e2bf2a94a61f79f7458aa2840741e50efdcd67d1e3d3186bd
MD5 44516b0b6d08bbc74099e6f87d6beb05
BLAKE2b-256 df468a7f13025072f04b03bbc1227f4d1a56061b7b046bd9c1784a61b1d02d14

See more details on using hashes here.

Provenance

The following attestation bundles were made for net_mesh_cli-0.25.1-py3-none-musllinux_1_2_x86_64.whl:

Publisher: release-pypi-cli.yml on ai-2070/net

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file net_mesh_cli-0.25.1-py3-none-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for net_mesh_cli-0.25.1-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 a1a6d842c38079fc1f4bd9b874d1d787683738265bb08c6daa8cee4f38589823
MD5 74466bce57e8e45b7bc84a12d7890a16
BLAKE2b-256 d0f3b1462b963eba70ff076c5c7aef1bec2c0e9b7ab17e3cc1212968cbc1f5fe

See more details on using hashes here.

Provenance

The following attestation bundles were made for net_mesh_cli-0.25.1-py3-none-musllinux_1_2_aarch64.whl:

Publisher: release-pypi-cli.yml on ai-2070/net

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file net_mesh_cli-0.25.1-py3-none-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for net_mesh_cli-0.25.1-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 aebd080ae7ab55746a644558d3648b053abdc67fae78cec84018b8d77ac02e96
MD5 7798f35c4a545e7d07304f38863ff2e3
BLAKE2b-256 316c28121b0eaf9dc6a6ba43188dd103a15f36c4c1950090617c4fbeb7106d56

See more details on using hashes here.

Provenance

The following attestation bundles were made for net_mesh_cli-0.25.1-py3-none-manylinux_2_28_x86_64.whl:

Publisher: release-pypi-cli.yml on ai-2070/net

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file net_mesh_cli-0.25.1-py3-none-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for net_mesh_cli-0.25.1-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 45ce7317eb7d5870d079d840fd08839f697e0b6e2e2b6ae5555ada26aed292aa
MD5 b0f1199c32e488e532c8e0f65e5e56b5
BLAKE2b-256 07ce03fad72ab83692be824ff080e16544df93c9a832bb4f721077170655abcd

See more details on using hashes here.

Provenance

The following attestation bundles were made for net_mesh_cli-0.25.1-py3-none-manylinux_2_28_aarch64.whl:

Publisher: release-pypi-cli.yml on ai-2070/net

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file net_mesh_cli-0.25.1-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for net_mesh_cli-0.25.1-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1cb735a1165f1285f47ee0c61ab296282bfb15a758b3ddc752766db496911e1a
MD5 aafb88b98359b53d373235f3462c5039
BLAKE2b-256 08738f2de6deff667e042a18ed6115063418946a086fa4434e330ab26606c346

See more details on using hashes here.

Provenance

The following attestation bundles were made for net_mesh_cli-0.25.1-py3-none-macosx_11_0_arm64.whl:

Publisher: release-pypi-cli.yml on ai-2070/net

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file net_mesh_cli-0.25.1-py3-none-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for net_mesh_cli-0.25.1-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 7261531b5e03d1693dcde29ae67321ff465ae31e151d9d16da446f9e0284ee6d
MD5 bdd58b6d9e897a8dc562bdd152e46a16
BLAKE2b-256 65266e5f76ca44f2f7b3ba9fb1de5c478cb05ff8ed603e945ba9f95c30fdd1fe

See more details on using hashes here.

Provenance

The following attestation bundles were made for net_mesh_cli-0.25.1-py3-none-macosx_10_12_x86_64.whl:

Publisher: release-pypi-cli.yml on ai-2070/net

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page