16 lines
364 B
Bash
Executable File
16 lines
364 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Set your MeiliSearch API key
|
|
API_KEY="YoUrV3ry-S3cur3-aP1k3Y"
|
|
|
|
# Set your MeiliSearch instance URL
|
|
MEILISEARCH_URL="http://127.0.0.1:7700"
|
|
|
|
# Set the index name
|
|
INDEX_NAME="products"
|
|
|
|
# Get index settings using cURL
|
|
curl "$MEILISEARCH_URL/indexes/$INDEX_NAME/settings" \
|
|
-H "Content-Type: application/json" \
|
|
-H "Authorization: Bearer $API_KEY"
|