create-aphex
v0.2.0
Published
Scaffold a new Aphex CMS project — invoked via `pnpm create aphex`
Downloads
96
Maintainers
Readme
create-aphex
Scaffold a new Aphex CMS project. Copies the base template into a new
directory and rewrites workspace:* deps to their published versions.
Usage
pnpm create aphex my-app
# or
npm create aphex my-app
# or
npx create-aphex my-appYou can also invoke it through the aphx
CLI, which shells out to this package:
pnpm aphex createWhat it does
- Prompts for a project name (or takes the positional argument).
- Prompts for a template (currently only
base). - Copies
templates/base/into the new directory. - Rewrites
workspace:*dependencies to their published versions. - Writes a default
.envwith working dev defaults.
Templates
base
A full-featured Aphex CMS application:
- Better Auth (email + password, email verification, password reset)
- Organizations with parent/child hierarchy
- PostgreSQL + Drizzle ORM with RLS policies
- S3-compatible storage (
@aphexcms/storage-s3) with local-filesystem fallback - Mailpit in dev / Resend in prod
- Auto-generated GraphQL API
- In-memory cache adapter for published-perspective reads
After scaffolding
cd my-app
pnpm install
pnpm db:start # Start PostgreSQL + Mailpit via Docker
pnpm db:push # Apply the schema (dev)
pnpm dev # http://localhost:5173Open http://localhost:5173/admin — the first user to sign up becomes the
super admin.
