Edit the "autoexec_a1.cfg" file in the "/heroes of might and magic v/profiles/" directory and add the following line to the end of the file:
setvar dev_console_password = schwinge-des-todes
Then, press ~ to display the console window and enter the following codes at the console window and press Enter:
All spells: add_all_spells
Add skills, perks or abilities: add_skill [name] or [ID]
Add indicated experience: add_exp [number]
Sets current gold amount: add_gold [number]
Show resources of indicated player: show_player_money [player number]
Shows detailed movement point stats: show_hero_mp
Win mission: @Win()
Lose mission: @Loose()