> ## 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 env

> Manage Astro Environment Manager objects from the Astro CLI.

> [!NOTE]
>
> This command is only available on Astro.

Use `astro env` commands to manage Environment Manager objects from your terminal. These objects include environment variables, Airflow connections, Airflow variables, and metrics exports. You can scope each object to a Workspace or a Deployment, and you can link a Workspace-scoped object to specific Deployments.

These commands are distinct from [`astro deployment variable`](https://astronomer.io/docs/cli/v1.47/astro-deployment-variable-create), which writes directly to a single Deployment, and [`astro deployment connection`](https://astronomer.io/docs/cli/v1.47/astro-deployment-connection-create), which writes to a Deployment's Airflow metadata database. Use `astro env` for objects that you want to share across Deployments or manage at the Workspace level.

> **[astro env variable](https://astronomer.io/docs/cli/v1.47/astro-env-variable)**
>
> View documentation for `astro env variable`.

> **[astro env connection](https://astronomer.io/docs/cli/v1.47/astro-env-connection)**
>
> View documentation for `astro env connection`.

> **[astro env airflow-variable](https://astronomer.io/docs/cli/v1.47/astro-env-airflow-variable)**
>
> View documentation for `astro env airflow-variable`.

> **[astro env metrics-export](https://astronomer.io/docs/cli/v1.47/astro-env-metrics-export)**
>
> View documentation for `astro env metrics-export`.
