From cc851636518966e98594347e967018ebe6bf0688 Mon Sep 17 00:00:00 2001 From: Youcef Mammar Date: Tue, 19 May 2026 22:49:51 +0200 Subject: [PATCH] docs(npm): lead with npx in README usage section Reorganize the npm package README so `npx @algolia/cli` is the primary install path, with `npm install -g` shown as a fallback. Split command snippets into a separate Examples section. --- npm/algolia/README.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/npm/algolia/README.md b/npm/algolia/README.md index d07393cd..b3a353e1 100644 --- a/npm/algolia/README.md +++ b/npm/algolia/README.md @@ -4,22 +4,24 @@ The official Algolia CLI lets you manage your Algolia resources — indices, rec > This package installs a prebuilt Go binary. The npm wrapper still requires Node.js to launch the installed command. -## Installation +## Usage + +Run without installing: ```sh -npm install -g @algolia/cli +npx @algolia/cli --help ``` -Or run without installing: +Or install globally: ```sh -npx @algolia/cli --help +npm install -g @algolia/cli +algolia --help ``` -## Usage +## Examples ```sh -algolia --help algolia search --index my-index --query "foo" algolia indices list algolia apikeys list