CloudQuery global directory environment variable override query

There isn’t an environment variable for setting/overriding the cq-dir globally, is there?

Hi @pro-mastiff, there’s a CLI flag --cq-dir here.

Is it possible to override cq-dir via an environment variable?

Yeah, I’m aware of that. I was wanting to set an environment variable globally so that I didn’t have to pass it to the CLI each time. Running locally I want it to use the default, but when run via our pipeline, I want to use a different directory that has pre-installed plugins.

I’ll just do

cloudquery sync -cq-dir ${CQ_DIR:-.cq} *.yaml

for now.

Got it, there’s no environment variable for that. I think we had some auto-mapping from flags to env variables a very long time ago (v0), but it created quite a lot of confusion if I remember correctly.