Skip to content

CLI reference

The launchswift CLI (implemented in cli/src/) provides four commands:

  • new
  • add
  • deploy
  • greenlight

The currently reproducible installation flow is from source:

Terminal window
git clone https://github.com/cardotrejos/launchswift.git
cd launchswift
cd cli
npm install
npm run build
npm link
launchswift --help

Scaffold a new SwiftLaunch project.

Terminal window
launchswift new <name> [--template <github|embedded|local-path>]

Options:

FlagDescriptionDefault
--templateTemplate source (github, embedded, or local path)github

What it does:

  1. Prompts for:
    • project name
    • bundle ID
    • deployment path (appleNative or fullStack)
    • optional feature list
  2. Scaffolds from the Pro GitHub template (or embedded/local template source)
    • github: attempts to clone the LaunchSwift Pro Template
    • on access-denied: falls back to the embedded Free Starter Template
    • embedded: always uses the Free Starter Template
  3. Applies substitutions (bundle ID, project name, deployment path, feature flags)
  4. Initializes git unless LAUNCHSWIFT_SKIP_GIT is set
  5. Runs npm install for backend/ on Full Stack projects unless LAUNCHSWIFT_SKIP_INSTALL is set
  6. Applies selected feature templates via the same mechanism as launchswift add

Free Starter vs Pro output

  • Free Starter Template: app shell + backend /healthz + starter feature files
  • LaunchSwift Pro Template: fully wired auth, AI chat, payments, analytics, i18n, Liquid Glass, and full backend/API surface

Example:

Terminal window
launchswift new MyApp --template embedded

Add a feature module to an existing project.

Terminal window
launchswift add [feature]

Available features:

FeatureDescription
auth-appleApple auth feature templates
auth-betterauthFull-stack auth templates
ai-chatAI chat with SSE streaming
analyticsTelemetryDeck integration
i18nLocalization feature templates
paymentsStoreKit 2 paywall templates
revenuecatRevenueCat integration templates
feedbackIn-app feedback form
liquid-glassiOS 26+ Liquid Glass components

What it does:

  1. Copies files from cli/templates/features/<feature>/ into your project (without overwriting existing files)
  2. Applies feature-specific mutations:
    • analytics / revenuecat: updates ios/project.yml package dependencies
    • auth-betterauth / feedback: updates backend/src/index.ts route mounts
  3. Regenerates Xcode project with xcodegen on a best-effort basis

Example:

Terminal window
launchswift add payments

Deploy the Path B backend to Cloudflare Workers.

Terminal window
launchswift deploy [--wrangler]

Options:

FlagDescriptionDefault
--wranglerBackwards-compatible alias (currently a no-op)false

What it does:

  1. Verifies backend/package.json exists and contains a deploy script
  2. Runs npm run deploy inside backend/

Example:

Terminal window
launchswift deploy

Run the App Store compliance scanner (Greenlight) on your iOS project.

Terminal window
launchswift greenlight [--path <target-directory>]

Options:

FlagDescriptionDefault
--pathPath to scanios

What it does:

  1. Executes scripts/greenlight-scan.sh <targetPath>
  2. Writes reports to:
    • .artifacts/greenlight/greenlight.txt
    • .artifacts/greenlight/greenlight.md

Example:

Terminal window
launchswift greenlight

These scripts are available in the repo but not part of the CLI:

Full local CI pipeline — builds, lints, and typechecks everything.

Terminal window
./scripts/ci-local.sh

Direct wrapper for the Greenlight scanner:

Terminal window
./scripts/greenlight-scan.sh ios