# questions

Luis Gustavo Souza

03/13/2024, 3:52 AM
Hello everyone! I am using kedro 0.19.x, and I would like to run a CLI command, like: "kedro run --params gcp_project=test" and use this param in the catalog. I know that I can use runtime_params for that, but when this param it is not informed in CLI, it should get from globals.yml or parameters.yml, for example. Does anyone know how could I achieve that?


03/13/2024, 7:07 AM
You can provide defaults like this:
"${runtime_params:folder, 'data/01_raw'}
. Not sure whether it will also work with globals though. You can always fall back to custom resolver.

Yolan Honoré-Rougé

03/13/2024, 8:36 AM
You should also be able to nest resolvers like this :
"${runtime_params:folder, ${globals:folder,'data/01_raw'}}
. (This works in general but I am not absolutely sure specifically for globals because there is some dark magic behind with resolver deactivation on purpose. Please try it and eventually open an issue if it does not work, I think it should).