install wordpres cli
1 | curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar |
info: –allow-root not recommended to use in prod environtment
initialize wordpress
1 | wpcli core download --version=5.5 --locale=de_DE --skip-content |
wp clear all default pages posts widgets plugins
1 | wpcli post delete $(wpcli post list --post_type='post' --format=ids --allow-root) --force --allow-root |
disable gutenberg
1 | wp plugin install disable-gutenberg --activateV |
install theme from local
1 | wpcli theme install onepress.2.3.0.zip --allow-root --activate |