What's on this page
Quick start
This guide walks you through creating your first Cecil website, previewing it locally, then building and deploying it.
Create a website
You can create a new website from scratch in a few minutes.
Follow the steps below to create your first Cecil website.
Prerequisites
- PHP 8.3+
- Terminal (a basic understanding of the terminal)
- Text editor, such as VS Code and/or Typora
Step by step
-
Download Cecil
Download
cecil.pharfrom your terminal:curl -LO https://cecil.app/cecil.pharYou can also download Cecil manually, or install it globally with a package manager, then run
cecilinstead ofphp cecil.phar:Homebrew
brew install cecilapp/tap/cecilScoop
scoop install https://cecil.app/scoop/cecil.jsonSee Installation for other methods.
-
Create a new site
Create a directory for the website (e.g.
<mywebsite>), putcecil.pharin it, then run thenew:sitecommand:php cecil.phar new:site -
Add a page
Run the
new:pagecommand:php cecil.phar new:pageNow you can edit the newly created page with your Markdown editor:
<mywebsite>/pages/<new-page>.md. -
Check the preview
Run the following command to create a preview of the website:
php cecil.phar serveThen navigate to
http://localhost:8000. -
Build and deploy
When you are satisfied with the result, you can generate the website in order to deploy it to the Web.
Run the following command to build the website:
php cecil.phar buildYou can now copy the content of the
_sitedirectory to a Web server 🎉