Created either via spawn eggs with the command "/give @s spawn_egg 1 51" or with the command "/summon npc". Players in Creative ...
The first thing you'll need to do when messing around with Minecraft Java Edition commands is open the title's official launcher.