How can we configure Auto Discovery in redis cluster?

How the auto discovery can be configured in Redis Cluster? Is there any config file which needs to be updated or is there any CLI command for this?
And also is there any document available which shows the configuration of auto discovery?