-
Create a database on server
-
Download Worpdress
wp core download --allow-root
- Configure Wordpress
wp core config --dbname=[dbName] --dbuser=[dbUser] --dbpass=[dbPass] --dbhost=[dbHost] --allow-root
- Install Wordpress
wp core install --url=[siteUrl] --title=[siteTitle] --admin_user=[adminUser] --admin_password=[adminPass] --admin_email=[adminEmail] --allow-root
- Change dir to theme folder
wp-content/themes
and clone theme from github
git clone [email protected]:rocketsciencebv/[repo].git
- Activate theme
wp theme activate [themeName] --allow-root
- Delete standard themes
wp theme delete twentyfifteen twentysixteen twentyseventeen --allow-root
- Delete standard plugins
wp plugin delete akismet hello --allow-root
- Install Plugins
wp plugin install --activate wordpress-importer --allow-root
git clone [email protected]:rocketsciencebv/advanced-custom-fields-pro.git ../../plugins/advanced-custom-fields-pro
git clone [email protected]:rocketsciencebv/advanced-custom-fields-wpcli.git ../../plugins/advanced-custom-fields-wpcli
wp plugin activate advanced-custom-fields-pro advanced-custom-fields-wpcli --allow-root
wp user create --path=${wpdir} editor [email protected] --user_pass=editor --role=editor