Skip to content

dump [target...]

Dump the target state of targets. If no targets are specified, then the entire target state.

Common flags

-x, --exclude types

Exclude entries of type types, defaults to none.

-f, --format json|yaml

Set the output format, default to json.

-i, --include types

Only add entries of type types, defaults to all.

--init

Recreate config file from template.

-P, --parent-dirs

Also perform command on all parent directories of target.

-r, --recursive

Recurse into subdirectories, true by default. Can be disabled with --recursive=false.

Examples

$ chezmoi dump ~/.bashrc
$ chezmoi dump --format=yaml