Skip to content

Install

The latest version of chezmoi is 2.16.0.

One-line binary install

Install the correct binary for your operating system and architecture in ./bin with a single command:

sh -c "$(curl -fsLS chezmoi.io/get)"
sh -c "$(wget -qO- chezmoi.io/get)"
(irm -useb https://chezmoi.io/get.ps1) | powershell -c -

Hint

If you already have a dotfiles repo using chezmoi on GitHub at https://github.com/$GITHUB_USERNAME/dotfiles then you can install chezmoi and your dotfiles with the single command:

sh -c "$(curl -fsLS chezmoi.io/get)" -- init --apply $GITHUB_USERNAME

One-line package install

Install chezmoi with your package manager with a single command:

snap install chezmoi --classic
brew install chezmoi
asdf plugin add chezmoi && asdf install chezmoi 2.16.0
apk add chezmoi
pacman -S chezmoi
guix install chezmoi
nix-env -i chezmoi
xbps-install -S chezmoi
brew install chezmoi
port install chezmoi
nix-env -i chezmoi
asdf plugin add chezmoi && asdf install chezmoi 2.16.0
choco install chezmoi
scoop install chezmoi
pkg install chezmoi
pkg install application/chezmoi

Download a pre-built Linux package

Download a package for your distribution and architecture.

Download a pre-built binary

Download an archive for your operating system and architecture containing a pre-built binary and shell completions.

Install from source

Download, build, and install chezmoi for your system with Go 1.17 or later:

$ git clone https://github.com/twpayne/chezmoi.git
$ cd chezmoi
$ make install
Back to top