Skip to main content
The Algolia CLI lets you work with Algolia’s APIs from your terminal. It’s great for interactive commands, scripts, and continuous integration workflows.

Before you begin

To interact with your Algolia resources, you’ll need a free Algolia account.

Install the Algolia CLI

You can install the CLI with your favorite package manager, or download binaries from the Releases page in the GitHub repository. The CLI runs on macOS, Linux, and Windows, on both AMD64 and ARM64 platforms.
If you have Node.js installed, you can run the CLI with npx — no installation required:
npx @algolia/cli --help
Or install it globally with npm:
npm install -g @algolia/cli

Run your first command

Explore the CLI by typing algolia. This lists the available commands. Add --help to any command to get more information about the command and its available options. For example, to list all indices in your Algolia application, run:
algolia indices list \
  --application-id ALGOLIA_APPLICATION_ID \
  --api-key ALGOLIA_API_KEY
Since this command makes a request to the Algolia Search API, you need to provide your Algolia credentials. You can find your application ID and API key in the Algolia dashboard.
To avoid entering your credentials every time, you can add profiles for each of your Algolia applications. For more information, see Authentication.

Next steps

Last modified on May 22, 2026