ignite new --remove-demo has no effect: demo code is still generated (11.5.0)
Describe the bug
ignite new <App> --remove-demo generates a project with all the demo code still in it. The flag appears to be parsed as false regardless of how it's passed — the CLI's own "here's the command to reproduce this" block, printed at the end of a successful run, echoes --remove-demo=false even when --remove-demo or --remove-demo=true was supplied.
Both forms reproduce it:
npx ignite-cli@latest new ReproBare --yes --remove-demo --install-deps=false --git=false --no-timeout
npx ignite-cli@latest new ReproTrue --yes --remove-demo=true --install-deps=false --git=false --no-timeoutExpected: demo screens, the demo navigator and demo assets are not generated.
Actual: both projects are byte-for-byte identical in file listing to a run with --remove-demo=false — 95 files under app/:
| Left behind | |
|---|---|
app/screens/Demo* |
DemoCommunityScreen, DemoDebugScreen, DemoPodcastListScreen, DemoShowroomScreen/ |
app/navigators/DemoNavigator.tsx |
still imported and registered in AppNavigator.tsx (<Stack.Screen name="Demo" …>) |
app/i18n/demo-*.ts |
7 files |
assets/icons/demo, assets/images/demo |
2 directories |
The markup half does run — ️ Removing fancy demo markup is logged, and the generated tree contains no @demo comments. It's the file/directory removal that doesn't happen.
Running the standalone command afterwards doesn't recover it either — npx ignite-cli remove-demo --dry-run inside the generated project reports only the two demo asset directories, not the screens or the navigator.
Because the @demo markup has already been stripped at generation time, the standalone remove-demo no longer has the anchors it would need to find that code, so the two failures may share a root cause.
Ignite version
11.5.0
Additional info
System
platform darwin
arch arm64
cpu 12 cores Apple M2 Pro
JavaScript
node 20.20.0
npm 10.8.2
yarn 4.6.0
Ignite
ignite-cli 11.5.0
Android
java 21.0.7
android home undefined
iOS
xcode 26.6
cocoapods 1.14.3
Tools
git git version 2.50.1 (Apple Git-155)Found while running an unrelated experiment (#3041) that needed a demo-free project; I ended up stripping the demo by hand. Happy to dig into the flag parsing and open a PR if that's useful.
Source: infinitered/ignite