Algolia CLI
$ algolia Official Med RiskAlgolia 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.
brew install algolia Algolia CLI handles bulk record browsing, settings export/import, and index operations directly with fast -o json streaming.
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
Fast Go CLI with consistent -o json output, profile flags, and explicit credential flags for non-interactive runs.
-o jsonsupported acrossindices,objects,settings, andsearch- Accepts
ALGOLIA_APPLICATION_ID/ALGOLIA_ADMIN_API_KEYwithout prompts
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 clearandindices deleteare irreversible
Single static Go binary available via Homebrew, Scoop, go install, and GitHub releases.
brew install algoliaand cross-platform binaries
Covers search, object browsing, synonyms, rules, and settings import/export cleanly.
- Direct NDJSON/JSON streaming for index inspection and updates
Official Algolia repository (algolia/cli) actively maintained under MIT.
- Official Algolia GitHub organization
Well-structured Algolia CLI documentation and Cobra --help specs.
- Official docs at algolia.com/doc/tools/cli
Security, Auth & Guardrails
Stores profiles in ~/.config/algolia/ with OS keychain support, or reads ALGOLIA_APPLICATION_ID / ALGOLIA_ADMIN_API_KEY and --application-id / --admin-api-key.
CLI is free (MIT); Algolia includes a Build free tier with usage-based search/record pricing.
# 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
algolia indices list -o json
Lists all indices, record counts, and sizes in the active Algolia application.
algolia search my_index --query "laptop" -o json
Runs a read-only search query and returns structured JSON hits.
Controlled Writes & Previews
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 jsonoutput across search and management commands. - + Clean credential precedence (
ALGOLIA_APPLICATION_ID, flags, profile/keychain). - + First-class
settings get/importmakes 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-runflag on write commands.