Astro IDE Quickstart
Private Preview
This feature is in Private Preview.Get started with Astro IDE by entering a prompt, deploying to an ephemeral test Deployment, and testing your Airflow dag.
Prerequisites
- Workspace Operator permissions in an Astro Workspace.
Workspace Author permissions let you create and edit projects with the Astro IDE, but you need Workspace Operator permissions to start an ephemeral test Deployment.
Log in and create a project
- Log in to the Astro UI and select a Workspace.
- Click Astro IDE in the menu. If you are the first person in your Workspace to use the Astro IDE, the Projects page is empty.
- On the main Astro IDE screen, you can find options to connect an existing project, Connect GitHub Project or Connect CLI Project. Or, you can enter a prompt in the text box describing what kind of pipeline you want to build. The Astro IDE then generates the project for you.
- This quickstart guides you through creating a new project from a prompt.
Prompt, review, and accept your first dag
- In the Astro IDE, enter the following prompt in the text box describing the Hello World dag you want to build. The more specific the prompt is, the better the agent performs. For this quickstart, enter:
The Astro IDE ephemeral test environment sets AIRFLOW__SCHEDULER__USE_JOB_SCHEDULE=false
by default. This means scheduled or downstream tasks do not run automatically. This setting enables the Test tab to give you direct, manual control over when tasks run, instead of relying on Airflow’s scheduler.
- The Astro IDE generates the code and display the proposed changes in the suggested changes panel.
- Review the changes, and iterate on them with the AI panel. Once you are satisfied with the changes, click the Accept button in the panel to approve the new dag.
Deploy and test
- After you accept a code change, click Start Test Deployment to test your changes. This deploys the generated code to an ephemeral test Deployment that allows you to run tasks and view logs.
AI can make mistakes, and the generated code can sometimes throw an import error. If you have an import error, the hello_world_dag
doesn’t appear in the Test tab, and the IDE lists the error in the Import Errors of the Test Output pane. To fix the error, paste the error message into the prompt box, so the IDE can suggest edits. Review the suggested changes, accept them, and click Sync to Test to update the Deployment.
- Open the Test tab and select hello_world_dag from the dag options.
- Click Run Task to execute the dag.
- Confirm the task ran successfully by checking the Task Logs.
You can also view your ephemeral test Deployment in the Airflow UI by clicking Open Airflow from the toolbar menu.