Skip to main content
The Algolia CLI lets you work with Algolia’s APIs from your terminal. Use it for interactive commands, scripts, and continuous integration (CI) workflows.

Install the Algolia CLI

Install the CLI with a package manager, or download a binary from the Releases page of 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, which doesn’t require installation:
To install it globally with npm, run:

Create a new account

To sign in to an existing account, see Sign in. To create a new account from the CLI, run:
This opens the Algolia sign-up page in your browser. After you create your account, the CLI signs you in and creates your first application. To name the application and choose its region, add --app-name and --region. To print the sign-up URL and not open a browser, add --no-browser. For example, use this flag when an agent runs the CLI.

Sign in

To sign in to an existing account, run:
After you sign in, select an application. If you don’t have an application, the CLI creates one. To print the sign-in URL and not open a browser, add --no-browser. To check that you’re signed in, run algolia auth status. For details and other ways to authenticate, such as in CI, see Sign in with OAuth.

Switch applications

The CLI runs commands against your current application. To see your current application, run algolia application current. To switch to a different one, run:

Index and search your first records

Save these records in a file named movies.ndjson. Each line is one record:
movies.ndjson
Import the records into an index named MOVIES. The --wait flag makes the command wait until indexing is complete:
Then search the index:

Explore other commands

To list the available commands, run algolia. To get more information about a command and its flags, add --help to the command. For example, to list all indices in your current application, run:

Next steps

Last modified on November 20, 2026