create-olmo-front
v0.1.1
Published
Scaffold a new Olmo Next.js frontend from olmo-front-template, with @olmocms/front preinstalled.
Maintainers
Readme
create-olmo-front
Scaffold a new Olmo Next.js frontend from
olmo-front-template, with
@olmocms/front preinstalled.
Usage
npx create-olmo-front my-site
# or
npm create olmo-front@latest my-siteThen:
cd my-site
# edit .env.local — set OLMO_TOKEN, OLMO_FORM_TOKEN, API URLs
npm run devWhat it does
- Downloads the template from the public GitLab repo (via
giget— no auth needed). - Sets your project name in
package.json. - Seeds a gitignored
.env.localfrom.env.example. Staging & production env vars belong in the Vercel dashboard, not the repo. git init+ first commit.npm install(pulls@olmocms/frontand the rest).
Options
| Flag | Description |
| --- | --- |
| --ref <branch\|tag> | Template ref to fetch (default: main) |
| --no-install | Skip installing dependencies |
| --no-git | Skip git init + first commit |
| -h, --help | Show help |
Releasing
The template repo is the single source of truth — this CLI just fetches it.
Pin a template tag for reproducible scaffolds by publishing a tag on
olmo-front-template and passing --ref vX.Y.Z (or bump DEFAULT_REF in
index.js).
