# withRepl

- Module: [Aspire.Hosting.PostgreSQL](/reference/api/typescript/aspire.hosting.postgresql.md)
- Version: `17.0.0`
- Kind: `method`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)

Adds a REPL command that opens an authenticated PostgreSQL shell in the dashboard terminal dock.

## Definition

```typescript
interface PostgresServerResource {
  // ... omitted for brevity
  withRepl(): PostgresServerResource
}
```

## Returns

[PostgresServerResource](/reference/api/typescript/aspire.hosting.postgresql/postgresserverresource.md) `builder`

## Applies to

- [PostgresServerResource](/reference/api/typescript/aspire.hosting.postgresql/postgresserverresource.md)
