Skip to content
On this page

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 base install instructions below, and create your plugin or theme.

If you need more detailed instructions or if you're using Windows, we have in-depth explanations on setting up your local environment, base WordPress installation and plugins/themes.

Base Install With Valet

Prerequisites

Steps

  1. Set up a new MySQL database and make a note of the credentials

  2. Change to your sites directory. For example:

bash
cd ~/sites
  1. Install and configure a new WordPress site directory (you'll be prompted for the database credentials):
bash
forme base new hello-world
  1. Change into this new site directory:
bash
cd hello-world
  1. Add the Valet driver if you haven't already:
bash
cp utils/FormeServerValetDriver.php ~/.config/valet/Drivers/FormeServerValetDriver.php
  1. Enable HTTPS:
bash
valet secure
  1. Visit the site e.g. https://hello-world.test in your browser and set up the admin user

Base Install With Docker

Prerequisites

Steps

  1. Change to your sites directory. For example:
bash
cd ~/sites
  1. Install and configure a new WordPress site directory:
bash
forme base new hello-world
  1. Change into this new site directory:
bash
cd hello-world
  1. Initialise Docker configuration:
bash
forme ketch init
  1. Launch Docker:
bash
forme ketch up
  1. Visit the site at http://localhost in your browser and set up the admin user

New Plugin / Theme

Prerequisites

Steps

  1. Change to your repos directory. For example:
bash
cd ~/repos`
  1. Create a new plugin or theme:
bash
# plugin
forme new plugin hello-world

# theme
forme new theme hello-world
  1. Change to the base WordPress installation directory:
bash
cd ~/sites/hello-world
  1. Symlink the repo directory into your base WordPress site installation or link it to your Docker:
bash
# base installation e.g. valet
forme base link ~/repos/hello-world-plugin/

# docker
forme ketch link ~/repos/hello-world-theme/
# you might also need to restart container if it's running
forme ketch restart
  1. Update PHP dependencies:
bash
composer update

Made by Moussa Clarke @ Sanders Web Works with ❤️