Working with the CLI against multiple datahub inst...
# contribute-code
h
Working with the CLI against multiple datahub instances is a bit sub-optimal due to the config file. It would be cool if we could: a) pass the config file path as an optional argument or set it as a env var OR b) have support for multiple "profiles" in the one config (and pass the profile name as an argument/env var) I'm happy to contribute, but do we a preference on how we want it to work?
s
Did you see the env variables for setting the host and token at https://datahubproject.io/docs/cli/#init? Do you mean set the config file path as an env variable?
h
Ah, must have missed that! Thanks for pointing it out! Yes, i was thinking that you’d have one config file per instance, and pass the desired path as an argument/env var. Would remove a few extra steps, and might mine the ordeal a bit less error prone.
But your suggestion solves my immediate source of irritation 👍
m
@high-hospital-85984 -> profiles would be great btw. Also want to move the config from
.datahubenv
to
.datahub/profiles
while we're at it
also want to standardize the config and align it with the rest sink / datahub api config
h
Cool, sounds simple enough. In what way is it not aligned right now?