cloud-init clean -r

Category: IaC & Automation

cloud-init clean -r

Reset state and reboot to reinitialize

Runs cloud-init clean and then reboots the machine immediately so initialization runs again on the next boot. Intended for imaging workflows, and the reboot interrupts anything running on the box. Related: cloud-init status.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.