Save project settings (workspace, scheme, target, configuration) so you can run build/run/test/clean without repeating flags.
flowdeck init requires --workspace. If --scheme is omitted and only one scheme exists, it will be selected automatically. If no target is specified, FlowDeck defaults to “My Mac”.
# iOS Simulator
flowdeck init -w App.xcworkspace -s MyApp -S "iPhone 16"
# macOS target
flowdeck init -w App.xcworkspace -s MyApp -D "My Mac"
# Physical device
flowdeck init -w App.xcworkspace -s MyApp -D "John's iPhone"
# With build configuration
flowdeck init -w App.xcworkspace -s MyApp -S "iPhone 16" -C Debug
# Re-initialize (overwrite existing config)
flowdeck init -w App.xcworkspace -s MyApp -S "iPhone 16" --force
# JSON output for automation
flowdeck init -w App.xcworkspace -s MyApp -S "iPhone 16" --json
# Show usage examples
flowdeck init --examples
Options
| Option | Short | Description |
|---|
--examples | -e | Show usage examples |
--project <path> | -p | Project directory (defaults to current) |
--workspace <path> | -w | Path to .xcworkspace or .xcodeproj (required) |
--scheme <name> | -s | Scheme name |
--configuration <name> | -C | Build configuration (Debug/Release) |
--simulator <name> | -S | Simulator name or UDID |
--device <name> | -D | Device name or UDID (use “My Mac” for macOS) |
--json | -j | Output as JSON |
--force | -f | Re-initialize even if already configured |
JSON Output
{
"success": true,
"message": "Project initialized",
"workspace": "App.xcworkspace",
"scheme": "MyApp",
"target": "iPhone 16",
"targetType": "simulator",
"configuration": "Debug"
}