Unfortunately, Prefect 3.0 does not support changing the name of an existing deployment through the CLI while retaining its history. If you change the deployment name in your deployment file, it will create a new deployment with a separate history.
For more details, you can refer to the
Prefect 3.0 documentation.
If maintaining the history is crucial, you might need to keep the existing deployment name or explore other ways to track changes outside of Prefect.