@cellajs/create-cella
v0.2.0
Published
Cella is a TypeScript template to create web apps with sync and offline capabilities.
Readme
@cellajs/create-cella
CLI tool to scaffold a new Cella project from the template.
Overview
This CLI creates a new Cella project by downloading the latest template, setting up your development environment, and configuring git with upstream tracking for future syncs.
Usage
pnpm create @cellajs/cella my-appRunning without arguments starts interactive mode, prompting for:
- Project name – Directory name and package name
- New branch – Optionally create a dev branch alongside
main - Directory conflict – If target exists, choose to cancel or continue
CLI Options
pnpm create @cellajs/cella [directory] [options]What It Does
- Downloads latest Cella template via giget
- Cleans template files (removes cella-specific docs, configs)
- Installs dependencies with
pnpm install - Generates initial database migrations
- Initializes git repository with initial commit
- Creates optional working branch
- Adds Cella as upstream remote for future syncs
Development
cd cli/create-cella
# Type check
pnpm ts
# Lint
pnpm lint:fix
# Run tests
pnpm test
# Run locally
pnpm start
# Build for npm publish
pnpm build