# PostgresServerResource.withRepl

- Module: [Aspire.Hosting.PostgreSQL](/reference/api/typescript/aspire.hosting.postgresql.md)
- Defined on: [PostgresServerResource](/reference/api/typescript/aspire.hosting.postgresql/postgresserverresource.md)
- Version: `13.6.0`
- Kind: `method`

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

## Definition

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

## Signature

```typescript
withRepl(): PostgresServerResource
```

## Returns

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

## Defined on

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