Magento 2 reindex all in command line
To get list of indexer in Magento 2
php bin/magento indexer:info
Indexer status check in Magento 2
php bin/magento indexer:status
Only one indexer please follow following command:
php bin/magento indexer:reindex indexer_name
php bin/magento indexer:status catalog_category_product
Magento 2 reindex all with following command
php bin/magento indexer:reindex
If fill memory limit, try with following command
php bin/magento -dmemory_limit=2G magento indexer:reindex