I used cabinet screws (flanged head screws) for the lowers.
for the uppers, I used "landscaping screws" which were just a 3-1/2 x #14 cabinet screw with an oversized flange. may be overkill, however the wife has something like 900# of dishes and appliances in the over-sized cabinets