Private betav0.1.0
Docs
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

NameDescription
packages...Required
One or more Format packages. Shorthands map to the scope: zip means @format.dev/zip.

Details

<packages...>

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