## What this teaches

How to astro deployment update name removes all dags.

## The problem

Issue astronomer/astro-cli#1458 (closed, 8 comments): **Describe the bug** ```bash astro deployment update --deployment-name SRC_NAME --name DST_NAME ``` Will rename the deployment but lose all its dags, the only one left is astronomer_monitoring_dag **What CLI Version did you experience this bug?** 1.20.1 **This CLI bug is related to which Astronomer Platform?** - [x] Astro - [ ] Software - [ ] None/Unknown **What Operating System is the above CLI installed on?** MacOS Sonoma 14.1.1 **🪜 Steps To Reproduce** 1. Create a deployment 2. Deploy some dags 3. Run ```bash astro deployment update --deployment-name SRC_NAME --name DST_NAME ``` 4.

## What worked (verified answer)

Upgrade the Astro CLI to 1.21.0 or newer. The regression in the reported CLI version was fixed there, and the reporter confirmed the failure went away after upgrading. If you installed via a package manager, re-run the install to pull the fixed release before retrying the failing command.

## Source

gh:astronomer/astro-cli#1458 - https://github.com/astronomer/astro-cli/issues/1458
