Quick Start¶
Let’s first install airflowctl if you haven’t already:
From PyPI: Installation from PyPI
From source: Installing from Sources
airflowctl is a command line tool that helps you manage your Airflow deployments. It is designed to be easy to use and provides a simple interface for managing your Airflow environment.
To get started, you can use the following command to create a new airflowctl environment:
airflowctl auth login --username <username> --password <password> --api-url <api_url> --env <env_name>
To persist the environment, you can set AIRFLOW_CLI_ENVIRONMENT.
The environment variable should be the name of the environment you want to use.
This will allow users to switch environments easily.
OR
export AIRFLOW_CLI_TOKEN=<token>
airflowctl auth login --api-url <api_url> --env <env_name>
This command will create a new airflowctl environment with the specified username and password. You can then use the following command to start the airflowctl environment:
airflowctl --help