> ## 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 logs

This command lets you access real-time logs for an [App](https://www.aptible.com/docs/core-concepts/apps/overview.md) or [Database](https://www.aptible.com/docs/core-concepts/managed-databases/managing-databases/overview.md).

# Synopsis

```
Usage:
  aptible logs [flags]

Flags:
      --app string           App handle
      --database string      Database handle
  -e, --env string           Environment handle (alias)
      --environment string   Environment handle
```

# Examples

## App logs

```shell theme={null}
aptible logs --app "$APP_HANDLE"
```

## Database logs

```shell theme={null}
aptible logs --database "$DATABASE_HANDLE"
```
