create-zyntera-app
v0.1.8
Published
Scaffold the Zyntera API blueprint (Express, Drizzle, Better Auth) with env setup
Maintainers
Readme
create-zyntera-app
Scaffolds the Zyntera API blueprint (or another repo via --template / ZYNTERA_TEMPLATE): project name, .env generation, optional npm install.
Usage
npm create zyntera-app@latest
npm create zyntera-app@latest my-apiPublish to npm
From this directory:
npm login
npm publish --access publicEnsure the package name create-zyntera-app is available on the npm scope you use.
With npm 10+, the bin path must look like bin/cli.js (no ./ prefix). Otherwise npm publish may warn that the bin entry was “corrected” or removed (npm/cli#7302).
Develop locally
Install dependencies once in this folder (degit and prompts are required — without node_modules, node bin/cli.js will fail):
npm install
node bin/cli.js ./test-outputOr link globally:
npm link
create-zyntera-app my-apiEnvironment
- Default template:
Chuuch/zyntera-api-blueprint(override withZYNTERA_TEMPLATEor--template owner/repo). - Branch: For GitHub
owner/repowithout#branch, the CLI tries: GitHub APIdefault_branch, then**git ls-remote** (works if REST API is blocked), thenmain/master. If degit still fails, it runs**git clone --depth 1** whengitis installed. **.degitignore:** After any successful clone, the CLI applies the template’s.degitignore(same paths degit would drop), so the git fallback does not leavecreate-zyntera-app/or other scaffold-only paths in the new project.- Private repos / rate limits: optional
GITHUB_TOKEN(Bearer) is sent toapi.github.comif set.
