Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-1127

Translate CLI flags to Connection String parameters instead of driver flags

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.4.1
    • Affects Version/s: None
    • Component/s: CLI Module, Tech debt
    • Labels:
      None
    • 3
    • Not Needed
    • Iteration Xochimilco

      Currently, command line flags (e.g. --host, --port, --tls, etc.) are being translated to driver options by the mongosh CLI.

      We’ve made some good experiences with standardizing on connection string options as much as possible in the new Compass connection form, and doing the same in mongosh would clean up the code there and make it more consistent across devtools.

      It would also be helpful because mongosh displays the connection string that it uses, meaning that people who are used to the command line flag would get a connection string as output that they could easily paste into Compass/VSCode/their driver code/etc.

            Assignee:
            anna.henningsen@mongodb.com Anna Henningsen
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: