Skip to content

mpf both (command-line utility)

Starts both the MPF game engine and the MPF Media Controller from a single command window with a single command. This is effectively the same as running both mpf game and mpf mc, but more convenient.

When you run mpf both, the console log outputs from both MPF and MPF-MC will be mingled together in the console window. However the log files in your machine's /logs folder will still be separate.

Also note that you can pass command line options to both MPF and MPF-MC after the "both" command, like this:

mpf both -v

mpf both -v -V -b

etc. See the mc and mpf mc (command-line utility) command references for a full list of command line options.

To quit MPF and MPF-MC, either click in the graphical pop up window (so it has focus) and hit Esc, or click in the console window and press CTRL+C.


If you use the -l (lowercase L) option to specify a log file along with mpf both, you need to use -l to specify the MPF log and -L to specify the MC log.

Something missing or wrong? You can fix it!

This website is edited by people like you! Is something wrong or missing? Is something out of date, or can you explain it better?

Please help us! You can fix it yourself and be an official "open source" contributor!

It's easy! See our Beginner's guide to editing the docs.

Page navigation via the keyboard: < >

You can navigate this site via the keyboard. There are two modes:

General navigation, when search is not focused:

  • F , S , / : open search dialog
  • P , , : go to previous page
  • N , . : go to next page

While using the search function:

  • Down , Up : select next / previous result
  • Esc , Tab : close search
  • Enter : go to highlighted page in the results