CAPYSQUASH

Flags & Options

Complete reference for capysquash-cli flags and options

FLAGS & OPTIONS

Complete reference for capysquash-cli flags and options.

💡 Using CAPYSQUASH Platform? Configuration is managed through the web interface. This guide is for capysquash-cli users.

GLOBAL FLAGS

Available for all commands:

FlagShortDescriptionDefault
--config-cConfig file pathpgsquash.config.json
--verbose-vVerbose outputfalse
--quiet-qSuppress output except errorsfalse
--help-hShow help-
--versionShow version-

SQUASH COMMAND FLAGS

Safety & Behavior

FlagTypeDescriptionDefault
--safetystringSafety level (paranoid, conservative, standard, aggressive)standard
--dry-runbooleanPreview without writing filesfalse
--forcebooleanOverwrite existing output filesfalse

Output Options

FlagTypeDescriptionDefault
--outputstringOutput directoryclean/
--formatstringFile naming format (sequential, timestamp, semantic)sequential
--preserve-commentsbooleanKeep comments from originalstrue
--add-headersbooleanAdd metadata headerstrue

Performance

FlagTypeDescriptionDefault
--parallelintNumber of parallel workersCPU cores
--memory-limitintMemory limit in MB1024
--streamingbooleanUse streaming modefalse

Analysis

FlagTypeDescriptionDefault
--detect-cyclesbooleanDetect circular dependenciestrue
--ai-analysisbooleanEnable AI-powered analysisfalse

VALIDATE COMMAND FLAGS

FlagTypeDescriptionDefault
--show-diffbooleanShow detailed schema difffalse
--postgres-versionstringPostgreSQL version for validation16
--timeoutintValidation timeout (seconds)300

ANALYZE COMMAND FLAGS

FlagTypeDescriptionDefault
--deepbooleanDeep analysis with AIfalse
--report-formatstringOutput format (text, json, html)text
--exportstringExport report to file-

EXAMPLES

Basic Squash

capysquash squash migrations/*.sql

Production-Safe Squash

capysquash squash migrations/*.sql \
  --safety conservative \
  --output production/ \
  --preserve-comments \
  --add-headers

High-Performance Squash

capysquash squash migrations/*.sql \
  --parallel 8 \
  --streaming \
  --memory-limit 2048

AI-Powered Analysis

export ANTHROPIC_API_KEY="sk-ant-..."
capysquash analyze migrations/*.sql --deep --ai-analysis

Custom Output Format

capysquash squash migrations/*.sql \
  --output clean/ \
  --format timestamp \
  --preserve-comments=false

FLAG PRECEDENCE

  1. CLI flags (highest priority)
  2. Config file
  3. Environment variables
  4. Defaults (lowest priority)

NEXT STEPS

How is this guide?

On this page