CLI reference
The launchswift CLI (implemented in cli/src/) provides four commands:
newadddeploygreenlight
Installation
Section titled “Installation”The currently reproducible installation flow is from source:
git clone https://github.com/cardotrejos/launchswift.gitcd launchswiftcd clinpm installnpm run buildnpm linklaunchswift --helpCommands
Section titled “Commands”launchswift new
Section titled “launchswift new”Scaffold a new SwiftLaunch project.
launchswift new <name> [--template <github|embedded|local-path>]Options:
| Flag | Description | Default |
|---|---|---|
--template | Template source (github, embedded, or local path) | github |
What it does:
- Prompts for:
- project name
- bundle ID
- deployment path (
appleNativeorfullStack) - optional feature list
- 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
- Applies substitutions (bundle ID, project name, deployment path, feature flags)
- Initializes git unless
LAUNCHSWIFT_SKIP_GITis set - Runs
npm installforbackend/on Full Stack projects unlessLAUNCHSWIFT_SKIP_INSTALLis set - 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:
launchswift new MyApp --template embeddedlaunchswift add
Section titled “launchswift add”Add a feature module to an existing project.
launchswift add [feature]Available features:
| Feature | Description |
|---|---|
auth-apple | Apple auth feature templates |
auth-betterauth | Full-stack auth templates |
ai-chat | AI chat with SSE streaming |
analytics | TelemetryDeck integration |
i18n | Localization feature templates |
payments | StoreKit 2 paywall templates |
revenuecat | RevenueCat integration templates |
feedback | In-app feedback form |
liquid-glass | iOS 26+ Liquid Glass components |
What it does:
- Copies files from
cli/templates/features/<feature>/into your project (without overwriting existing files) - Applies feature-specific mutations:
analytics/revenuecat: updatesios/project.ymlpackage dependenciesauth-betterauth/feedback: updatesbackend/src/index.tsroute mounts
- Regenerates Xcode project with
xcodegenon a best-effort basis
Example:
launchswift add paymentslaunchswift deploy
Section titled “launchswift deploy”Deploy the Path B backend to Cloudflare Workers.
launchswift deploy [--wrangler]Options:
| Flag | Description | Default |
|---|---|---|
--wrangler | Backwards-compatible alias (currently a no-op) | false |
What it does:
- Verifies
backend/package.jsonexists and contains adeployscript - Runs
npm run deployinsidebackend/
Example:
launchswift deploylaunchswift greenlight
Section titled “launchswift greenlight”Run the App Store compliance scanner (Greenlight) on your iOS project.
launchswift greenlight [--path <target-directory>]Options:
| Flag | Description | Default |
|---|---|---|
--path | Path to scan | ios |
What it does:
- Executes
scripts/greenlight-scan.sh <targetPath> - Writes reports to:
.artifacts/greenlight/greenlight.txt.artifacts/greenlight/greenlight.md
Example:
launchswift greenlightLocal scripts
Section titled “Local scripts”These scripts are available in the repo but not part of the CLI:
scripts/ci-local.sh
Section titled “scripts/ci-local.sh”Full local CI pipeline — builds, lints, and typechecks everything.
./scripts/ci-local.shscripts/greenlight-scan.sh
Section titled “scripts/greenlight-scan.sh”Direct wrapper for the Greenlight scanner:
./scripts/greenlight-scan.sh ios