This article explains how to add a command line parameter to enable cheats for PC games on Windows, Mac, and other desktop operating systems.
Windows Command Line Guide – 1 – Introduction to the Command Prompt
A command line parameter can be used to enable or disable certain features of a game when the program starts. The most commonly used command line parameter for video games is -console.
For many PC games, this command enables the console where additional cheats can be entered. In other games, the cheat console is available by default, so there is no need to edit command line parameters.
While this method may seem cumbersome at first, it is much safer than editing game files to enable cheats.