Validate Commands
Validate your pipeline definitions and configuration for correctness.
Validate All Pipes
pipelex validate all
Performs comprehensive validation:
- Validates all library configurations
- Runs static validation on all discovered pipes
- Performs dry-run execution to check pipeline logic
This is the recommended validation to run before committing changes or deploying pipelines.
Options:
--library-dir,-L- Directory to search for pipe definitions. Can be specified multiple times.
Examples:
# Validate everything
pipelex validate all
# Validate with custom library directories
pipelex validate all -L ./pipelines -L ./shared_pipes
Validate Single Pipe
pipelex validate PIPE_CODE
pipelex validate --pipe PIPE_CODE
Validates and dry-runs a specific pipe from your imported packages, useful for iterative development.
Arguments:
PIPE_CODE- The pipe code to validate as a positional argument, or use--pipeoption
Options:
--pipe PIPE_CODE- Explicitly specify the pipe code to validate (alternative to positional argument)--library-dir,-L- Directory to search for pipe definitions. Can be specified multiple times.
Examples:
# Validate a specific pipe (positional argument)
pipelex validate analyze_cv_matching
pipelex validate write_weekly_report
# Validate a specific pipe (explicit option)
pipelex validate --pipe analyze_cv_matching
# Validate with custom library directories
pipelex validate my_pipe -L ./pipelines
Validate Bundle
pipelex validate BUNDLE_FILE.plx
pipelex validate --bundle BUNDLE_FILE.plx
Validates all pipes defined in a bundle file. The command automatically detects .plx files as bundles.
Arguments:
BUNDLE_FILE.plx- Path to the bundle file (auto-detected by.plxextension)
Options:
--bundle BUNDLE_FILE.plx- Explicitly specify the bundle file path--library-dir,-L- Directory to search for additional pipe definitions. Can be specified multiple times.
Examples:
# Validate a bundle (auto-detected)
pipelex validate my_pipeline.plx
pipelex validate pipelines/invoice_processor.plx
# Validate a bundle (explicit option)
pipelex validate --bundle my_pipeline.plx
# Validate a bundle with additional library directories
pipelex validate my_bundle.plx -L ./shared_pipes
Note
When validating a bundle, ALL pipes in that bundle are validated, not just the main pipe.
Validate Specific Pipe in Bundle
pipelex validate --bundle BUNDLE_FILE.plx --pipe PIPE_CODE
Validates all pipes in a bundle, while ensuring a specific pipe exists in that bundle. The entire bundle is validated, not just the specified pipe.
Options:
--bundle BUNDLE_FILE.plx- Path to the bundle file--pipe PIPE_CODE- Pipe code that must exist in the bundle
Examples:
# Validate bundle and ensure specific pipe exists in it
pipelex validate --bundle my_pipeline.plx --pipe extract_invoice
pipelex validate --bundle invoice_processor.plx --pipe validate_amounts
Bundle Validation Behavior
The specified pipe must be defined in the bundle. This is useful when you want to validate a bundle and confirm a specific pipe is present and valid within it. However, the entire bundle will be validated regardless.
What Validation Checks
All validation commands check:
- Syntax correctness of
.plxfiles - Concept and pipe definitions are valid
- Input/output connections are correct
- All referenced pipes and concepts exist
- Dry-run execution succeeds without errors, which implies the logic is correct and the pipe can be run