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

# aptible db:execute

This command executes SQL against a [Database](/docs/core-concepts/managed-databases/managing-databases/overview).

# Synopsis

```
Usage:
  aptible db:execute HANDLE SQL_FILE [flags]

Flags:
  -e, --env string           Environment handle (alias)
      --environment string   Environment handle
      --on-error-stop        Stop on first error
```
