Every option
Every flag of the devmagic command: basic options, actions, WordPress and database settings, git repos and cleanup.
On this page
devmagic --help prints the same list. A domain (-d) goes with every
action.
Basic options
| Flag |
What it does |
-h, --help |
Print the help and exit |
-v, --verbose |
Print debug output |
-cwiz, --config-wizard |
Set the defaults in /etc/default/devmagic.conf, see Configuration |
-wiz, --wizard |
Make a site step by step |
-d, --domain |
The site's domain, like local.spellbook.test |
Actions
| Flag |
What it does |
-ci, --cert-issuer |
Make the local certificate authority, once per machine |
-c, --cert |
Make the site's certificate, signed by the local CA |
-cf, --config |
Write and enable the site's Apache SSL vhost and add its hosts line |
-w, --web |
Make the database and install WordPress |
WordPress and the database
| Flag |
What it does |
Default |
-dbn, --dbname |
The database name |
|
-dbu, --dbuser |
The database user |
root |
-dbp, --dbpass |
The database password |
from the config |
-dbpr, --dbprefix |
The table prefix |
wp_ |
-dbf, --dbfile |
A .sql dump to import instead of a fresh install |
|
-t, --title |
The site's title |
|
A password given with -dbp is visible to other users of the machine in the
process list while devmagic runs. Set it once with --config-wizard instead.
Git
| Flag |
What it does |
-cr, --content-repo |
Clone a repo into the site's folder |
-pr, --projects |
Clone more repos, each into its own folder: url{to}folder, several joined with {and} |
Cleanup
| Flag |
What it does |
-rm, --remove |
Remove a site: its folder, database, vhost, hosts line and certificate |
-rmwiz, --remove-wizard |
Remove a site step by step |
Removal is final, see Remove and uninstall.