You must first have the terminal be acting in the directory where your game is located for that command to work. You can look up tutorials on how to change directory on a mac terminal.