Artisan CLI Tools
Six commands. Everything you need to manage and monitor your indexes from the terminal.
1. Status Command
Section titled “1. Status Command”See the state of all your indexes at a glance:
php artisan lens:status
2. Health Command
Section titled “2. Health Command”Drill into a specific index:
php artisan lens:health User
3. Migrate Command
Section titled “3. Migrate Command”Delete the existing index, run the migration, and rebuild all records:
php artisan lens:migrate User
4. Make Command
Section titled “4. Make Command”Generate a new Index Model:
php artisan lens:make Profile
5. Build Command
Section titled “5. Build Command”Bulk build (or rebuild) an index:
php artisan lens:build Profile
6. Errors Command
Section titled “6. Errors Command”View build errors for a specific model, paginated with full error details:
php artisan lens:errors Userphp artisan lens:errors User --per-page=20Shows each failed build record with the error message, details, source, and timestamp. Results are paginated with a prompt to view the next batch.