# withRepl

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

Adds a REPL command that opens an authenticated SQL Server shell with the configured client tools.

## Definition

```typescript
interface SqlServerServerResource {
  // ... omitted for brevity
  withRepl(configure?: (obj: SqlServerReplOptions) => Promise<void>): SqlServerServerResource
}
```

## Parameters

- `configure` (`(obj: SqlServerReplOptions) => Promise<void>`) `optional`

## Returns

[SqlServerServerResource](/reference/api/typescript/aspire.hosting.sqlserver/sqlserverserverresource.md) `builder`

## Applies to

- [SqlServerServerResource](/reference/api/typescript/aspire.hosting.sqlserver/sqlserverserverresource.md)
