Inventory Indexer Settings Stock/Source reindex strategy code example
Example 1: run partial indexing from command line magento 2
bin/magento cronmanager:runjob indexer_update_all_views
Example 2: magento 2 reindex command line
bin/magento indexer:reindex