What’s the best way to use commanders?

I feel like I don’t know what I’m doing when it comes to army commanders, so I don’t take full advantage.