chezmoi init <source>

Setup the source directory and update the destination directory to match the target state

Arguments

NameDescription
source

Options

NameDescription
--apply, -aUpdate destination directory
--branch <branch>Set initial branch to checkout
--config-path, -C <config-path>Path to write generated config file
--dataInclude existing template data
--depth, -d <depth>Create a shallow clone
--exclude, -x <exclude>Exclude entry types
--guess-repo-url, -gGuess the repo URL
--one-shotRun in one-shot mode
--promptForce prompt*Once template functions to prompt
--purge, -pPurge config and source directories after running
--purge-binary, -PPurge chezmoi binary after running
--sshUse ssh instead of https when guessing dotfile repo URL