diff --git a/docs/setup/installation.md b/docs/setup/installation.md index a79433a..4a46b8d 100644 --- a/docs/setup/installation.md +++ b/docs/setup/installation.md @@ -6,7 +6,23 @@ order: 20 --- # Installation -SummerCMS is a Go module. An application requires it, lists its plugins in a `summer.yaml` manifest and builds everything into one binary with the `summer` CLI. This page installs the tool, then builds and runs `examples/hello`, the small reference application in the framework repository. +SummerCMS is a Go module. An application requires it, lists its plugins in a `summer.yaml` manifest and builds everything into one binary with the `summer` CLI. This page starts with the one-command path that creates a new application, then walks through the manual path: installing the tool from a framework checkout and building the small reference application that ships with it. + +## Create an application with one command + +```sh +curl -fsSL https://summercms.io/new | bash -s -- demo +``` + +The script checks for Go 1.27 and Docker, fetches the framework at its latest release tag into `./summercms`, installs the `summer` CLI and runs `summer new demo`, which writes a ready-to-run application to `sm-demo-app`. Start its database, then build, migrate and serve it: + +```sh +cd sm-demo-app +docker compose up -d --wait +summer build +summer migrate +summer serve +``` ## Requirements