Install the CLI and its dependencies¶
What you will end up with¶
An xratu executable on your path, and the sdk package importable in the
same environment for authoring reusable capability blocks.
Prerequisites¶
- Python 3.11 or later. The packages declare that floor, so an older interpreter fails at install rather than at run time.
pip, and a virtual environment you are willing to install into.
Install¶
Create and activate an environment first, so the install does not land in your system interpreter.
Install the CLI.
The distribution provides the xratu command and carries the shared layers
with it: sdk, the client boundary and authoring declarations; protocol, the
shared protocol utilities; and contracts, the cross-plane contract
definitions.
If your organisation serves these from a private index rather than the public one, point pip at it:
Block authors who need only the authoring surface, and not the operator CLI, install the SDK on its own. See Installing the SDK.
Expected result¶
pip reports the collected distributions and confirms the install. Afterwards
xratu resolves on your path inside the activated environment.
Verify it worked¶
Three checks, none of which needs a control plane.
Confirm the entry point and the command surface:
The usage line lists the top-level command groups, among them config,
bootstrap, auth, dataplane, project, policy, secret, model,
build and obs.
Confirm the CLI can read and write its own configuration:
This prints the local configuration as JSON. On a fresh install the document
carries api_version of xratu.config/v2, a profiles object, the
current_profile name and an effective block showing the values that will be
used for the next command. No endpoint is set yet, which is expected at this
point.
Confirm the authoring surface imports:
xratu and xratu_auth are the two decorators you attach to a reusable
capability block. If this import fails, the CLI may still work but you cannot
author blocks in this environment.
When it fails¶
xratu: command not found. The environment is not activated, or the
install did not complete. Re-activate and re-run it.
ERROR: No matching distribution found. pip cannot reach the index that
serves the package, or your Python is older than 3.11. Check the interpreter
version first, then your index configuration and network access.
A build failure mentioning cryptography, grpcio or psycopg. These are
compiled dependencies. Ensure a wheel is available for your platform and Python
version, or install the build toolchain your platform needs for them.
xratu --help works but every control-plane command fails. That is not an
install problem. The CLI has no endpoint or token yet. See
Configure a CLI profile.
Commands behave inconsistently between shells. You have more than one
environment, or a system-wide install shadowing this one. Check which
executable resolves with which xratu.
What changed¶
The CLI and the authoring surface are installed in your environment and
xratu is on your path. Nothing outside your workstation was touched: no
cluster, no control plane and no cloud resource.
The next thing the CLI needs is somewhere to talk to. Before that, confirm the rest of your toolchain and decide your topology in Check prerequisites and choose a topology.