Required Operating System: Linux, macOS, or Windows (WSL)
Windows users must setup Windows Subsystem for Linux to follow the steps tailored for Ubuntu. Instructions can be found here.
- Download and install Node.js
- Run
npm install
on this directory - Install Zsh for running scripts
- Ubuntu:
sudo apt install zsh
- macOS: Default shell for macOS 10.15+
- Ubuntu:
- Install
wp-now
globally to run Wordpress with WebAssemblynpm i -g @wp-now/wp-now
- Install
gettext
for language translation (optional)- Ubuntu:
sudo apt install gettext
- macOS:
brew install gettext
- Ubuntu:
- Install
mmg
to generate multilingual markdown files (optional)- Ubuntu:
pip3 install mmg --user
- Add local binaries to environment path:
export PATH="$HOME/.local/bin:$PATH"
- Add local binaries to environment path:
- macOS:
sudo pip3 install mmg
or follow Ubuntu instructions, find binary location and add to path.
- Ubuntu:
- Run any of the npm scripts to get started.
npm run
to list all scripts.
- Install dependencies
npm install
- Run the local server at localhost:* (WordPress Playground) using WebAssembly and SQLite
npm run dev:wasm
- (creates wp environment at ~/.wp-now)
- Run the local server at localhost:8080 (WordPress) and localhost:8081 (phpMyAdmin) using Docker
npm run dev:docker
- Watch & compile source code without hosting a WordPress server
npm run dev
- Build for production in the build/ directory
npm run build
- Build with development flag in the build/ directory
npm run build:dev
- Create a tag in the SVN repo for the current build
npm run svn:tag
- Reset SVN repo
npm run svn:reset
Run different versions of WordPress and PHP
wp-now start --path=build/ --wp=6.3 --php=8.0
Username: admin
Password: password
Username: wp_user
Password: wp_password