airflow

airflow users create command not working with 3.0 version


I was trying to run below command inside airflow 3.0 version but getting error command not found

airflow users create \
    --username "airflow" \
    --firstname "airflow"
    -- rest all params here

How can we create users using fab auth manager. Please give some examples


Solution

  • Check out the Airflow 3 release notes, as there have been breaking changes. To use FAB auth manager you need to install the provider and explicitly set it as an auth manager.

    SimpleAuthManager is now the default auth_manager. To continue using Flask AppBuilder-based authentication, install the apache-airflow-providers-flask-appbuilder provider and explicitly set auth_manager = airflow.providers.fab.auth_manager.FabAuthManager.