Private betav0.3.0
DocsSign in
Format developer documentation

format add

Install a Format package at your project's pinned release.

Installs Format packages at the release your project is pinned to, in the right dependency sections.

npx format add @format.dev/react @format.dev/client @format.dev/zip
pnpm dlx format add @format.dev/react @format.dev/client @format.dev/zip
yarn dlx format add @format.dev/react @format.dev/client @format.dev/zip
bun x format add @format.dev/react @format.dev/client @format.dev/zip

We highly recommend using format add and format remove to manage Format packages, as it keeps all package versions inline with your defined version in your format.config.json.

For brevity, you can leave off the @format.dev/ prefix when working with the CLI.

# Equivalent

npx format add @format.dev/react

npx format add react

Reference

packages...RequiredOne or more Format packages. Shorthands map to the scope: zip means @format.dev/zip.
Type
argument
Was this page helpful?