Correlation between Mongod Config File Options and command line options

Hi all, is there a way to correlate the command line options with the YAML options? For example, port in the command line options doesn’t mention being part of the YAML net options.

Just curious as I was trying to find a similar option for the --auth command line option and was thinking knowing how to look up one while knowing the other would be helpful.

Thank you!

Here you go:

And if you have 4.2, you can automatically convert command line options to YAML:

1 Like

Hi @Jason_79826,

I hope you found the post #2 made by @007_jb helpful. If you have any other query then please feel free to get back to us.

Happy Learning :slight_smile:

Shubham Ranjan
Curriculum Support Engineer

I definitely did and already used it a few times! Probably won’t be the last. I marked the post as the solution.

Thank you!