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:
https://docs.mongodb.com/manual/reference/configuration-file-settings-command-line-options-mapping/

And if you have 4.2, you can automatically convert command line options to YAML:
https://docs.mongodb.com/manual/tutorial/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:

Thanks,
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!