Skip to main content

Install the Validio CLI

The Validio CLI is published as a Python package on PyPI as validio-cli. You can use a Python package installer, such as pip, to install the CLI in your desired environment:
Bash
To configure the credentials that the CLI uses, see Configure default API credentials.

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 as get 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: An identifier that you give an entity you create in the Validio platform, such as a source, validator, or window. A resource name is unique within its namespace for each type of resource, so a source and a validator in the same namespace can share a resource name.
  • Resource namespace: A defined logical grouping of created entities that have a resource name.
When you call commands that rely on unique identifiers, you can use either:
  • The ID.
  • The resource name and resource 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:
  1. Per command: Pass the -n or --namespace flag.
  2. Default: Configure a default namespace with validio config ns <namespace>.
This example illustrates the namespace functionality:
Bash
For creating namespaces and managing their members from the CLI, see Namespaces.

Manage sources

You can use sources subcommands to start, stop, backfill, or reset your sources. To start a source:
Bash
You can also start all sources in a namespace:
Bash
To stop a source:
Bash
To backfill a source:
Bash
To reset a source:
Bash

Move resources

You can move resources from one namespace to another using validio 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
To move only specific resources, pass their resource names with the flag for their resource type:
Bash

Move resources when importing

You can also move resources when importing them, which removes the need for a separate move beforehand. See Import resources.