Valohai CLI

raw JSON →
0.36.0 verified Sat May 09 auth: no python

A command-line client for Valohai, a machine learning platform. Current version 0.36.0. Enables local execution, pipeline management, and model catalog interactions. Requires Python >=3.10. Released irregularly with minor versions every few months.

pip install valohai-cli
error ModuleNotFoundError: No module named 'valohai_cli'
cause Package not installed or wrong Python environment.
fix
Run pip install valohai-cli in the correct environment.
error Error: Invalid value for '--parameter': ...
cause Using deprecated `--parameter key=value` syntax in newer versions.
fix
Use the new format: --parameter key:type:value or see vh exec run --help.
breaking v0.36.0 dropped support for Python < 3.10. Ensure your environment uses Python 3.10+.
fix Upgrade Python to 3.10 or later.
deprecated The `vh exec run` command's `--parameter` and `--input` flags are being replaced by structured options. Old-style flags may be removed in future versions.
fix Use the new syntax as shown in `vh exec run --help`.
gotcha API tokens must be set via environment variable `VALOHAI_TOKEN` or configured via `vh login`. The CLI does not read tokens from `.env` files automatically.
fix Export VALOHAI_TOKEN or run `vh login`.

This is an illustrative import; the typical usage is via the 'vh' command-line tool. Run `vh --help` after installing.

import os
import valohai_cli
os.environ['VALOHAI_URL'] = os.environ.get('VALOHAI_URL', '')
os.environ['VALOHAI_TOKEN'] = os.environ.get('VALOHAI_TOKEN', '')
from valohai_cli import cli
cli.main(['--help'])