Activating this trainer:
Press F1 at main menu.
Listen for 'Trainer Activated'.
Press desired hotkey.All hotkeys can be changed on the trainer.
NumPad1: Change Wood By 500
NumPad2: Change Food By 500
NumPad3: Change Gold By 500
NumPad4: Change Stone By 500
NumPad5: Set Population Limit To Maximum
NumPad6: Instant Unit
NumPad7: Instant Build
NumPad8: Instant Research
NumPad9: Override Maximum Population Limit 4
Set Population Limit: Press hotkey to instantly raise your population limit to the maximum.
Override Maximum Population Limit: The maximum population limit is 50 for campaign or max 250 for custom games.
Using this cheat will allow you to go even further and build much more units.
Unlock more trainer options including updates from here - Age of Empires: Def Edition Trainer