(lxc_rebuild.md)= # `lxc rebuild` Rebuild instances ## Synopsis Description: Wipe the instance root disk and re-initialize. The original image is used to re-initialize the instance if a different image or --empty is not specified. ``` lxc rebuild [:] [:] [flags] ``` ## Options ``` --empty Rebuild as an empty instance -f, --force If an instance is running, stop it and then rebuild it ``` ## Options inherited from parent commands ``` --debug Show all debug messages --force-local Force using the local unix socket -h, --help Print help --project Override the source project -q, --quiet Don't show progress information --sub-commands Use with help or --help to view sub-commands -v, --verbose Show all information messages --version Print version number ``` ## SEE ALSO * [lxc](lxc.md) - Command line client for LXD