Skip to main content

Tips rápidos

Actualiza todo

Funcionara si no hay problemas derivados por php obsoleto, algun plugin desastre, etc,

Estructura de cPanel

$ cd public_html && wp core update && wp plugin upgrade --all && wp theme upgrade --all

Normal

$ wp core update && wp plugin upgrade --all && wp theme upgrade --all

Usuarios

Crear un administrador de Wordpress con wp cli

# wp user create
$ wp user create castris [email protected] --role=administrator
Success: Created user 12.
Password: 0VV3gUlNMECOPIESQUENOVALGOGFO4ht

Borrar un usuario de Wordpress con wp-cli

# wp user delete
$ wp user delete 12
--reassign parameter not passed. All associated posts will be deleted. Proceed? [y/n] y
Success: Removed user 12 from http://www.dunlopillo.es.

Actualizar WP

Como root si la aplicación esta en el sistema de forma global

$ sudo wp cli update
You have version 2.5.0-alpha-3f4c34b. Would you like to update to 2.5.0? [y/n] Y
Downloading from https://github.com/wp-cli/wp-cli/releases/download/v2.5.0/wp-cli-2.5.0.phar...
md5 hash verified: 20ab512b12d766a2d2f51cc8f5c43411
New version works. Proceeding to replace.
Success: Updated WP-CLI to 2.5.0.