First time here? Check out the FAQ!
answered Apr 2 '0
dumpcap man page with the -k options
https://www.wireshark.org/docs/wsug_html_chunked/AppToolsdumpcap.html