Atlas provides a mongo shell connection prompt like this:
# 3.6+ mongo "mongodb+srv://cluster0-vcvyn.mongodb.net/test" --username <username> # 3.4 and earlier mongo "mongodb://cluster0-shard-00-00-vcvyn.mongodb.net:27017,cluster0-shard-00-01-vcvyn.mongodb.net:27017,cluster0-shard-00-02-vcvyn.mongodb.net:27017/test?replicaSet=Cluster0-shard-0" --ssl --authenticationDatabase admin --username <username> --password <password>
We'd like the tools to support both formats – detecting a URI on the command line without the --uri flag.
This work will need to address conflicts between the uri option and other parameters like db (see TOOLS-2037 for an example). One possibility could be to keep the legacy URI conflict warnings with the --uri flag (and perhaps deprecate it), but do something more user-friendly if a URI is provided on the command line without --uri (such as allow other command line options to take precedence).