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

# Automate actions on Astro

As an administrator or head of your team, you can use the Astro CLI to automate the management of Deployments and Workspaces. Some common actions you can automate include:

* Managing users.
* Deploying code in a CI/CD pipeline.
* Creating Deployments.

Automating actions allows your team to interact with Astro in a predictable way that improves reliability and security. For example, when you automate code deploys with CI/CD, your can have your users deploy from a source where all of their work is tracked and reviewed, such as GitHub.

This section of documentation covers how to automate processes on Astro using Astro CLI. To start automating, you'll first [programmatically authenticate to Astro](/docs/astro/automation-authentication) using an API token. Then, you'll write and run a script to perform your action.

## Common actions to automate

### Deployment actions

* Deploy code to your Deployment using [CI/CD](/docs/astro/set-up-ci-cd).
* Update your Deployment using a [Deployment file](/docs/astro/manage-deployments-as-code).
* Make a request to your Deployment using the [Airflow REST API](/docs/astro/airflow-api).

### Workspace actions

* [Manage users, Teams, and tokens](/docs/cli/v1.43/astro-workspace-list) in your Workspace.
* Create [preview Deployments](/docs/astro/ci-cd-templates/github-actions-deployment-preview) using CI/CD.
* Perform all Deployment-level actions on any Deployment in a Workspace.

### Organization actions

* [Manage Organization users, Teams, and tokens](/docs/cli/v1.43/astro-organization-list).
* Export [audit logs](/docs/astro/audit-logs#export-audit-logs).
