saasblast
v1.1.0
Published
SaaSBlast CLI to scaffold SaaS projects for maximum development speed
Readme
SaaSBlast CLI (packages/cli)
The saasblast CLI scaffolds a new SaaS app from curated templates and optional features.
Installation
Global install (after publish):
npm i -g saasblastUsage
npx saasblast@latestor (if you have saasblast in your PATH)
saasblastOptions:
--name <string>: Project name (folder will be created if needed)--dir <path>: Target directory (defaults to the project name)--apiKey <string>: SaaSBlast API key (aliases:--apikey,--api-key)- Feature flags:
--trpc--drizzle--biome--eslint-prettier
--help: Show help
You can pass feature flags to skip the interactive prompts for the corresponding choices. If any feature flags are provided, the linter defaults to Biome unless you explicitly pass --eslint-prettier.
API key resolution order: flag → SAASBLAST_API_KEY environment variable → saved config → prompt. When provided or entered, your API key is saved to a per-user config file so future runs won’t ask again.
The CLI will:
- Verify your API key against the SaaSBlast site
- Scaffold the
basetemplate - Prompt for and apply optional features (tRPC, Drizzle, lint/format)
- Optionally initialize git and run
npm install
Features
trpc: Adds tRPC wiringdrizzle: Adds Drizzle ORM and example schemabiome|eslint-prettier: Lint/format presets
How templates resolve
Locally, the CLI first tries to resolve @saasblast/templates from node_modules. If not present, it falls back to the monorepo path packages/templates/templates. When running against production, it downloads feature tarballs from the SaaSBlast site.
