Private betav0.1.0
Docs
Format developer documentation

format version

Check your current Format version.

Prints the version Format is currently running.

npx format version
pnpm dlx format version
yarn dlx format version
bun x format version
Format 1.0.2
3 installed Format packages: @format.dev/client, @format.dev/zip, @format.dev/react

If any installed package doesn't match the version listed in your configuration, the command lists what has drifted and exits with a non-zero code. You can use this as a CI step to keep mismatched versions from ever deploying.

deploy.yml
- run: npx format version

When you're online, the command also tells you if a newer Format release is available, and flags when that release may include breaking changes. format dev shows the same heads-up when you close the dev server.

Was this page helpful?