LeafCMS GitHub Install
Install

Choose your installation path.

Download the source and open the project directory. Choose one of the three methods below; do not run all three in sequence. Docker prepares PHP for you. CLI and web installation need PHP 8.4+ and Composer. These instructions assume a fresh installation on the default local port, 8000.

01 · Docker

Requires Docker and Compose. The first start installs dependencies, creates the SQLite database, and loads demo content. You do not need the CLI installer or web wizard afterward. Wait until the terminal reports that the server has started.

docker compose up --build

Site: http://127.0.0.1:8000/
Admin: http://127.0.0.1:8000/admin/login

Docker uses the bundled local demo account, with [email protected] as the admin email. Find its initial password in the source README under the local seed accounts. Do not expose the demo account publicly. For a new live site, the CLI or web wizard below lets you set your own administrator.

02 · Command line

Needs PHP 8.4 and Composer. SQLite is the default. For MySQL, set the database config first.

composer install
cp .env.example .env
php artisan key:generate
php artisan cms:install [email protected]
php artisan serve

Replace [email protected] with your own email. The installer prompts for an admin password of at least 8 characters and hides your input. Add --demo only if you want sample sections and entries. Sign in to the admin with the email and password you set.

On Windows copy the env file with copy .env.example .env. After the server starts, open the site and admin below.
Site: http://127.0.0.1:8000/
Admin: http://127.0.0.1:8000/admin/login

03 · Web wizard

Run the preparation commands below, then open /install. Skip the cms:install command from the previous method: you will configure the database and administrator in the web wizard.

composer install
cp .env.example .env
php artisan key:generate
php artisan serve

On Windows copy the env file with copy .env.example .env. Once the server starts, open: http://127.0.0.1:8000/install

Complete Environment check → Database → Site and administrator. Skipping demo content still creates the admin account you enter. After installation, open the addresses below and sign in with your chosen email and password.
Site: http://127.0.0.1:8000/
Admin: http://127.0.0.1:8000/admin/login

If port 8000 is busy, CLI and web installations can use php artisan serve --port=8001. For Docker, change the host port in docker-compose.yml. Use that port in the addresses above. For a live domain, point the web server at public and configure HTTPS using the deployment guide.

Local development only: rebuild demo data
php artisan migrate:fresh --seed
php artisan storage:link

This drops existing database tables and rebuilds demo data. Do not run on a site with content. Use only in a disposable local environment.

Image preview

Group @sanpang