For AI agents: the complete documentation index is available at ../../../llms.txt, the full documentation bundle is available at ../../../llms-full.txt, and this page is available as Markdown at ../../../quality/scripts/subflows/launch-fresh.md.

subflows/launch-fresh.yaml

Source

appId: ${APP_ID}
---
# Cold-start the app as a brand-new install (state cleared), in either build (see launch-app.yaml),
# WITHOUT the `e2eSkipFtue` argument: the first run is the one that plays. A fresh install starts in
# portrait: the intro is the only portrait screen.
- runFlow:
    when:
      true: ${typeof E2E_MODE !== 'undefined' && E2E_MODE == 'debug'}
    commands:
      - stopApp
      - launchApp:
          clearState: true
          stopApp: true
      - runFlow: connect-dev-client.yaml
- runFlow:
    when:
      true: ${typeof E2E_MODE === 'undefined' || E2E_MODE != 'debug'}
    commands:
      - launchApp:
          clearState: true
- setOrientation: PORTRAIT