Installation
Check the prerequisites before installing. Use published packages for normal use; a source checkout is only needed for development.
Python environment installation
Section titled “Python environment installation”For Python integration, create and activate a virtual environment using Python
3.11, 3.12, or 3.13. Confirm python --version selects one of these versions.
On macOS or Linux:
python -m venv .venvsource .venv/bin/activateOn Windows PowerShell, activate it with .venv\Scripts\Activate.ps1 instead.
Install the published translation package and check dependency consistency:
python -m pip install r2x-reeds-to-siennapython -m pip checkpython -m pip show r2x-reeds-to-siennapip check should report no broken requirements; pip show identifies the
installed version and location. This environment is separate from the CLI’s
managed environment. Continue with the Python workflow.
CLI-managed installation
Section titled “CLI-managed installation”After installing r2x-cli and uv, verify the CLI and prepare its managed runtime:
r2x --versionr2x python installr2x python showUse the Python version supported by your CLI binary. r2x python show identifies
the environment that will load plugins. Installing a plugin changes this managed
environment and its plugin manifest.
For the first CLI pipeline, install the Sienna parser and exporter:
r2x install r2x-siennar2x list r2x-siennaConfirm that the list includes sienna-parser and sienna-exporter, then inspect
the parser options:
r2x run sienna-parser --helpFor translation, install the package matching your direction:
| Direction | Published package |
|---|---|
| ReEDS → PLEXOS | r2x-reeds-to-plexos |
| ReEDS → Sienna | r2x-reeds-to-sienna |
| PLEXOS → Sienna | r2x-plexos-to-sienna |
| Sienna → PLEXOS | r2x-sienna-to-plexos |
For example:
r2x install r2x-reeds-to-siennar2x list r2x-reeds-to-siennaExpect reeds-to-sienna in the list. Follow the
ReEDS CLI tutorial to install and verify the
source parser and target exporter as well. Use compatible parser, translator,
and exporter versions; the translation step does not read source data by itself.
Verify your first use
Section titled “Verify your first use”Once plugin discovery succeeds, follow the first CLI pipeline to initialize a workspace, preview execution, export a small model, and inspect the saved system. The walkthrough includes expected files and a ten-bus inspection result.
If a command is missing or a plugin cannot be discovered, check the selected runtime and installed packages using Troubleshooting.