magento 2 change indexer mode code example Example: set indexer mode command line magento 2 bin/magento indexer:set-mode {realtime|schedule} [indexer]