Skip to main content

astro dev bash

Run a bash command in a locally running Docker container for an Airflow component. This command is equivalent to running docker exec -it <container-id>.

Usage

In a locally running Astro project, run:

astro dev bash

By default, the command execs into the scheduler container and prompts you to run a bash command. To run a command in a different container, you have to specify a different container flag.

Options

OptionDescriptionPossible Values
-p, --postgresRun a bash command in the metadata database containerNone
-s,--schedulerRun a bash command in the scheduler containerNone
-t, --triggererRun a bash command in the triggerer containerNone
-w, --webserverRun a bash command in the webserver containerNone

Examples

$ astro dev bash --webserver
$ ls -al
# View all files in the webserver container

$ astro dev bash --scheduler
$ pip-freeze | grep pymongo
# Check the version of the pymongo package running in the scheduler