Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-2360

-p should prompt for password

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: mongorestore
    • Labels:
      None
    • Environment:
      Mac OS 10.14.6

      Currently the syntax to restore a database is

      ```

      mongorestore -h <someHost> -d <someDatabase> -u <someUser> -p <somePassword> <someDirectory>

      ```

      This exposes the password in the history. I suggest the syntax change to

      ```

      mongorestore -h <someHost> -d <someDatabase> -u <someUser> <someDirectory> -p

      ```

      so that the user is prompted to enter the password after this command is executed.

            Assignee:
            Unassigned Unassigned
            Reporter:
            soldi.day@gmail.com Matthew Day
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: