// guide
Install dprint
Install using one of the methods below.
-
Shell (Mac, Linux, FreeBSD, WSL, Termux):
curl -fsSL https://dprint.dev/install.sh | sh -
Powershell (Windows):
iwr https://dprint.dev/install.ps1 -useb | iex -
npm:
# globally npm install -g dprint # or for your project npm install dprint npx dprint help -
Scoop (Windows):
scoop install dprint -
Homebrew (Mac):
brew install dprint -
Cargo (builds and installs the cargo package from source):
# this will be slower since it builds from the source cargo install --locked dprint -
python/uv via https://github.com/trim21/dprint-py:
uv add dprint-py uv run dprint help -
mise:
# globally mise use dprint --global # or for your project mise use dprint mise x dprint -- dprint help -
proto (via its community plugin):
# globally proto install dprint --pin global # or for your project proto install dprint --pin -
asdf plugin-add dprint https://github.com/asdf-community/asdf-dprint asdf install dprint latest -
Install with any AUR helper, for example:
paru -S dprintor binaries
paru -S dprint-bin
For binaries and source, see the GitHub releases.
Editor Extensions
- Visual Studio Code
- IntelliJ - Thanks to the developers at Canva
- Neovim with nvim-lspconfig
- The
dprint lspsubcommand provides code formatting over the language server protocol. This can be used to format in other editors such as Neovim, Helix, and Zed. See Language Server.
Next step: Setup