Create a project
The CLI creates one application project with shared C++ source and source-controlled platform shells.
Create an application
Section titled “Create an application”huxerui create app hello_huxer --id dev.example.hello --platform windows,web,androidcd hello_huxerThe generated project contains:
src/for shared application code.resources/for localized strings, images, vectors, and raw assets.- One platform directory for each enabled shell.
- A root
CMakeLists.txtused by source and installed-SDK builds.
Add another platform later without regenerating the application:
huxerui platform add iosBuild and run
Section titled “Build and run”huxerui build windows --profile debughuxerui run windowsWeb builds launch through the platform driver:
huxerui run webDevice platforms can select a discovered target explicitly:
huxerui devices ioshuxerui run ios --device <id>Package release artifacts under dist/<platform>:
huxerui package windows,webSource ownership
Section titled “Source ownership”The root build scans supported C++ files under src/; an Android or Web shell does not require a second application source list.
Keep platform-only entry points and manifests in their platform directories, and keep reusable UI in shared source.
The generated shell links the correct HuxerUI library form for its platform and enables the [[huxerui::scope]] transformer for application sources.
Open the generated src/app.cpp, then follow First application to replace its initial Text with a stateful interface.

