# `exit` *code*

`exit` stops template execution and causes chezmoi to exit with *code*. `exit`
is only available when generating the initial config file

!!! warning

    `exit` is not available when chezmoi is built with Go 1.16 or earlier.
