@techstream/quark-create-app
v1.8.0
Published
Scaffold a new Quark project with sensible defaults for full-stack JavaScript development.
Readme
@techstream/quark-create-app CLI
Scaffold a new Quark project with sensible defaults for full-stack JavaScript development.
Installation
npx @techstream/quark-create-app@latest my-awesome-appThe CLI scaffolds a complete project structure with:
- Next.js web application
- Prisma database schema and migrations
- BullMQ job queues
- Docker Compose setup (PostgreSQL, Redis, Mailpit)
- JavaScript monorepo with
pnpmworkspaces
Quick Setup
cd my-awesome-app
docker compose up -d
pnpm db:migrate
pnpm devCommands
# Create a new project
npx @techstream/quark-create-app@latest my-awesome-app
# Update Quark core in an existing project
npx @techstream/quark-create-app update
# Check for updates without applying
npx @techstream/quark-create-app update --checkAliases:
quark-create-appcreate-quark-appquark-update
Usage with Flags
The CLI supports non-interactive mode with custom options for automation and CI/CD workflows.
Non-Interactive Mode
Skip all interactive prompts and use defaults:
# Create project without prompts
npx @techstream/quark-create-app my-app --no-promptsCustom Features
Specify which optional packages to include (default: ui,jobs):
# Only include UI package
npx @techstream/quark-create-app my-app --no-prompts --features ui
# Include both UI and Jobs
npx @techstream/quark-create-app my-app --no-prompts --features ui,jobs
# Minimal setup (no optional packages)
npx @techstream/quark-create-app my-app --no-prompts --features ""Skip Installation Steps
Create the project structure without running package installation:
# Create project but skip pnpm install
npx @techstream/quark-create-app my-app --no-prompts --skip-install
# Useful for CI/CD where you'll install dependencies separatelyDocker Cleanup
Control whether to remove Docker volumes from previous cleanup:
# Keep Docker working directories (useful in CI/CD)
npx @techstream/quark-create-app my-app --no-prompts --skip-dockerComplete Example: Full Automation
# Create, install, and setup everything automatically
npx @techstream/quark-create-app my-app \
--no-prompts \
--features ui,jobs \
&& cd my-app \
&& docker compose up -d \
&& pnpm db:migrate \
&& pnpm devCommon Tasks
- Update Quark packages:
quark-updateorpnpm update @techstream/quark-* - Check for updates:
quark-update --check - Configure environment: Edit
.envfile (see.env.example)
CLI Testing
# Lightweight template checks
pnpm test
# E2E scaffold simulation
pnpm test:e2e
# Full build verification (opt-in)
QUARK_CLI_BUILD_TEST=1 pnpm test:buildTroubleshooting
- pnpm install fails: Ensure
pnpmis installed and Node.js >= 22. - Prisma generate fails: Run
pnpm --filter db db:generateinside the project. - Docker ports conflict: The CLI auto-selects free ports. Check
.envfor assigned values. - Missing env vars: Copy
.env.exampleto.envand fill required values.
Support
For issues, questions, and discussions:
