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