The generated API clients are a work in progress, you can also find our stable clients on the Algolia documentation.

Skip to main content

Specs commands

The Specs commands are used to build, lint and validate the REST API specs.

Usage

client defaults to all

The client parameter is variadic, you can pass multiple client name

bash
yarn docker build specs <client... | all>
bash
yarn docker build specs <client... | all>

Available options

OptionCommandDescription
verbose-v, --verboseMake the process verbose, display logs from third party tools
interactive-i, --interactiveOpen prompt to query parameters
skip cache-s, --skip-cacheSkip cache checking to force building specs

Build

Build all specs

bash
yarn docker build specs
bash
yarn docker build specs

Build specific spec

bash
yarn docker build specs recommend
bash
yarn docker build specs recommend

Build many spec

bash
yarn docker build specs recommend search ingestion
bash
yarn docker build specs recommend search ingestion

Lint

Fix specs

Automatically done when building specs

bash
yarn specs:fix
bash
yarn specs:fix

Check specs

If you just want to check the format (not override the files)

bash
yarn specs:lint <client>
yarn specs:lint search
bash
yarn specs:lint <client>
yarn specs:lint search