`reflex deploy --app-id X --project-name <nonexistent>` ignores the project and deploys
Author: masenfCreated Sep 24, 2026Updated Sep 24, 2026
Package: reflex-hosting-cli (reproduced on main at ea035ea47 and on #7207 at 988718e78)
When --app-id is given, --project-name is not validated. A project name that does not exist is ignored, and a full deploy of the app starts:
$ reflex deploy --app-id <existing app id> --project-name nope-project --no-interactive
... Compiling ... Creating Production Build ... Zipping Frontend ...
[exit=0]A new deployment appears in reflex cloud apps history <app id>. The same happens with any --project-name that doesn't match the app's actual project.
Expected: fail before building, in either of these cases:
- the named project does not exist, or
--project/--project-namenames a different project than the one that owns--app-id.
A mistyped or mismatched project should not trigger a deploy to whichever project the app is in.
Source: reflex-dev/reflex