While Bannerlord doesn't provide a command console for entering codes, there's a dev console that can be activated by using mods.
Ctrl + X: Give XP to currently selected troop type.Ctrl + Shift + H: On party screen, add 10 troops to currently selected troop type.