Last active
March 21, 2018 11:02
-
-
Save silversonicaxel/6ffdc0024d7819c00361 to your computer and use it in GitHub Desktop.
WORDPRESS #wordpress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//installation of wordpress client | |
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar | |
//check if it works | |
php wp-cli.phar --info | |
//setting permissions and scope (UNIX environment) | |
chmod +x wp-cli.phar | |
sudo mv wp-cli.phar /usr/local/bin/wp | |
// how to use on Windows | |
php wp-cli.phar [option] | |
// how to use on Unix | |
wp [option] | |
/** | |
* useful commands | |
*/ | |
// update the permalink structure | |
wp rewrite structure /%postname%/ | |
// add a user | |
wp user create [email protected] [email protected] --role=administrator --user_pass=password | |
// install update activate or deactivate plugin | |
wp plugin install wordpress-seo | |
wp plugin update wordpress-seo | |
wp plugin activate wordpress-seo | |
wp plugin deactivate wordpress-seo | |
//search and replace strings | |
wp search-replace "www.website.nl" "website.local" | |
// useful links | |
http://wp-cli.org/ | |
https://github.com/wp-cli/wp-cli/wiki/Alternative-Install-Methods |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment