# WithRepl

- Module: [Aspire.Hosting.Redis](/reference/api/go/aspire.hosting.redis.md)
- Version: `17.0.0`
- Kind: `method`
- Defined on: [`RedisResource`](/reference/api/go/aspire.hosting.redis/redisresource.md)
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)

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

## Remarks

This command is opt-in and available only in run mode. Dashboard users who can execute resource commands
can run commands with the resource's configured credentials. Enable it only for trusted dashboard users,
especially when sharing the dashboard through a tunnel or remote development environment.

## Definition

```go
func (RedisResource) WithRepl() RedisResource
```

## Returns

[`RedisResource`](/reference/api/go/aspire.hosting.redis/redisresource.md) -- The resource builder for chaining.

Returns a handle; failures surface later via `Err()`.

## Applies to

- [`RedisResource`](/reference/api/go/aspire.hosting.redis/redisresource.md)
