> ## Documentation Index
> Fetch the complete documentation index at: https://astronomer.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# astro dev parse

<Info>The behavior and format of this command are the same for both Astro and Astro Private Cloud.</Info>

Parse the dags in a locally hosted Astro project to quickly check them for errors. Parse tests are defined in the `.astro/test_dag_integrity_default.py` file of your Astro project. For more information about testing dags locally, read [Test your Astro project locally](/docs/cli/v1.38/test-your-astro-project-locally).

## Usage

```bash wrap theme={null}
astro dev parse
```

## Options

| Option               | Description                                                                                                              | Possible Values                                                                                                                          |
| -------------------- | ------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------- |
| `--build-secrets`    | Run `docker build --secret` to mount a secret value to your Docker image.                                                | `id=<your-secret-id>, src=<path-to-secret> .` See [Docker documentation](https://docs.docker.com/build/building/secrets/#secret-mounts). |
| `-e`, `--env`        | The filepath to your environment variables. (The default is `.env`)                                                      | Any valid filepath within your Astro project                                                                                             |
| `-i`, `--image-name` | The name of a pre-built custom Docker image to use with your project. The image must be available on your local machine. | A valid name for a pre-built Docker image based on Astro Runtime                                                                         |

## Examples

```bash wrap theme={null}
# Parse dags
astro dev parse

# Specify alternative environment variables
astro dev parse --env=myAlternativeEnvFile.env
```

## Related commands

* [`astro dev pytest`](/docs/cli/v1.38/astro-dev-pytest)
* [`astro dev start`](/docs/cli/v1.38/astro-dev-start)
* [`astro deploy`](/docs/cli/v1.38/astro-deploy)
