LXC.REBUILD(1)
π LXD - Command line client(1) π
okay bestie, welcome to the lxc corner of the universe β this is the manual for the LXD command line client, and today we're hyperfixating on one specific little guy. buckle up, it's giving main character energy already β¨
πΈ NAME πΈ
lxc-rebuild β literally just rebuild instances. that's it. that's the whole vibe. π
π¦ SYNOPSIS π¦
lxc rebuild [:] [:] [flags]
no cap, that's the shape of it β you give it stuff, you give it more stuff, and then you sprinkle [flags] on top like glitter. β¨
π DESCRIPTION π
Description:
so here's the tea, bestie π« β this command wipes the instance root disk and re-initializes it. full glow-up, factory reset, the whole thing. your instance goes bye-bye and comes back fresh.
and here's the cute part: the original image is used to re-initialize the instance β but only if you didn't specify a different image or --empty. so by default it's like, "okay we're redoing you the same way you were done the first time" π
no surprises, iykyk.
Note (read this one, fr fr): the--projectflag sets the project for both the image remote and the instance remote. it's doing double duty, an icon π - If the image remote is a public remote (e.g.simplestreams) then this project is ignored by the image remote. it literally doesn't care. π - If the image remote is another LXD server, specify the source project for the image remote with--projectand the instance remote with--target-project(if it's different from--project). split the duties, everyone stays happy π«Ά
β¨ OPTIONS β¨
--empty[=false]β rebuild as an empty instance. no image, no leftovers, just vibes and emptiness. default isfalse, so by default you're not doing this π-f,--force[=false]β if an instance is running, stop it and then rebuild it. we're not asking permission, we're taking the wheel π₯ default isfalse--target-project=""β the project containing the instance (if different from--project). default is""π
π OPTIONS INHERITED FROM PARENT COMMANDS π
these aren't even this command's flags, they're inherited from the parent β nepo babies, but make it useful π
--debug[=false]β show all debug messages. every last one. π defaultfalse--force-local[=false]β force using the local unix socket. defaultfalse-h,--help[=false]β print help. your bestie when you're lost π«Ά defaultfalse--project=""β override the source project. default""-q,--quiet[=false]β don't show progress information. peaceful. silent. serene. π§ defaultfalse--sub-commands[=false]β use withhelpor--helpto view sub-commands. defaultfalse-v,--verbose[=false]β show all information messages. the opposite of quiet, obsessed. defaultfalse--version[=false]β print version number. know your roots β defaultfalse
π SEE ALSO π
lxc(1)β the mothership πΈ
π HISTORY π
22-Aug-2026 β Auto generated by spf13/cobra
yeah, it's auto-generated, it said so itself, no shame in it π
and that's the whole page, bestie! literally every flag, every default, every warning, all accounted for π now go forth and rebuild responsibly β and remember, wiping a disk is forever, so maybe double-check before you hit enter π
kisses, and good luck out there β¨
this lil masterpiece was Auto generated by spf13/cobra π β dated Aug 2026 β and yes, it still belongs to the LXD - Command line client(1) family. slay. π
π¦ where this page comes from
- opensuse-leap 16.0: lxd 5.21.6-bp160.1.1 Β· AGPL-3.0-only AND Apache-2.0
- opensuse-leap 16.0: lxd 5.21.6-bp160.1.1 Β· AGPL-3.0-only AND Apache-2.0
- opensuse-leap 16.0: lxd 5.21.6-bp160.1.1 Β· AGPL-3.0-only AND Apache-2.0
- opensuse-leap 16.0: lxd 5.21.6-bp160.1.1 Β· AGPL-3.0-only AND Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms