-> **Download Magmi Module (Place At root or root/pub path of your Magento)** https://github.com/macopedia/magmi-m2 -> **Go to path in URL** http://www.HostName.com/magmi/web/magmi.php UserName: magmi Password: magmi >Upon installing Magmi and visiting the web panel for the first time, the default username and password are both set to "magmi". Once successfully logged in, configure Magmi with the Magento database credentials (under Configure Global Parameters) and then save the settings. Afterwards, one can simply use their Magento administrative (backend) credentials to login to Magmi. -> **create file at /var/www/html/magentoRoot/magmi/conf/magmi.ini** if magmi at magentoRoot OR -> **create file at /var/www/html/magentoRoot/pub/magmi/conf/magmi.ini** if magmi at magentoRoot/pub **magmi.ini** [DATABASE] dbname="magento database name" host="magento database host" port = "3306" user=database user resource = "default_setup" unix_socket = password="database password" table_prefix= [MAGENTO] basedir="/var/www/html/magentoRoot" [GLOBAL] ;---- Uncomment the following line to have a custom import report step, defaults to 100 step = "1" multiselect_sep = "," dirmask = "755" filemask = "644" >**Add into your module registration.php file** -> If Your magmi folder on magentoRoot/pub then **registration.php** <?php require_once BP . "/pub/magmi/plugins/inc/magmi_datasource.php"; require_once BP . "/pub/magmi/integration/inc/productimport_datapump.php"; \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::MODULE, 'VendoreName_ModuleName', __DIR__ ); -> If your magmi folder On Magento Root Then **registration.php** <?php require_once BP . "/magmi/plugins/inc/magmi_datasource.php"; require_once BP . "/magmi/integration/inc/productimport_datapump.php"; \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::MODULE, 'VendoreName_ModuleName', __DIR__ ); >Try This Code For Import Product $productImport = new \Magmi_ProductImport_DataPump(); $item = "product field array"; $productImport->beginImportSession("default", "xcreate");// Mode: xcreate, create, update $run = $productImport->ingest($item); $productImport->endImportSession();