You can create simple product programmatically using InstallData by using the below InstallData script.

Ref: http://magento.stackexchange.com/questions/166739/magento-2-how-to-create-simple-product-by-upgradeschema

Enjoy Magento 2! Enjoy Magewallet!!

Mahendra Paladiya
Mahendra is a Web Developer whose passions includes web development, technical blog writing, and database management. His passion for web development pushed him into learning how to handle different platforms like Core PHP, Magento, Prestashop, WordPress, CodeIgniter, CakePHP and Oracle.