brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: wp core download with skip-content fetches WordPress without the default themes

WordPress
~/tips/tip-wordpress-core-download-skip-content

wp core download --skip-content --locale=nl_NL

Downloads a clean WordPress core in the language you want, without bundled themes and plugins.

A fresh WordPress download comes with Hello Dolly, Akismet and three default themes. For a site that has its own theme, I’d rather not have them.

mkdir site && cd site
wp core download --skip-content --locale=nl_NL

This gets the latest release in Dutch, minus the default themes and plugins. Leave out --locale for English. --version=6.8.3 pins an exact release, and --version=nightly gets the development build. --path downloads into another folder instead of the current one.

After that the usual steps follow: wp config create for the config file and wp core install for the database tables. Then install the theme you actually want.

With no theme at all, WordPress has nothing to show visitors and the dashboard complains about a missing theme. So don’t skip the step where you add one. Also, wp core download refuses to overwrite an existing install. That is a good thing. --force exists, but it replaces core files, and I would not use it on a folder I have not backed up.

Further reading: wp core download

More WordPress tips wp user application-password create anna backup-script --porcelain define( 'MEDIA_TRASH', true ); wp cli check-update wp theme delete --all wp media image-size All WordPress tips (85) All topics

Link