CLI Commands Reference
Complete reference for all SeanStack CLI commands, options, and usage patterns.
Installation: Install the CLI globally with
npm install -g @seanspeaks/cli
seanstack create
Create a new SeanStack project from templates
Basic Usage
seanstack create <project-name> [options]
Options
--template, -t
Template to use (minimal, full-stack)--install, -i
Install dependencies after creation--git
Initialize git repository--typescript
Use TypeScript (default: true)Examples
seanstack create my-app
seanstack create my-saas --template full-stack --install
seanstack create simple-app --template minimal --no-git
Environment Variables
SEANSTACK_API_KEY
API key for premium features and pattern downloads
SEANSTACK_REGISTRY_URL
Custom pattern registry URL (default: registry.seanstack.dev)
SEANSTACK_DEBUG
Enable debug mode for detailed logging
Configuration File
SeanStack uses a seanstack.config.js
file in your project root for configuration:
/** @type {import('@seanspeaks/cli').Config} */ module.exports = { // Pattern registry configuration registry: { url: 'https://registry.seanstack.dev', auth: process.env.SEANSTACK_API_KEY }, // Project structure preferences structure: { componentsDir: './src/components', pagesDir: './src/app', utilsDir: './src/lib' }, // AI integration settings ai: { enabled: true, provider: 'claude', // 'claude', 'gpt-4', 'local' model: 'claude-3-sonnet' }, // Development preferences dev: { port: 3000, turbo: true, hotReload: true } }