Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save saber13812002/6db4cc47f97bc3867e0daf850291dc2e to your computer and use it in GitHub Desktop.
Save saber13812002/6db4cc47f97bc3867e0daf850291dc2e to your computer and use it in GitHub Desktop.
cd install-directory/
#wget --no-check-certificate http://www.wordpress.org/latest.tar.gz
#tar xfz latest.tar.gz
#mv wordpress/* ./
#rmdir ./wordpress/
#rm -f latest.tar.gz
wp core download
#wp-config
#wp config create --dbname=testing_instance --dbuser=root --dbpass=securepswd --extra-php <<PHP
#define( 'WP_DEBUG', true );
#define( 'WP_DEBUG_LOG', true );
#PHP
wp config create --dbname=cli2 --dbuser=root
#create database:
wp db create
#wp db create --dbuser=root --dbpass=
#install
wp core install --url="http://localhost/cli" --title="Blog Title" --admin_user="admin" --admin_password="password" --admin_email="saber@test.com"
#plugin
# export all installed plugin with
# wp plugin list
#C:\Users\saber\Documents\html_public\cli>
wp plugin install wp-htaccess-editor --activate
wp plugin install couch --activate
wp plugin install indeed-membership-pro --activate
wp plugin install jwt-authentication-for-wp-rest-api --activate
wp plugin install my-custom-functions --activate
wp plugin install pods --activate
wp plugin install report-page --activate
wp plugin install ultimate-member --activate
wp plugin install wp-config-file-editor --activate
wp plugin install wp-htaccess-editor --activate
wp plugin install wp-log-viewer --activate
wp plugin install couch indeed-membership-pro jwt-authentication-for-wp-rest-api my-custom-functions pods report-page ultimate-member wp-config-file-editor wp-htaccess-editor wp-log-viewer --activate
#create pods fields
wp option update home https://localhost/cli
wp option update siteurl https://localhost/cli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment