# Install dprint with Homebrew, apk, MacPorts, Nix, pacman, scoop, winget

Pluggable and configurable code formatting platform written in Rust. Version 0.55.2 via Homebrew; verified 2026-07-14. Also installable with nix: nix profile install nixpkgs#dprint.

## Install

```sh
sudo av install brew:dprint
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install dprint
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install dprint
```

  Evidence: MacPorts ports tree: devel/dprint/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add dprint
```

  Evidence: Alpine Linux edge package indexes: dprint from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#dprint
```

  Evidence: nixpkgs package indexes: pkgs/by-name/dp/dprint/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S dprint
```

  Evidence: Arch Linux sync databases: dprint from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

### Windows

- Scoop (92%):

```sh
scoop install main/dprint
```

  Evidence: Scoop official bucket manifest trees: bucket/dprint.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id dprint.dprint -e
```

  Evidence: Windows Package Manager source index: dprint.dprint from https://cdn.winget.microsoft.com/cache/source.msix

## Package facts

- **Package key:** brew:dprint
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/dprint>
- **Version:** 0.55.2
- **Source summary:** Pluggable and configurable code formatting platform written in Rust
- **Homepage:** <https://dprint.dev/>
- **Repository:** <https://github.com/dprint/dprint>
- **Upstream docs:** <https://dprint.dev/>
- **License:** MIT
- **Source archive:** <https://github.com/dprint/dprint/archive/refs/tags/0.55.2.tar.gz>
- **Last updated:** 2026-07-14T21:16:30Z
- **Generated:** 2026-08-04T22:13:35+00:00

## Executables

- dprint (cli)
- dprint (alias)

## Dependencies

- xz

## Build dependencies

- pkgconf
- rust

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-08-04
- Package-manager version: 0.55.2
- Package-manager updated: 2026-07-14
- Local data: ok
- Upstream repository: https://github.com/dprint/dprint
- Upstream latest detected: 0.55.2 (current)
## Project history and usage

dprint is a Rust-based, pluggable code-formatting platform that provides one CLI and configuration model for multiple language formatters.

### Project history

The dprint/dprint repository was created in June 2019. The project framed itself as a monorepo for a configurable formatting platform rather than a single-language formatter, with a core CLI and separate plugins for TypeScript/JavaScript, JSON, Markdown, TOML, Dockerfile, Python, PHP, C#/VB, Prettier compatibility, and other ecosystems.

### Adoption history

dprint grew in the same package-manager niche as other fast Rust developer tools: a single static-ish CLI distributed through crates.io, npm, Homebrew, Scoop, winget, and Linux package managers. Its official README badges and Homebrew metadata show it as both a Rust crate and a cross-platform command-line formatter.

### How it is used

A typical workflow is to initialize a dprint config, add formatting plugins, run dprint fmt locally, and run dprint check in continuous integration. The plugin system uses sandboxed Wasm plugins where possible and process plugins where a formatter cannot be packaged as a single Wasm file.

### Why package nerds care

dprint matters to package nerds because it treats formatting as a plugin distribution problem: the core executable, plugin registry, checksums, Wasm runtime choice, editor integration, and package-manager installs are all part of the user experience.

### Timeline

- 2019: dprint/dprint was created on GitHub.
- 2020s: the project expanded from core formatting CLI into a plugin catalog covering many languages and wrapper plugins.
- 2026: releases such as 0.55.x show continuing active maintenance.

### Related projects

- Prettier
- Biome
- Ruff
- rustfmt
- dprint-plugin-typescript
- dprint-plugin-markdown

### Sources

- <https://github.com/dprint/dprint>
- <https://raw.githubusercontent.com/dprint/dprint/main/README.md>
- <https://dprint.dev/overview>
- <https://dprint.dev/plugins/>
- <https://api.github.com/repos/dprint/dprint>
- <https://api.github.com/repos/dprint/dprint/releases?per_page=5>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Linux: ~/.config/dprint/dprint.jsonc, $XDG_CONFIG_HOME/dprint/dprint.jsonc
- macOS: ~/.config/dprint/dprint.jsonc, $XDG_CONFIG_HOME/dprint/dprint.jsonc, ~/Library/Application Support/dprint/dprint.jsonc
- Unix: dprint.json, dprint.jsonc, .dprint.json, .dprint.jsonc
- Windows: %APPDATA%\dprint\dprint.jsonc
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** dprint
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Nix - dprint: normalized package name match | nixpkgs package indexes: pkgs/by-name/dp/dprint/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - dprint - 0.51.1-r0: normalized package name match | Alpine Linux edge package indexes: dprint from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Pluggable and configurable code formatting platform written in Rust | https://dprint.dev/
- apk - dprint-bash-completion - 0.51.1-r0: normalized package name match | Alpine Linux edge package indexes: dprint-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Bash completions for dprint | https://dprint.dev/
- apk - dprint-doc - 0.51.1-r0: normalized package name match | Alpine Linux edge package indexes: dprint-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Pluggable and configurable code formatting platform written in Rust (documentation) | https://dprint.dev/
- apk - dprint-fish-completion - 0.51.1-r0: normalized package name match | Alpine Linux edge package indexes: dprint-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Fish completions for dprint | https://dprint.dev/
- apk - dprint-zsh-completion - 0.51.1-r0: normalized package name match | Alpine Linux edge package indexes: dprint-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Zsh completions for dprint | https://dprint.dev/
- pacman - dprint - 0.55.2-1: normalized package name match | Arch Linux sync databases: dprint from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Pluggable and configurable code formatting platform | https://github.com/dprint/dprint
- MacPorts - dprint: normalized package name match | MacPorts ports tree: devel/dprint/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/dprint: normalized package name match | Scoop official bucket manifest trees: bucket/dprint.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - dprint.dprint: normalized package name match | Windows Package Manager source index: dprint.dprint from https://cdn.winget.microsoft.com/cache/source.msix


## Related links

- [Terminal utility packages](https://pkg.so/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://pkg.so/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [xz](https://pkg.so/brew/xz/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/brew/pkgconf/) - Build dependency declared by Homebrew.
- [rust](https://pkg.so/brew/rust/) - Build dependency declared by Homebrew.
- [oxfmt](https://pkg.so/brew/oxfmt/) - Shares pkgdb curated category or tags: cli, developer-tools, formatters, rust.
- [air](https://pkg.so/brew/air/) - Shares pkgdb curated category or tags: cli, developer-tools, formatters, rust.
- [dfmt](https://pkg.so/brew/dfmt/) - Shares pkgdb curated category or tags: cli, code-formatter, developer-tools, formatters.
- [sleek](https://pkg.so/brew/sleek/) - Shares pkgdb curated category or tags: cli, developer-tools, formatters, rust.
- [cbfmt](https://pkg.so/brew/cbfmt/) - Shares pkgdb curated category or tags: cli, developer-tools, formatters, rust.
- [shfmt](https://pkg.so/brew/shfmt/) - Shares pkgdb curated category or tags: cli, developer-tools, formatters.
- [buildifier](https://pkg.so/brew/buildifier/) - Shares pkgdb curated category or tags: cli, developer-tools, formatters.
- [astyle](https://pkg.so/brew/astyle/) - Shares pkgdb curated category or tags: cli, developer-tools, formatters.
- [dprint](https://pkg.so/npm/dprint/) - Same normalized package name appears in another local ecosystem. Shared terms: cli, code, configurable, developer, developer-tools.
- [dprint](https://pkg.so/npm/dprint/) - Same normalized package name in another local ecosystem.

## Combined YAML source

View the package source record on GitHub. [combined/dprint.yml](https://github.com/mxcl/pkgdb/blob/main/combined/dprint.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
