I just measured the pin spacing on 2 different types of NEMA 17 stepper motor, and both are definitely 2mm pitch.
I am surprised there is nobody selling stepper motor cables with connector on one end on ebay.
I am surprised there is nobody selling stepper motor cables with connector on one end on ebay.