AD0-E724 · Question #22
A developer needs to manually trigger a full reindex of all indexers from the command line after a large data import. Which CLI command should be used?
The correct answer is A. 'bin/magento indexer:reindex'. bin/magento indexer:reindex is the correct command because it triggers a full reindex of all registered indexers in Magento 2, making it ideal after bulk data imports when the index is stale across the board. Option B (indexer:refresh) does not exist as a valid Magento CLI comman
Question
A developer needs to manually trigger a full reindex of all indexers from the command line after a large data import. Which CLI command should be used?
Options
- A'bin/magento indexer:reindex'
- B'bin/magento indexer:refresh'
- C'bin/magento indexer:run all'
- D'bin/magento indexer:update'
How the community answered
(34 responses)- A71% (24)
- B18% (6)
- C3% (1)
- D9% (3)
Explanation
bin/magento indexer:reindex is the correct command because it triggers a full reindex of all registered indexers in Magento 2, making it ideal after bulk data imports when the index is stale across the board. Option B (indexer:refresh) does not exist as a valid Magento CLI command. Option C (indexer:run all) is fabricated - while indexer:reindex can accept specific indexer IDs as arguments, there is no run subcommand. Option D (indexer:update) is similarly non-existent in the Magento CLI.
Memory tip: Think "R for Reindex, R for Real" - reindex is the real command. The others sound plausible but are invented. If you ever doubt it on the exam, recall that Magento CLI commands follow a noun:verb pattern, and reindex is the only valid verb here.
Topics
Community Discussion
No community discussion yet for this question.