Skip to main content

astro dev bash

info

The behavior and format of this command are the same for both Astro and Software.

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

Was this page helpful?

Sign up for Developer Updates

Get a summary of new Astro features once a month.

You can unsubscribe at any time.
By proceeding you agree to our Privacy Policy, our Website Terms and to receive emails from Astronomer.