- Joined
- Jul 27, 2016
- Messages
- 184
- Points
- 18
Can you guys guide me to install WP-CLI to manage my wordpress blog on SSH? I heard that using WP-CLI will make my work with WordPress easier and faster, is that true?
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
php wp-cli.phar --info
chmod + x wp-cli.phar
mv wp-cli.phar /usr/local/bin/wp
wp cli update
wp --info
PHP binary:/usr/bin/php
PHP version:5.6.32
php.ini used:/etc/php.ini
WP-CLI root dir:phar://wp-cli.phar
WP-CLI vendor dir:phar://wp-cli.phar/vendor
WP_CLI phar path:/root
WP-CLI packages dir:
WP-CLI global config:
WP-CLI project config:
WP-CLI version:1.4.0
cd /home/example.com/public_html
wp plugin status --allow-root
cd /home/example.com/public_html
wget https://wordpress.org/latest.zip
unzip -q latest.zip
mv wordpress / * ./
rm -rf wordpress
rm -rf latest.zip
chown -R nginx:nginx /home/example.com/public_html/
wp core config --dbname = dataname --dbuser = username --dbpass = password --allow-root
wp core install --url = "http://example.com" --title = "website_name" --admin_user = "admin" --admin_password = "password" --admin_email = "[email protected]" allow-root
wp plugin status
wp plugin update --all
wp plugin bulletproof search
wp plugin install bulletproof-security
wp plugin activate bulletproof-security
wp plugin install bulletproof-security --activate
wp theme status
wp theme install theme_name --activate
wp core update
wp core update-db
wp db export> file_name.sql
wp user create yourname [email protected] --role=author