Getting started
What wpcore does, how to install it in one line, and your first shared WordPress core with a site linked to it.
On this page
wpcore keeps each WordPress version once, in a shared cores folder, and links
your local sites to it. A site's wp-admin, wp-includes and root PHP files
become links to its version's core; its wp-content and wp-config.php stay
its own. Switching a site to another version takes a second, and no site
carries its own copy of WordPress.
Install
curl -fsSL https://webtimeless.cloud/wpcore-manager.sh | sudo bash
It downloads the newest release's wpcore, checks it against its
wpcore.sha256, puts it in /usr/local/bin in one step, and offers to run
wpcore init. To read the installer first, or pick a release:
curl -fsSLO https://github.com/PetyoLazarov92/wp-core-manager/releases/latest/download/install.sh
bash install.sh --dry-run # download and check, install nothing
sudo bash install.sh --version v1.0.0 # a given release
It needs Bash 4 or newer, wget and tar, and systemctl. WP-CLI and PHP are only
needed for wpcore wp.
First steps
sudo wpcore init # /etc/wpcore.conf, folders, tab completion
sudo wpcore add 6.8 # download WordPress 6.8 into the cores
sudo wpcore link local.spellbook.test 6.8 # link a site to it
wpcore status # cores and sites at a glance
Later, move the site to another version:
sudo wpcore add 6.7
sudo wpcore switch local.spellbook.test 6.7
wpcore wp local.spellbook.test core update-db
A site is any folder in /var/www whose name starts with local.; both come
from the configuration.
With devmagic-panel
devmagic-panel uses the same /etc/wpcore.conf and cores
folder, so a core added in the terminal shows up in the panel, and the other
way round. Its WP Cores page lists each core with its status on
WordPress.org and the sites on it.