Install dprint

Install using one of the methods below.

  • Shell (Mac, Linux, WSL):

    curl -fsSL | sh
  • Windows Installer


  • Powershell (Windows):

    iwr -useb | iex
  • 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
  • npm:

    npm install dprint
    npx dprint help
    # or install globally
    npm install -g dprint
    dprint help
  • asdf-vm (asdf-dprint):

    asdf plugin-add dprint
    asdf install dprint latest

For binaries and source, see the GitHub releases.

Editor Extensions

Next step: Setup