Move all layouts to another installation
The layouts of one installation on a second one with the same content.
Life cycle: Migrate, example 1 of 34. Worked out on the Fit & Healthy site of Exponential 6.0.15+.
Contents
In the Layouts editor
- The same with Layouts > Export and Layouts > Import in the administration.
On the command line
- On the source:
./console exp:layouts export --all --output=all-layouts.zip. ./console exp:layouts import all-layouts.zip --dry-runand read the States (new,identical,changed,conflicting).- Run it again without
--dry-run, with the--strategyyou chose and--publishif the result should be live at once. - Nothing to clear by hand: since explayouts_core 1.0.10 an import with
--publishpurges the page cache itself.
Which to choose
The console for repeatable moves; the administration for a one-off.
Check
exp:layouts liston the target shows the layouts, mappings and links.
Related pages
- Export and import layouts
- Migrate examples, every page
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
Become an Exponential Partner
Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.