Command line configuration
Command-line configuration allows users to quickly override default or configuration file values at runtime without modifying the configuration files.
All parameters that are allowed in the configuration file can also be passed via the command line. For a full list, please visit the Configuration fields page.
However, there are some parameters that can only be set through the command line. These are:
Parameter |
Description |
Default |
|---|---|---|
|
Start reports. |
— |
|
Start downloads. |
— |
|
Start interpolations. |
— |
|
Open a Jupyter notebook to use Providentia as a library. |
— |
|
Start debug mode. |
— |
|
Removes log files. |
— |
|
Configuration file path or configuration file name if the file is stored in |
— |
|
Section within configuration file. |
— |
|
Redirects output to a file. More info in the Redirecting output to a file page. |
— |
|
Number of cores. |
|
|
Requested time. |
|
|
Job name. |
|
|
Job queue. |
|
|
Memory. |
|
|
Memory constraint. |
|
|
Print version of Providentia. |
— |
|
Generate file tree to update data directories. |
|
|
Disable file tree to update data directories. |
|
|
Number of CPUs per task. |
|
You can also see all the available options by typing ./bin/providentia --usage and ./bin/providentia --help.
Use cases
If a parameter is set both in the configuration file and on the command line, the command-line value takes precedence and will override the configuration file. For example:
./bin/providentia --network=EBAS
The final value used would be EBAS.
To provide a parameter with multiple values, do not include spaces between them. For example:
./bin/providentia --active_dashboard_plots=timeseries,metadata,periodic-violin,boxplot
To specify a subsection, add the name of the parent section followed by an interpunct (·) before the subsection name, like in:
./bin/providentia --conf=configurations/test.conf --section=SECTIONA·Spain