Install Kirby CMS locally
How to install Kirby CMS on your local computer for development.
Get ready
- Have a local development environment.
- See the official Kirby quick start install guide as well.
If you already have a local Kirby project, continue with deployment options.
Kirby starter kits
Kirby has different starting points for new projects:
- Plainkit: with no content at all (used here).
- Starterkit: with demo content and a theme with templates.
- Composerkit: best for Git/Composer workflows. Adjust root path to
public.
Our instructions will use Plainkit. Composerkit is the future (we think).
A: Install Kirby locally with Composer (recommended)
# 1. Create a local Kirby project folder with Composer:
$ composer create-project getkirby/plainkit {{app-env-id}}
shell
B: Install Kirby locally without Composer
# Make a directory and move into it
$ mkdir {{app-env-id}} && cd {{app-env-id}}
# Get the plainkit
$ wget https://github.com/getkirby/plainkit/archive/main.zip
# Unzip the plainkit
$ unzip main.zip
# Move all contents from the folder one level up
$ mv plainkit-main/* .
# Remove artifacts
$ rm -rf main.zip plainkit-main
shell