Install the Validio CLI
The Validio CLI is published as a Python package on PyPI asvalidio-cli. You can use a Python package installer, such as pip, to install the CLI in your desired environment:
Bash
Use the Validio CLI
You can use the Validio CLI to interact with the Validio platform directly from the command line. In this example, the CLI prints a short summary of credentials:Bash
Commands
Each resource type has its own command, with subcommands such asget alongside type-specific actions:
Help
Use the--help flag on any command or subcommand to show its available options. Run validio --help for the list of commands in your installed version.
In this example, --help shows the options for listing validators:
Bash
Identifiers
The following identifiers are used to differentiate entities in the Validio platform:ID: A globally unique identifier for any entity in the Validio platform.Resource name: A globally unique identifier for any entity that you create in the Validio platform, for example sources, validators, and windows.Resource namespace: A defined logical grouping of created entities that have aresource name.
- The
ID. - The
resource nameandresource namespace.
Resource Name FormatThe resource name must have the following format:
- Needs to contain only alphanumeric characters (uppercase or lowercase,
a-z,A-Z) or-,_or. - Must be between 2-253 characters in length
Output
By default, the CLI prints tabular output with a short summary. It can also print JSON output with full context with the-o or --output flag.
In this example, --output json prints JSON output with full context:
Bash
Namespaces
Namespaces organize and isolate resources into managed groups. Most CLI commands operate within a single namespace, so you need to specify which namespace to target:- Per command: Pass the
-nor--namespaceflag. - Default: Configure a default namespace with
validio config ns <namespace>.
Bash
Manage sources
You can usesources subcommands to start, stop, backfill, or reset your sources.
To start a source:
Bash
Bash
Bash
Bash
Bash
Move resources
You can move resources from one namespace to another usingvalidio resources move. Only top-level resources, such as credentials or channels, can be moved. When such a resource is moved, all of its children are moved with it.
In this example, all resources move from namespace-a to namespace-b:
Bash
Bash