lxc rebuild
Description: 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. Opt...

Hide navigation sidebar
Hide table of contents sidebar
Back to top
Toggle table of contents sidebar

# `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 [<remote>:]<image> [<remote>:]<instance> [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 - Command line client for LXD