Skip to content

Artisan CLI Tools

Six commands. Everything you need to manage and monitor your indexes from the terminal.

See the state of all your indexes at a glance:

Terminal window
php artisan lens:status
ElasticLens Status

Drill into a specific index:

Terminal window
php artisan lens:health User
ElasticLens Health

Delete the existing index, run the migration, and rebuild all records:

Terminal window
php artisan lens:migrate User
ElasticLens Migrate

Generate a new Index Model:

Terminal window
php artisan lens:make Profile
ElasticLens Make

Bulk build (or rebuild) an index:

Terminal window
php artisan lens:build Profile
ElasticLens Build

View build errors for a specific model, paginated with full error details:

Terminal window
php artisan lens:errors User
php artisan lens:errors User --per-page=20

Shows each failed build record with the error message, details, source, and timestamp. Results are paginated with a prompt to view the next batch.