Examples
Commands to start from: a fresh site, a copy of production from a dump and repos, several repos at once, the wizards.
On this page
A fresh site
devmagic -d local.spellbook.test -c -cf -w -dbn spellbook -t Spellbook
A copy of production
The site's repo cloned into its folder, its database from a dump:
devmagic -d local.spellbook.test -c -cf -w -dbn spellbook \
-dbf ~/dumps/spellbook.sql -cr git@github.com:spellbook/site.git
The dump keeps the production addresses. Replace them afterwards, as in Copy a production WordPress site to your machine:
cd /var/www/local.spellbook.test
wp search-replace 'https://spellbook.example' 'https://local.spellbook.test' --precise --skip-columns=guid
A theme and a plugin from their own repos
-pr takes url{to}folder, and several of them joined with {and}:
devmagic -d local.spellbook.test -c -cf -w -dbn spellbook \
-pr 'git@github.com:spellbook/theme.git{to}/var/www/local.spellbook.test/wp-content/themes{and}git@github.com:spellbook/plugin.git{to}/var/www/local.spellbook.test/wp-content/plugins'
Quote the value: { and } mean something to the shell.
A second site next to it
devmagic -d shop.localhost -c -cf -w -dbn shop -t Shop
The guided way
devmagic --wizard # make a site
devmagic --remove-wizard # remove one