apotheke

Installation

Install apotheke and pick between the Prettier plugin and the CLI.

Install apotheke as a dev dependency:

pnpm add -D apotheke
# npm install -D apotheke
# bun add -D apotheke
# yarn add -D apotheke

Prettier is an optional peer dependency — you only need it if you use the plugin.

Requirements

  • Node.js 18 or later
  • Prettier 3 or later for the plugin. Prettier 2 has no async preprocess hook; see the v2 fallback.

Which entry point?

Both read the same apotheke.config.mjs, so switching later costs nothing.

Next

You still need a config — apotheke ships no default groups and errors if it cannot find one. Continue to the quick start.

On this page