Install dprint

Install using one of the methods below.

  • Shell (Mac, Linux, WSL):

    curl -fsSL https://dprint.dev/install.sh | sh
    
  • Windows Installer

    Download

  • Powershell (Windows):

    iwr https://dprint.dev/install.ps1 -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 https://github.com/asdf-community/asdf-dprint
    asdf install dprint latest
    

For binaries and source, see the GitHub releases.

Editor Extensions

Next step: Setup