r2x-cli
A comprehensive framework plugin manager for the r2x power systems modeling ecosystem. Simplifies discovery, installation, and management of r2x framework plugins.
Features
- Easy plugin management
- Built-in package resolution
- Python integration support
Python Package Management
This project uses uv for handling Python packages. With uv, you don't need to worry about Python or plugin versioning—uv automatically handles dependency resolution and environment isolation for you.
License
BSD-3-Clause License. See LICENSE.txt for details.
Commands
Getting Started
# Initialize a new pipeline file in the current directory
# Initialize with custom filename
The r2x init command creates a template pipeline file with:
- Example variables for substitution
- Multiple pipeline examples
- Plugin configuration templates
- Comments explaining all features
You can then edit the file to configure your own pipelines.
Python & Virtual Environment Management
# Install or update Python version
# Get the Python executable path (useful for scripting)
# Show current Python configuration
# Manage virtual environment
# Get or set custom venv path
# Automated venv recreation
R2X_VENV_YES=1
Install packages in your managed venv:
Pipeline Management
# List available pipelines
# Execute a pipeline
# Show pipeline flow without executing (--dry-run)
# Save pipeline output to file
The --dry-run flag displays which plugins produce/consume stdout, helping you understand data flow between pipeline stages before execution.
Plugin Management
# List installed plugins
# Install a plugin
# Run a plugin directly
# Show plugin help
System Integration
# Load and inspect a JSON system file
# Load from stdin and open IPython with system available
|