1

There's already a related question, however the proposed Compose API no longer supports passing a config as an argument by Hydra 0.11.3.

I'm wondering if there is a way to pass the config via command line or whether this functionality is disabled in the latest version ?

Casey
  • 23
  • 4

1 Answers1

2

The compose API does support passing the config as an argument

In Hydra 1.0.0rc1, there is a new command line flag --config-name.

Omry Yadan
  • 28,343
  • 17
  • 59
  • 81
  • 2
    Probably obvious to everyone but me, but e.g. if you want to run `myapp.py` and the relative path to the config file that you want to use is `path/to/config/my-config.yaml`, youl should do: `python myapp.py -cd path/to/config --config-name=my-config`. – teichert Aug 09 '21 at 21:57