> ## Documentation Index
> Fetch the complete documentation index at: https://astronomer.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# astro dev run

Run [Airflow CLI commands](https://airflow.apache.org/docs/apache-airflow/stable/cli-and-env-variables-ref.html) in your local Airflow environment. This command is for local development only and cannot be applied to Deployments running on Astro.

## Usage

```sh wrap theme={null}
astro dev run <airflow-command>
```

## Examples

```sh wrap theme={null}
$ astro dev run users create --role Admin --username admin --email <your-email-address> --firstname <your-first-name> --lastname <your-last-name> --password admin
# Create a user in your local Airflow environment using the `airflow user create` Airflow CLI command

$ astro dev run connections export - --file-format=env --serialization-format=json
# Export connections in your local Airflow environment to STDOUT in a JSON format

$ astro dev run connections export - --file-format=env
# Export connections in your local Airflow environment to STDOUT in the default URI format
```

## Related commands

* [`astro dev logs`](/docs/cli/v1.40/astro-dev-logs)
* [`astro dev ps`](/docs/cli/v1.40/astro-dev-ps)
