To turn on the cheat console in Jedi Knight II: Jedi Outcast, hold down the Shift key and press the tilde (~) key. A console window will open.
Type helpusobi 1 and press Enter to enable cheats, then enter whichever cheat code you want to use. For a wide variety of codes, you can browse a dedicated cheats listing such as the one on GameFAQs.
Once cheats are active, experiment with the different commands to customize your playthrough.