Quick Start
Know what you're doing and using a Unix-like system? Make sure you have all the prerequisites in place, then follow the steps below.
If you need more detailed instructions, we have in-depth explanations on setting up your local environment, base WordPress installation and plugins/themes.
Prerequisites
All setups require:
- PHP >= 8.3 (CLI)
- WP-CLI
- Node.js 18.x lts/hydrogen or above
- Composer ^2
- Bash
- cURL/Wget
- Forme Codegen ^3.0
For Valet: macOS and Valet (also requires PHP >= 8.3 as server)
For Docker: Docker Desktop (macOS/Linux/WSL)
For plugins/themes: Git, Git Cliff (optional)
Base Install With Valet
Set up a new MySQL database and make a note of the credentials
Change to your sites directory:
bash
cd ~/sites- Install and configure a new WordPress site (you'll be prompted for database credentials):
bash
forme base new hello-world- Change into the new site directory:
bash
cd hello-world- Add the Valet driver if you haven't already:
bash
cp utils/FormeServerValetDriver.php ~/.config/valet/Drivers/FormeServerValetDriver.php- Enable HTTPS:
bash
valet secure- Visit the site e.g.
https://hello-world.testand set up the admin user
Base Install With Docker
- Change to your sites directory:
bash
cd ~/sites- Install and configure a new WordPress site:
bash
forme base new hello-world- Change into the new site directory:
bash
cd hello-world- Initialise Docker configuration:
bash
forme ketch init- Launch Docker:
bash
forme ketch up- Visit the site at
http://localhostand set up the admin user
New Plugin / Theme
- Change to your repos directory:
bash
cd ~/repos- Create a new plugin or theme:
bash
# plugin
forme new plugin hello-world
# theme
forme new theme hello-world- Change to your base WordPress installation directory:
bash
cd ~/sites/hello-world- Symlink the repo into your base installation:
bash
# valet
forme base link ~/repos/hello-world-plugin/
# docker
forme ketch link ~/repos/hello-world-theme/
forme ketch restart- Update PHP dependencies:
bash
composer update