# withRepl

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

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

## Definition

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

## Returns

[ValkeyResource](/reference/api/typescript/aspire.hosting.valkey/valkeyresource.md) `builder`

## Applies to

- [ValkeyResource](/reference/api/typescript/aspire.hosting.valkey/valkeyresource.md)
