Yep, look at airflow connections and airflow variables to perform CRUD
operations via command line. For variables, it also supports importing from
a JSON file, which is pretty handy.

Alternatively, connections can be defined with environment variables, see
last paragraph of
https://airflow.incubator.apache.org/concepts.html#connections. Also,
variables can be set in code with airflow.models.Variable.set().

On Tue, Mar 7, 2017 at 1:49 PM, Nicholas Hodgkinson <
[email protected]> wrote:

> I would like to be able to create a script to assist local development
> which would populate several Connections and Variables that are used across
> our organization; is there a way that I can add those from the command line
> or Python script without having to manually enter them via the UI?
>
> Thanks,
> -Nik
> [email protected]
>
> --
>
>
> Read our founder's story.
> <https://collectivehealth.com/blog/started-collective-health/>
>
> *This message may contain confidential, proprietary, or protected
> information.  If you are not the intended recipient, you may not review,
> copy, or distribute this message. If you received this message in error,
> please notify the sender by reply email and delete this message.*
>

Reply via email to