November 1, 2023
Additional improvements
- The Astro CLI now shows a warning if you attempt to deploy a project with an empty
dagsfolder to Astro. To remove this warning along with all other CLI warnings, runastro config set show_warnings false.
Bug fixes
- Fixed an issue where
astro deployment createsometimes showed an invalid Runtime version error for valid Runtime versions.
October 12, 2023
Additional improvements
- Sample test
test/dags/test_dag_integrity.pywas renamed totest/dags/test_dag_example.pyto highlight that this test is an example.
Bug fixes
- Fixed an issue where CI/CD pipelines were unable to use Deployments as Code to create Deployment Previews for Deployments using the Kubernetes executor.
- Fixed an issue where the CLI was asking users to select from the wrong regions when creating a Deployment on an AWS cluster.
- Fixed an issue where secret variables values were being printed to local logs.
September 14, 2023
Additional improvements
- When you run
astro dev upgrade-test, the generated HTML report for dag tests now shows how many dags passed and failed the test.
Bug fixes
- Fixed an issue where you couldn’t create a Deployment on a dedicated cluster using a Deployment file and API token.
- Fixed an issue where the Deployment URL that appears after you run
astro deploywas not formatted properly. - Fixed an issue where
astro dev upgrade-testwould occasionally output that it was testing an upgrade to the latest version of Astro Runtime, even if it wasn’t. - Fixed an issue where
astro dev upgrade-testdidn’t produce an HTML report for dag tests.
August 30, 2023
Bug fixes
- Fixed an issue where dags would fail to parse correctly when running
astro dev parseorastro deploy, resulting in a command execution failure.
August 29, 2023
Additional improvements
- You can now grant Astro users the
WORKSPACE_AUTHORrole. - You can now run an Astro project from the same directory an Apache Airflow project.
astro deployment inspectnow shows you a Deployment’s workload identity.
Bug fixes
- Fixed an issue where some dags could be missed during
astro deploywhen dag-only deploys are enabled. - Fixed an issue where
astro dev pytestwould incorrectly fail when testing an Astro project within a CI/CD process. - Fixed an issue where you couldn’t update a Deployment on a standard cluster using a Deployment file.
August 10, 2023
Bug fixes
- Fixed an issue where running
astro deployment createon Astro Hosted would create Deployments where dag-only deploys were turned off by default.
August 3, 2023
New command to test Astro projects before you upgrade
You can use the newastro dev upgrade-test command to anticipate and address problems before upgrading to a newer version of Astro Runtime. The command runs several test which let you determine whether an upgrade will result in major dependency changes and import errors, allowing you to fix the problems before you upgrade. See Test your Astro project locally for more information.Additional improvements
- You can now specify the
--descriptionflag withastro deployto add a description for your deploy. You can use this description to let other users know why you made a deploy or what changes a deploy contains. - You can now specify the
--roleflag withastro organization team create/updateto update a Team’s Organization-level role. - You can now specify the
--execution-dateflag withastro runto trigger a dag run for a specific execution date. - You can now specify the
--verboseflag withastro runto stream all logs to your terminal after the dag run triggers.
Bug fixes
- Fixed an issue where
astro deployment inspectwas showing the wrong value for a Deployment’s workload identity on Astro Hosted. - Fixed an issue were
astro dev restartwould occasionally not work.
July 12, 2023
Bug fixes
- Fixed an issue were some Astro Hosted Deployment updates triggered by the Astro CLI were not working.
July 6, 2023
Manage Organization API tokens with the Astro CLI
You can now manage Organization API tokens using the following CLI commands:astro organization token createastro organization token rolesastro organization token listastro organization token updateastro organization token rotateastro organization token delete
Download resources from the Astronomer Registry to your Astro project
You can now use the following commands to download resources from the Astronomer Registry:astro registry dag addastro registry provider add
Additional improvements
- You can now create Deployments on AWS standard clusters.
- If you belong to only one Workspace, the Astro CLI now uses that Workspace by default for all commands.
Bug fixes
- Fixed an issue where the Astro CLI could not retrieve the health status of a Deployment.
- Fixed an issue where you could not set
worker_concurrencyto 0 in a Deployment file.
June 30, 2023
Bug fixes
- Fixed an issue where the
isHighAvailabilityandCICDEnforcementfields in Deployment files were not processed correctly.
June 13, 2023
Manage Teams using the Astro CLI
You can now manage Astro Teams using the following CLI commands:astro workspace team addastro workspace team listastro workspace team updateastro workspace team removeastro organization team createastro organization team listastro organization team updateastro organization team deleteastro organization team user removeastro organization team user addastro organization team user list
Manage Workspace API tokens with the Astro CLI
You can now manage Workspace API tokens using the following CLI commands:astro workspace token createastro workspace token addastro workspace token listastro workspace token updateastro workspace token rotateastro workspace token delete
Additional improvements
- You can now specify the
--cluster-type "dedicated"flag when usingastro deployment createto create a Deployment on a dedicated cluster in Astro Hosted. - You can now retrieve a Deployment’s Workload Identity when using
astro deployment inspect. - You can now specify the
--enforce-cicdflag withastro deployment createandastro deployment updateto enforce CI/CD on a given Deployment. - You can now manage Deployments as code on Astro Hosted.
May 19, 2023
Bug fixes
- Fixed an issue where you could not create a Deployment on a standard Hosted cluster.
May 18, 2023
New commands to manage Airflow resources on Deployments
Use the following new Astro CLI commands to manage your Airflow variables, pools, connections, on Astro Deployments. These commands are particularly useful for automating the creation of new Deployments based on old ones, as you can now transfer all Airflow resources from a source Deployment to a target Deployment:astro deployment connection listastro deployment connection createastro deployment connection updateastro deployment connection copyastro deployment airflow-variable listastro deployment airflow-variable createastro deployment airflow-variable updateastro deployment airflow-variable copyastro deployment pool listastro deployment pool createastro deployment pool updateastro deployment pool copy
Additional improvements
- You can now use the
--argsflag to specify pytest arguments to run withastro dev pytest. For example, you can runastro dev pytest --args "-p pytest_cov"to plugin thepytest_covplugin with your pyests. - You can now use Organization API tokens to automate Astro CLI tokens. Specify the Organization API token using the environment variable
ASTRO_API_TOKENin the environment where you run the Astro CLI. - You can now create a custom Docker/Podman compose file for your Astro project with the command
astro dev object export --compose. After you modify the file, you can use it to start your project withastro dev start --compose-file <compose-file-location>. - You can now set
postgres.repositoryandpostgres.tagwithastro config set. You can use these configurations to customize the postgres database used in your local Airflow environments. - The Astro CLI now automatically trims quotation marks from the beginning and end of environment variables being pushed to Astro.
- The command
astro user invitehas been deprecated.
Bug fixes
- Fixed an issue were
astro deployment variable create/updatewas not producing error when it failed to create an environment variable. - Fixed an issue were Podman deploys were failing if the user didn’t have the Docker CLI installed.
April 20, 2023
Bug fixes
- Fixed an issue where
astro workspace user listdidn’t work when using a Workspace API token.
April 19, 2023
New commands to manage Astro Workspaces
You can now manage Astro Workspaces from the Astro CLI using the following new commands:To automate Workspace management, you can run these commands using a Workspace API token.April 11, 2023
Bug fixes
- Fixed an issue where the CLI added the
dagsfolder to.dockerignorewhenever an image build was interrupted, resulting in dags not being deployed on the next image build.
March 30, 2023
New flag --clean-output for Deployment commands
You can now use the -—clean-output flag with the following commands to make sure that any output comes only from the command itself.astro deployment inspectastro deployment createastro deployment update
New environment variable ASTRO_HOME
The new environment variable ASTRO_HOME allows you to change the directory where the Astro CLI stores its global config file. This can be useful in environments where the CLI doesn’t have access to the HOME directory.Additional improvements
- The command
astro loginwon’t ask for email input in the command line anymore. You can now provide your email address in the browser when you log in.
March 22, 2023
Bug fixes
- Fixed an issue where you couldn’t authenticate to the Astro from the Astro CLI using single sign-on (SSO).
March 22, 2023
Additional improvements
-
You can now expose your local Airflow webserver and postgres database to all networks you’re connected to using the following command:
- When you trigger a dag deploy to Astro, the CLI now includes the name of the dag bundle version that it pushed. You can use this name to verify that your Deployment uses the correct version of your dags after a deploy.
-
If you add the environment variable
ASTRO_API_TOKEN=<workspace-api-token>to your environment, the Astro CLI will use the specified Workspace API token to perform Workspace and Deployment actions without requiring you to log in. -
You can now disable
astro runcommands and excludeastro-run-dagfrom any images built by the CLI using the following command: -
In new Astro projects,
requirements.txtnow includes a commented list of the pre-installed provider packages on Astro Runtime.
Bug fixes
- Fixed an issue where the default dag integrity test would sometimes generate an error for valid uses of
os.getenv(key,default). - Fixed bugs in the default Astro project dags.
February 27, 2023
Support for Podman
You can now configure the Astro CLI to run Airflow locally and deploy to Astro using Podman. Podman is an alternative container engine to Docker that doesn’t require root access and orchestrates containers without using a centralized daemon.To configure the Astro CLI to use Podman, see Run the Astro CLI using Podman.Bug fixes
- Fixed an issue where you couldn’t run Astro CLI commands with a Deployment API key if you logged out of your personal account using
astro logout. - Fixed an issue where you couldn’t set the minimum worker count for a worker queue to zero.
- Fixed an issue where running
astro deploywould not return an error when you specified a Deployment name that didn’t exist. - Fixed an issue where you could not update a Deployment with a file using a Deployment API key.
February 2, 2023
New commands to manage Astro users
To help you manage users in your Organization, Astro CLI 1.10.0 includes the following new commands:astro organization user invite: Invite a new user to your Astronomer Organization.astro organization user update: Update a user’s Organization role.astro organization user list: List all users in your Organization.astro workspace user add: Add a user to a Workspace.astro workspace user update: Update a user’s role in a Workspace.astro workspace user list: List all users in a Workspace.astro workspace user remove: Remove a user from a Workspace.
astro organization user invite is identical to the existing astro user invite command. astro user invite will be deprecated in a future release.astro organization and astro workspace command references.