> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# subflows/launch-fresh.yaml

[Source](https://github.com/leapgame/leap-sim-piano/blob/f794b594016038c483e2d20b6af56aea0ae1b982/.maestro/subflows/launch-fresh.yaml)

```yaml
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
```
