Pipelex CLI Documentation
The pipelex CLI is the runtime and project-configuration CLI for Pipelex. Use it to initialize config, validate methods, run pipes, inspect the runtime state, and generate supporting files.
Overview
The Pipelex CLI is organized into several command groups:
| Command | Description |
|---|---|
| init | Initialize Pipelex configuration |
| update | Refresh the model deck to match the installed pipelex version |
| migrate | Bring your configuration files up to the schema the installed version expects |
| validate | Validate configuration and pipelines |
| fix | Apply deterministic safe fixes to a bundle and re-validate |
| show | Inspect configuration, pipes, and AI models |
| run | Execute pipelines |
| run method by address | Fetch and run a method straight from a public GitHub repository |
| build | Generate pipelines, runners, and structures |
Global flags
These flags work on any pipelex command and are position-agnostic — place them anywhere in the invocation:
--traceback- print the full Rich-rendered stack trace before the friendly one-line error. Off by default. Bothpipelex run --traceback pipe ...andpipelex run pipe ... --tracebackwork.--no-logo- suppress the startup logo banner. Handy for clean logs and to save tokens in agent output.
--version / -V is not one of these: it is an option on the root command, so it goes before any subcommand (pipelex --version, never pipelex show --version). See below.
The version handshake
pipelex --version reports three numbers, not one, because a client needs all three to know what it is talking to and they move on independent cadences:
pipelex <runtime version>
mthds-protocol <MTHDS Protocol version>
mthds-standard <MTHDS standard version>
pipelex— the installed runtime's own version.mthds-protocol— the version of the MTHDS Protocol this runtime speaks — the request and response shapes of the runner operations.mthds-standard— the version of the MTHDS standard it implements: the language, the native concept set, and what a manifest'smthds_versionconstraint is evaluated against.
pipelex-agent --version prints the same three lines, with pipelex-agent naming the first.
The shape is a contract rather than presentation: the output is exactly these three lines, each <label> <version>, the labels are stable, and the first line keeps the historical <program> <version> form. It is meant to be read by clients that drive the CLI as a subprocess and turn it into a protocol VersionInfo — a consumer should match on the label rather than on line position, and must not treat the whole of stdout as a single version string.
Related CLI Surface
Package manifest management currently lives in the mthds CLI:
- package —
mthds package init,mthds package list, andmthds package validate
Usage Tips
-
Initial Setup
- Run
pipelex initto create configuration files and select your backends - Configure your AI providers in
.pipelex/inference/backends.toml
- Run
-
Development Workflow
- Write or generate pipelines in
.mthdsfiles - Validate with
pipelex validate pipe your_pipe_codeorpipelex validate bundle your_bundle.mthdsduring development - When validation errors carry a
💡 Suggested fix:line, apply them automatically withpipelex fix bundle your_bundle.mthds - Run
pipelex validate pipe --allbefore committing changes
- Write or generate pipelines in
-
Running Pipelines
- Use
pipelex show pipe --allto see available pipes - Use
pipelex show pipe pipe_codeto inspect pipe details - Run with
pipelex run pipe pipe_code, add the required inputs using--inputs
- Use
-
Configuration Management
- Use
pipelex show configto verify current settings - Use
pipelex show backendsto check inference backend setup - Use
pipelex show models backend_nameto see available models
- Use
Related Documentation
- Configure AI Providers - Set up LLM backends
- Design and Run Pipelines - Pipeline development guide
- Packages -
METHODS.tomlmanifests and exports