gpui-rhai CLI
The source-management CLI for GPUI Rhai. It initializes applications, copies editable first-party components/themes/locales/assets, validates the result with the real runtime, performs baseline-aware updates, and generates production embedded sources.
cargo install gpui-rhai-cli --locked
gpui-rhai init
gpui-rhai add button input form_field
gpui-rhai add chart
gpui-rhai check
gpui-rhai dev
Important commands:
initcreates the Rust Host and application-ownedui/source tree, including theme tokens andstyles.rhaicomponent overrides;add,diff, andupdateinstall and three-way merge official source;checkcompiles and executes a validated headless first frame;metadataemits schemas, editor snippets, and Rhai definitions;embedgenerates productioninclude_str!/include_bytes!wiring;theme-studio [path]opens the live semantic theme editor and complete component specimen.
The CLI consumes the version-matched gpui-rhai-registry package internally.
Applications depend on gpui-rhai; they do not need to add the registry crate
themselves.
See the complete User Guide and quick start.