To have your cabinets looking like factory finish, you will need to do a few things:
First, the cabinets must be cleaned with a degreaser.
Second, sand all surfaces so the cabinets are scuffed up.
Third, wipe clean with a tack cloth.
Fourth, prime with a shellac primer.
Fifth, lightly sand with 220 or higher grit sandpaper and remove dust with tack cloths.
Sixth, apply two coats of cabinet-grade paint.
Seventh, sorry, I forgot to mention removing hardware. After the painting has dried for 24 hours, you can reinstall the hardware.
If you want your kitchen cabinets to have a factory finish, you will at least need to spray the doors and drawers.