CLI Commands Reference

Complete reference for all SeanStack CLI commands, options, and usage patterns.

seanstack create

Create a new SeanStack project from templates

Basic Usage

seanstack create <project-name> [options]

Options

--template, -tTemplate to use (minimal, full-stack)
--install, -iInstall dependencies after creation
--gitInitialize git repository
--typescriptUse TypeScript (default: true)

Examples

seanstack create my-appseanstack create my-saas --template full-stack --installseanstack 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
  }
}