Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Meilisearch CLI

$ meili Official Med Risk
Meilisearch · Workspace & SaaS · MIT · macos / linux / windows

Meilisearch 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.

FCRS-1.0 Score
84 /100
Good
Medium Confidence
Zero-Friction Install
brew install meilisearch/tap/meili
CLI vs MCP Decision CLI Preferred vs MCP

Runtime schema introspection via meili schema and compact --json search/index commands eliminate the need for a separate MCP server.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 22 / 25

Supports --json (and MEILI_JSON=1) plus meili schema JSON introspection for every command, though it lacks --dry-run.

  • --json / MEILI_JSON=1 compact output
  • meili schema --command ... self-describing JSON schema
Trust & Safety 19 / 25

Named --project profiles isolate local vs cloud instances, though document/index mutations execute immediately without --dry-run.

  • Explicit --project profile targeting
  • No --dry-run on document/index writes
Setup & Portability 13 / 15

Installable via Homebrew tap (meilisearch/tap/meili), npm/npx (@meilisearch/cli), shell script, and GitHub releases.

  • Homebrew tap, npm @meilisearch/cli, and standalone releases
Utility & Efficiency 13 / 15

Unified management for local and cloud Meilisearch indexes, documents, search queries, and teleport migration.

  • Covers config, index, document, search, and schema
Maintenance & Lineage 9 / 10

Official Meilisearch repository (meilisearch/cli) actively maintained under MIT.

  • Official meilisearch/cli repository
Docs & Verifiability 8 / 10

Self-documenting meili schema plus GitHub README and --help.

  • meili schema command and official GitHub docs

Security, Auth & Guardrails

Auth Modes
Config File Env API Key OAuth Browser
Credential Storage

Stores project URLs and API keys in ~/.config/meili/config.json, configurable headlessly via meili config set --project ... --project-url ... --project-api-key ....

Side Effects
Read-Only Local Write Remote Write Destructive
Cost & Quotas

MIT open-source CLI; self-hosted Meilisearch is free and Meilisearch Cloud includes a 14-day free trial.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Dump JSON schema for a command
meili schema --command "index list" --json

Introspects exact parameters and options for a CLI command as JSON without hitting remote servers.

Run a search query across an index
meili search --project local --index movies --q "matrix" --json

Queries a Meilisearch index and returns matching hits in compact JSON.

Controlled Writes & Previews

Register a local Meilisearch project config
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 schema command 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-run previews.
  • ! meili teleport and meili trial start launch interactive prompts/browser flows.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI