magento 2 reindex from admin code example Example 1: magento 2 reindex php bin/magento indexer:reindex Example 2: magento 2 reindex command line bin/magento indexer:reindex