Meilisearch CLI
$ meili Official Med RiskMeilisearch CLI (meili) manages both self-hosted Meilisearch instances and Meilisearch Cloud projects, indexes, documents, and search queries. Built with AI agent interoperability in mind, it supports --json (or MEILI_JSON=1) and a meili schema command that dumps JSON schemas for every command.
brew install meilisearch/tap/meili Runtime schema introspection via meili schema and compact --json search/index commands eliminate the need for a separate MCP server.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports --json (and MEILI_JSON=1) plus meili schema JSON introspection for every command, though it lacks --dry-run.
--json/MEILI_JSON=1compact outputmeili schema --command ...self-describing JSON schema
Named --project profiles isolate local vs cloud instances, though document/index mutations execute immediately without --dry-run.
- Explicit
--projectprofile targeting - No
--dry-runon document/index writes
Installable via Homebrew tap (meilisearch/tap/meili), npm/npx (@meilisearch/cli), shell script, and GitHub releases.
- Homebrew tap, npm
@meilisearch/cli, and standalone releases
Unified management for local and cloud Meilisearch indexes, documents, search queries, and teleport migration.
- Covers
config,index,document,search, andschema
Official Meilisearch repository (meilisearch/cli) actively maintained under MIT.
- Official
meilisearch/clirepository
Self-documenting meili schema plus GitHub README and --help.
meili schemacommand and official GitHub docs
Security, Auth & Guardrails
Stores project URLs and API keys in ~/.config/meili/config.json, configurable headlessly via meili config set --project ... --project-url ... --project-api-key ....
MIT open-source CLI; self-hosted Meilisearch is free and Meilisearch Cloud includes a 14-day free trial.
# Meilisearch CLI (`meili`) Agent Rules - Set `MEILI_JSON=1` or pass `--json` on every invocation and specify `--project` explicitly. - Use `meili schema` to inspect command arguments before running mutations; never invoke `meili teleport` headlessly.
Agent-Ready Command Recipes
Safe Read-Only Queries
meili schema --command "index list" --json
Introspects exact parameters and options for a CLI command as JSON without hitting remote servers.
meili search --project local --index movies --q "matrix" --json
Queries a Meilisearch index and returns matching hits in compact JSON.
Controlled Writes & Previews
meili config set --project local --project-url http://localhost:7700 --project-api-key $MEILI_MASTER_KEY
Saves a named local project profile non-interactively in ~/.config/meili/config.json.
Strengths for Agents
- + Unique
meili schemacommand exports machine-readable JSON schemas for agent self-discovery. - + Supports both self-hosted instances and Meilisearch Cloud with
MEILI_JSON=1.
Caveats & Pitfalls
- ! Document and index mutations lack
--dry-runpreviews. - !
meili teleportandmeili trial startlaunch interactive prompts/browser flows.