Command-line reference
Each call to the command-line tool must respect this syntax:
PVsystCLI.exe <command> <options>
Tip
For 1st time users, an assisting tool is also available: CLI command generator
Here is the list of all available commands and their options.
help
Get help on a specific command or list all available commands.
Usage:
PVsystCLI.exe help <command>
Example commands:
PVsystCLI.exe help
This will output all available commands.
PVsystCLI.exe help convert-meteo
This will output the help documentation for the convert-meteo command.
version
This command will return the current version of the program and will check for updates of the current version. If a new update is available, this command will return the URL to download it.
Usage:
PVsystCLI.exe version
Example outputs:
PVsystCLI 8.1.1
PVsystCLI is up to date, you are using the latest version
A new release for PVsystCLI is available: 8.1.1
You can download and install it from here: ../download/latest
lic-activate
Operate on the license to activate it. This command requires the license key to be passed as parameter.
Usage:
PVsystCLI.exe lic-activate <options>
Options:
--key-k | Required | The activation key |
Example command:
PVsystCLI.exe lic-activate --key:xxx-xxxxxxxxxxxxxxxxxxxxxxxx
Output codes:
100 | The license has been activated successfully |
lic-sync
This command will synchronize the license with the server to update its information or end date. Use this command to update a license which has been renewed for example.
Example command:
PVsystCLI.exe lic-sync
lic-deactivate
This command will deactivate the license from the current computer. This action is required when the license needs to be activated on another machine.
Usage:
PVsystCLI.exe lic-deactivate <options>
Options:
--customer-id-c | Required | The CustomerID associated with the license |
Example command:
PVsystCLI.exe lic-deactivate --customer-id:xxxxxxxx
Example output:
Deactivating PVsystCLI license xxx-xxxxxxxxxxxxxxxxxxxxxxxx
PVsystCLI license successfully deactivated from this machine
lic-info
This action will output the current license status, validity date with the format "YYYY-MM-DD" and any other license related information.
Usage:
PVsystCLI.exe lic-info
Example output:
License file: C:\ProgramData\PVsystCLI\PVsystCLI.lic
License key: xxx-xxxxxxxxxxxxxxxxxxxxxxxx
Licensee: Company name
Host ID: HARDDISK=XXX, ETHERNET=XXX, WIN_PRODUCT_ID=XXX, BIOS=XXX
Expiration date: 2025-07-01, 226 days remaining
convert-meteo
This action can be used to convert a CSV meteorological data file to a .MET file.
Usage:
PVsystCLI.exe convert-meteo <options>
Options:
Option | Required | Value required | Description |
|---|---|---|---|
--input-csv-file-icf | Yes | Yes | Full path to the CSV file to convert |
--input-mef-file-imf | Yes | Yes | Full path to the MEF file to use |
--input-sit-file-isf | Yes | Yes | Full path to the SIT file to use |
--output-met-file-omf | Yes | Yes | Full path to the output MET file |
--input-mef-timeshift-imt | No | Yes | MEF time shift to use [-30;+30] |
--log-level-ll | No | Yes | Level of verbosity for command output (Default: 3)Available values: 0 [OFF], 1 [ERROR], 2 [WARNING], 3 [INFO] |
--cmd-options-file-cof | No | Yes | Full path to the file containing the command options Avoids writing a very long command line in the terminal in case of many options. Each name:value option are separated by a line break in the file, without any other separator. |
Example usage:
PVsystCLI.exe convert-meteo -input-csv-file:Input.CSV -input-mef-file:Format.MEF -input-sit-file:Geneva.SIT -output-met-file:OutputFile.MET
run-simulation
This command will run a PVsyst simulation and generate the output report and results.
Usage:
PVsystCLI.exe run-simulation <options>
Options:
Option | Required | Value required | Description |
|---|---|---|---|
--workspace-w | Yes | Yes | Full path to the PVsyst workspace to use |
--project-p | Yes | Yes | Name of the project to simulate Examples: Geneva, Geneva.PRJ |
--variant-v | Yes | Yes | Identifier the variant to use Example: VC0, VCA, VD5 |
--time-step-ts | No | Yes | Simulation time step. Accepted values: hourly, subhourly. Sub-hourly mode requires sub-hourly weather data |
--site-s | No | Yes | Full path to the SIT file to use (Geographical Site). Enables running simulations across several locations. |
--synthetic-weatherdata-generation-swg | No | No | Can be used only with the --site option. Indicates whether synthetic weather data should be generated from the provided .SIT file. |
--input-met-file-imf | No | Yes | Full path to the MET file to use (Weather data) |
--input-rvt-file-irf | No | Yes | Full path to the RVT file to use (Results output) |
--input-sfi-file-isf | No | Yes | Full path to the SFI file to use (Results output) |
--input-param-file-ipf | No | Yes | Full path to the advanced parameters file to use. This file should be edited from the PVsyst interface |
--batch-params-file-bpf | No | Yes | Full path to the batch parameters file edited in PVsyst and containing definition of simulations to be run for this project/variant |
--batch-rvt-file-brf | No | Yes | Full path to the batch RVT file that defines the result variables for the batch simulation. If this path is not specified, PVsystCLI will use the default batch variables defined for the current variant. If no batch variables are defined in the variant file, the output CSV file will not include any result variables. |
--output-csv-file-ocf | No | Yes | Full path to the CSV output file |
--overwrite-default-csv-odc | No | No | Overwrites the default CSV output file if it already exists. By default, the CSV output file is used if both the 'output-csv-file' and 'input-sfi-file' parameters are not present. If this option is not specified and the file already exists, the simulation will not be executed. |
--recompute-shadingfactors-tables-rst | No | Yes | Recomputation of shading factor tables for variants simulated with an older version. Accepted values are: 0 (false), 1 (true) (Default is 1). If set to false, shading factor tables will not be recalculated before the simulation. |
--start-date-sd | No | Yes | Start date of simulation (Defaults to weather data start) Supported formats: YYYY-MM-DD, YY-MM-DD, MM-DDExample: 2024-01-01 |
--end-date-ed | No | Yes | End date of simulation (Defaults to weather data end) Supported formats: YYYY-MM-DD, YY-MM-DD, MM-DDExample: 2024-12-31 |
--report-pdf-file-rpf | No | Yes | Full path to the output PDF simulation report |
--report-pages-rp | No | Yes | List of pages to include in the output PDF simulation report. Available values: cover, summary, notes, params, horizon, shadings, usersneeds, results, econeval, circuit, losses, financialbalance, p50p90, carbonbalance, predefgraphsDefault values (if empty): cover, summary, params, horizon, shadings, usersneeds, results, econeval, circuit, losses, financialbalance, p50p90, carbonbalance, predefgraphsExample: cover,summary,p50p90 |
--report-language-rl | No | Yes | Language to use for the output PDF simulation report (Default: en)Available values: en, fr, de, es, it, pt, tr, ko, zh, ja, pl, ruExample: fr |
--log-level-ll | No | Yes | Level of verbosity for command output (Default: 3)Available values: 0 [OFF], 1 [ERROR], 2 [WARNING], 3 [INFO] |
--cmd-options-file-cof | No | Yes | Full path to the file containing the command options Avoids writing a very long command line in the terminal in case of many options. Each name:value option are separated by a line break in the file, without any other separator. |
NB: The advanced parameters file specified in the --input-param-file option should be edited from the PVsyst interface. The modified parameters list can be found at the following address : <USERNAME>\AppData\Local\PVsyst\8.0\Admin\Param_Modif.dat
Usage examples:
Running variant VC0 of project Geneva located in C:\PVsyst8.0_Data:
PVsystCLI.exe run-simulation --workspace:"C:\PVsyst8.0_Data" --project:"Geneva" --variant:"VC0"
Running variant VC0 of project Geneva located in C:\PVsyst8.0_Data for January 2024, and output the report to C:\Downloads\PVsystReport.pdf :
PVsystCLI.exe run-simulation -w:"C:\PVsyst8.0_Data" -p:"Geneva.PRJ" -v:"VC0" -sd:2024-01-01 -ed:2024-01-31 -rpf:"C:\Downloads\PVsystReport.pdf"
Running multiple simulations with different parameters defined in BatchsParams_0.csv based on variant VC0 of project Geneva located in C:\PVsyst8.0_Data. Output variables are defined in BatchsVariables.rvt and results will be generated in BatchsResults_0.csv :
PVsystCLI.exe run-simulation -w:"C:\PVsyst8.0_Data" -p:"Geneva.PRJ" -v:"VC0" -bpf:"C:\PVsyst8.0_Data\UserBatch\BatchsParams_0.csv" -brf:"C:\PVsyst8.0_Data\Params\BatchsVariables.rvt" -rl:"fr"
Example output:
Checking license...
Loading workspace C:\PVsyst8.0_Data...
Loading project Geneva...
Loading variant VC0...
create-site
This command generates a site file (.SIT) from geographic coordinates and monthly weather data. The generated file can then be used as input for the run-simulation command.
Usage:
PVsystCLI.exe create-site <options>
Options:
Option | Required | Value required | Description |
|---|---|---|---|
--site-name-sn | Yes | Yes | Name of the site or location |
--latitude-lat | Yes | Yes | Latitude of the site in decimal format [-90;+90]. Positive northward. |
--longitude-lon | Yes | Yes | Longitude of the site in decimal format [-180;+180]. Positive eastward. |
--weather-data-file-wdf | Yes | Yes | Full path to the monthly weather data CSV file. See Monthly weather data file format below. |
--altitude-alt | No | Yes | Altitude of the site in meters. If not provided, retrieved automatically from a web service based on the site coordinates. |
--timezone-tz | No | Yes | Difference in hours between the site's legal time and UTC [-12;+12]. If not provided, retrieved automatically from a web service based on the site coordinates. |
--country-code-cc | No | Yes | ISO 3166-1 Alpha-2 country code of the site's country. If not provided, retrieved automatically from a web service based on the site coordinates. The full list of valid codes is available at iso.org or in the Countries.csv file located in the DataRO directory of your PVsyst installation folder. |
--region-r | No | Yes | Site's region name. If not provided and a country code is given, the region is derived automatically from the country. Accepted values: africa, antarctica, australia, asia, europe, north_america, south_america, pacific |
--source-s | No | Yes | Free text label identifying the source of the monthly weather data. Examples: Meteonorm 8.2 station, PVGIS TMY, Custom |
--albedo-alb | No | Yes | Ground albedo coefficient [0;1] |
--output-sit-file-osf | No | Yes | Full path to the output .SIT file to generate. If not provided, the file is saved as <site-name>.SIT in the Sites folder of the user's PVsyst workspace. |
--log-level-ll | No | Yes | Level of verbosity for command output (Default: 3)Available values: 0 [OFF], 1 [ERROR], 2 [WARNING], 3 [INFO] |
--cmd-options-file-cof | No | Yes | Full path to the file containing the command options. Avoids writing a very long command line in the terminal in case of many options. Each name:value option are separated by a line break in the file, without any other separator. |
Monthly weather data file format
The monthly weather data file must be a CSV file with 14 rows: 2 header rows followed by 12 monthly data rows.
- Row 1: column names, in any order, chosen from the table below
- Row 2: units, informational only and ignored by the parser
- Rows 3–14: one row per month, January to December
| Column name | Unit | Description | Required |
|---|---|---|---|
GlobH | kWh/m²/mth | Global horizontal irradiation | Yes |
DiffH | kWh/m²/mth | Horizontal diffuse irradiation | No |
Temp | °C | Temperature | Yes |
WindVel | m/s | Wind velocity | No |
Linke | [-] | Linke turbidity | No |
RelHum | % | Relative humidity | No |
Example file:
GlobH;DiffH;Temp;WindVel
kWh/m²;kWh/m²;°C;m/s
36.1;24.3;2.2;2.4
57.8;26.7;2.7;2.5
105.8;49.4;7;2.8
148.9;61;10.9;2.6
173.2;78;14.7;2.4
190.5;81;19.4;2.3
194.5;74.3;21.2;2.2
168.4;67.5;20.1;1.9
122.4;48.9;15.4;2.1
70.7;40.1;11.3;1.9
37.5;20;6.1;2.1
25.5;14.6;2.8;2.3
Tip
The .SIT file generated by create-site can be passed directly to run-simulation via the --site option, allowing you to script the full pipeline from site creation to simulation.
Example commands:
Minimal usage with required options only, letting the tool retrieve altitude, timezone and country automatically:
PVsystCLI.exe create-site --site-name:"Geneva" --latitude:46.2044 --longitude:6.1432 --weather-data-file:"C:\Data\Geneva_Weather.csv"
Full usage with all options specified and an explicit output path:
PVsystCLI.exe create-site --site-name:"Geneva" --latitude:46.2044 --longitude:6.1432 --altitude:375 --timezone:1 --country-code:CH --region:europe --albedo:0.2 --source:"Meteonorm" --weather-data-file:"C:\Data\Geneva_Weather.csv" --output-sit-file:"C:\Sites\Geneva.SIT"
Example output:
Reading monthly weather data from C:\Data\Geneva_Weather.csv...
Getting altitude from web service...
Getting timezone from web service...
Getting country from web service...
File C:\Sites\Geneva.SIT created successfully
export-logs
This command will export the PVsystCLI logs which can be sent to the support for better investigating issues.
Usage:
PVsystCLI.exe export-logs <options>
Options:
--target-folder-t | Optional | Full path to the folder for the exported zip file. Default: the User's home path |
Example usage:
PVsystCLI.exe export-logs
PVsystCLI.exe export-logs --target-folder:"C:\Logs"
Example output:
Exporting logs to C:\Logs ...
Logs ZIP file successfully created: C:\Logs\2024_05_17-15_40_45-PVsystCLI800-logs.zip