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

Algolia CLI

$ algolia Official Med Risk
Algolia · Workspace & SaaS · MIT · macos / linux / windows

Algolia CLI (algolia) lets developers and agents query indices, browse records, inspect ranking settings, and manage rules or synonyms directly from the terminal. Its Go binary, -o json flag, and explicit --application-id / --admin-api-key overrides make it highly agent-friendly.

FCRS-1.0 Score
86 /100
Good
Medium Confidence
Zero-Friction Install
brew install algolia
CLI vs MCP Decision CLI Preferred vs MCP

Algolia CLI handles bulk record browsing, settings export/import, and index operations directly with fast -o json streaming.

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

Fast Go CLI with consistent -o json output, profile flags, and explicit credential flags for non-interactive runs.

  • -o json supported across indices, objects, settings, and search
  • Accepts ALGOLIA_APPLICATION_ID / ALGOLIA_ADMIN_API_KEY without prompts
Trust & Safety 20 / 25

Supports profile separation and read-only search/browse, though --admin-api-key grants destructive index clear/delete power.

  • Named profiles isolate dev vs prod Algolia apps
  • indices clear and indices delete are irreversible
Setup & Portability 14 / 15

Single static Go binary available via Homebrew, Scoop, go install, and GitHub releases.

  • brew install algolia and cross-platform binaries
Utility & Efficiency 13 / 15

Covers search, object browsing, synonyms, rules, and settings import/export cleanly.

  • Direct NDJSON/JSON streaming for index inspection and updates
Maintenance & Lineage 9 / 10

Official Algolia repository (algolia/cli) actively maintained under MIT.

  • Official Algolia GitHub organization
Docs & Verifiability 8 / 10

Well-structured Algolia CLI documentation and Cobra --help specs.

  • Official docs at algolia.com/doc/tools/cli

Security, Auth & Guardrails

Auth Modes
OAuth Browser Env API Key OS Keychain Config File
Credential Storage

Stores profiles in ~/.config/algolia/ with OS keychain support, or reads ALGOLIA_APPLICATION_ID / ALGOLIA_ADMIN_API_KEY and --application-id / --admin-api-key.

Side Effects
Read-Only Remote Write Destructive
Cost & Quotas

CLI is free (MIT); Algolia includes a Build free tier with usage-based search/record pricing.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Algolia CLI Agent Rules
- Use `-p staging` or explicit staging index names; NEVER run `algolia indices delete` or `algolia indices clear` autonomously.
- Always export current settings (`algolia settings get <index> -o json`) before importing changes.
- Prefer scoped API keys or `ALGOLIA_APPLICATION_ID` pointing to a dev app.

Agent-Ready Command Recipes

Safe Read-Only Queries

List Algolia indices as JSON
algolia indices list -o json

Lists all indices, record counts, and sizes in the active Algolia application.

Search an index from the terminal
algolia search my_index --query "laptop" -o json

Runs a read-only search query and returns structured JSON hits.

Controlled Writes & Previews

Import index settings from a JSON file
algolia settings import staging_index -F settings.json

Applies version-controlled ranking and faceting settings to a staging index.

Strengths for Agents

  • + Fast single Go binary with consistent -o json output across search and management commands.
  • + Clean credential precedence (ALGOLIA_APPLICATION_ID, flags, profile/keychain).
  • + First-class settings get/import makes index configuration versionable.

Caveats & Pitfalls

  • ! Requires an Admin API key (ALGOLIA_ADMIN_API_KEY) for many management operations, widening blast radius if misconfigured.
  • ! No global --dry-run flag on write commands.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI