Skip to main content

Operator CLI for Xian networks and nodes

Project description

xian-cli

xian-cli is the operator-facing control plane for Xian networks and nodes. It handles manifests, node profiles, lifecycle commands, health checks, and local bootstrap flows without turning xian-abci or xian-stack into user-facing tools.

The published PyPI package name is xian-tech-cli. The installed console command remains xian.

Install

For local development in a sibling-repo workspace:

uv sync --group dev
uv run xian --help

For an isolated operator install from a published release:

uv tool install xian-tech-cli
xian --help

pipx install xian-tech-cli is also a valid operator install path if you prefer pipx over uv.

For a bootstrap installer that prefers uv, then pipx, then python3 -m pip --user:

curl -fsSL https://raw.githubusercontent.com/xian-technology/xian-cli/main/scripts/install.sh | sh

On Windows PowerShell:

irm https://raw.githubusercontent.com/xian-technology/xian-cli/main/scripts/install.ps1 | iex

Set XIAN_CLI_VERSION before invoking either installer if you want to pin a specific release.

The CLI itself is Python-packaged today, but it is the canonical operator surface for Xian. Runtime-heavy commands still expect access to xian-stack and canonical manifests from xian-configs, either via the default sibling workspace layout or explicit --stack-dir and --configs-dir flags.

Common Workflows

Create a local network from a template:

uv run xian network template list
uv run xian network create local-dev --chain-id xian-local-1 \
  --template single-node-dev --generate-validator-key --init-node
uv run xian node start local-dev
uv run xian node status local-dev

Join a preset-backed shared network with a local profile:

uv run xian network join devnet-node --network devnet \
  --template embedded-backend --generate-validator-key \
  --init-node --restore-snapshot
uv run xian node health devnet-node
uv run xian node endpoints devnet-node

Inspect or recover a configured node:

uv run xian doctor devnet-node
uv run xian doctor devnet-node --skip-live-checks
uv run xian snapshot restore devnet-node

For remote snapshot bootstrap, prefer a signed snapshot manifest plus trusted snapshot signing keys in the network manifest or node profile.

Principles

  • xian-cli owns operator UX. Deterministic node logic stays in xian-abci, and local runtime orchestration stays in xian-stack.
  • Manifests and node profiles are explicit artifacts, not hidden state.
  • Templates and solution packs should accelerate common setups, but they should remain optional. An operator who knows what they are doing should still be able to work directly with manifests, profiles, and node homes.
  • Health, endpoint discovery, and diagnostics are first-class operator features, not afterthoughts.

Key Directories

  • src/xian_cli/: commands, models, manifest handling, and backend integration
  • tests/: CLI behavior and manifest/profile validation coverage
  • docs/: lifecycle contracts, architecture notes, and backlog items

What It Covers

  • key generation and validator material
  • network template and solution-pack discovery
  • network creation and network join flows
  • node initialization, start, stop, and status
  • endpoint and health discovery, including optional dashboard, monitoring, and stack-managed xian-intentkit
  • snapshot restore and doctor diagnostics
  • solution-pack starter flows built on xian-configs

Command Groups

  • xian keys ...: generate validator and account material
  • xian network template ...: inspect reusable network templates
  • xian network create ...: create a local/operator-managed network profile
  • xian network join ...: join an existing preset-backed or remote network
  • xian node ...: initialize, start, stop, inspect, and recover a node profile
  • xian doctor ...: run broader local diagnostics
  • xian solution-pack ...: discover starter flows built on top of the golden path

Validation

uv sync --group dev
uv run ruff check .
uv run ruff format --check .
uv run pytest

Related Docs

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

xian_tech_cli-0.1.3.tar.gz (50.1 kB view details)

Uploaded Source

Built Distribution

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

xian_tech_cli-0.1.3-py3-none-any.whl (35.5 kB view details)

Uploaded Python 3

File details

Details for the file xian_tech_cli-0.1.3.tar.gz.

File metadata

  • Download URL: xian_tech_cli-0.1.3.tar.gz
  • Upload date:
  • Size: 50.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for xian_tech_cli-0.1.3.tar.gz
Algorithm Hash digest
SHA256 540fd22aa16f80f8ede23fce5d21a2c022f1304714cbe8b6b8a69d1c006c8016
MD5 4f095a91990f1322609e617549442627
BLAKE2b-256 3a12d0f561bce4758766e91c63dae54f69bf567059af2526fe7449102eeb71b5

See more details on using hashes here.

Provenance

The following attestation bundles were made for xian_tech_cli-0.1.3.tar.gz:

Publisher: release.yml on xian-technology/xian-cli

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

File details

Details for the file xian_tech_cli-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: xian_tech_cli-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 35.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for xian_tech_cli-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 29ba91286f3c799e080adbfe4556adcda092d1e11a271733562b97312bdf5afa
MD5 d04ab0d2904158b9c8549016044d1af2
BLAKE2b-256 1d67c3d28b51d34109a649a8702ea985e561485c5d0cbca6898b915336b8d65b

See more details on using hashes here.

Provenance

The following attestation bundles were made for xian_tech_cli-0.1.3-py3-none-any.whl:

Publisher: release.yml on xian-technology/xian-cli

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