Skip to main content
Version: 10.9.x

interpolate Command

The interpolate command performs the interpolation of the specified files with the corresponding environment variables.


  • --filename: files/folder paths containing data to interpolate.
  • --env-prefix: prefixes to add when looking for environment variables
  • --out: output directories where interpolated files are saved

The command reads the environment variables name contained inside the regular expression {{[A-Z0-9_]+}} and it performs the lookups using the prefixes passed as input.
To perform a correct interpolation it is necessary to pass the prefixes in order of preference. Indeed, the command will start to lookup by using the first prefix and will try the others one by one until a variable with that prefix is found.
The command will try to perform the lookup on the variable without the prefix if none of the prefixed ones exists. If even that does not exists, the interpolation will stop.


mlp interpolate --filename ... --env-prefix FIRST_ --env-prefix SECOND_ --out ...

will define the following lookup order for the environment variable VAR: