Another good one is 'hidutil' which can remap any keys without additional software. It's handy for things like remapping CapsLock to anything, etc. For actual full keyboard layouts though I'd use Ukelele[0].
replies(1):
> It's handy for things like remapping CapsLock to anything
It's a built-in MacOS feature that you can find in the keyboard settings.