Skip to Main Content

MongoByte MongoDB Logo

Welcome to the new MongoDB Feedback Portal!

{Improvement: "Your idea"}
We’ve upgraded our system to better capture and act on your feedback.
Your feedback is meaningful and helps us build better products.

Status Completed
Categories Compass
Created by Guest
Created on Sep 24, 2019

I wish to accelerate connection to a deployment (favorite) by specifying it on the command line

I'd like just to know if it's possible to start Compass connecting to a specific MongoDB passing a name of my favorites by args from command line
  • ADMIN RESPONSE
    Aug 8, 2025
    This functionality became available in Compass 1.34.0.
  • Attach files
  • Guest
    Aug 15, 2022
    Yeah. Either a name of a favourite or the raw connection details (preferably with the option that it prompts for password if one not supplied). I have some scripts that create SSH tunnels (with 2FA, etc.) and for other DBs I can then launch a client using the local port my script randomly chose. Would like to for Mongo also
  • Guest
    Aug 10, 2022
    Passing the connection data from arguments in command line is a must. Because it is not possible, we cannot implement Compass from CyberArk.
  • Guest
    Oct 5, 2020
    This would be an awesome feature to have, esp when integrating with Privileged Identity management and bastion host solutions where MongoDB credentials are routinely rotated