Getting started
Run the Next.js starter and publish a page.
Before you start
Create a site in the account portal.
The starter targets Node.js 20.9+ and pnpm 10. You can adapt its configuration to another runtime or package manager.
Get site credentials
Open your site's Keys page. Copy the client ID and generate a client secret. The secret appears once.
Add http://localhost:4000/api/auth/stormy to the site's allowed redirect URLs for local admin sign-in.
Create the project
npx @stormycms/cli init --name my-stormy-site --target ./my-stormy-sitecd my-stormy-siteEnter credentials when prompted. The CLI writes .env files and installs dependencies.
Check configuration
Set the same STORMY_CMS_CLIENT_ID and STORMY_CMS_CLIENT_SECRET in both .env files. Keep these URLs:
| File | Variable | Value |
|---|---|---|
apps/site/.env | NEXT_PUBLIC_SITE_URL | http://localhost:3000 |
apps/admin/.env | NEXT_PUBLIC_SITE_URL | http://localhost:4000 |
apps/admin/.env | STORMY_CMS_REDIRECT_URL | http://localhost:4000/api/auth/stormy |
apps/admin/.env | NEXT_PUBLIC_PREVIEW_SITE_URL | http://localhost:3000 |
If you skipped the prompts, fill in the generated
.envfiles. Keep client secrets server-side and never commit.envfiles.
Media uploads need S3 storage. You can add it later using the media setup guide.
Start the apps
pnpm devOpen the admin at localhost:4000 and sign in with GitHub or Google.
- Under Layouts, create a layout if none exists. Add an Outlet and save it.
- Under Pages, choose New Page. Set the name to
Aboutand the slug toabout. - Add a Heading, edit its text, and choose Save.
- Open localhost:3000/about to see the page.
To add your own components, follow Components and schema.
Last updated: 10/20/26, 1:09 AM