CLI & source ownership
CLI & source ownership
Section titled “CLI & source ownership”BeeUI supports two consumption models: a centralized package boundary and source ownership. The package artifacts are release-ready but not published to npm. The source-ownership CLI works today from a BeeUI checkout and copies deterministic Registry source into a consumer project.
Choose a model
Section titled “Choose a model”| Model | What you own | Upgrade model | Available today |
|---|---|---|---|
| Centralized packages | Package dependency and app integration | Replace locally packed artifact now; package version after publication | Evaluation through pnpm pack tarballs |
| Registry source ownership | Copied component/library source inside your repo | Inspect diff, then update or keep local changes | Yes, repository-local CLI |
Use source ownership when local source visibility/customization is valuable and your team is willing to own future diffs. Use the package boundary when you prefer centralized upgrades and public exports.
Repository-local commands
Section titled “Repository-local commands”Run these from the BeeUI repository while evaluating a consumer:
pnpm beeui -- initpnpm beeui -- listpnpm beeui -- add buttonpnpm beeui -- add --dry-run dialog selectpnpm beeui -- doctorpnpm beeui -- diffpnpm beeui -- updateadd resolves transitive BeeUI Registry dependencies and copies them in deterministic order. --dry-run prints the plan without mutation. doctor/verify validates the Registry, consumer config and dependency compatibility. diff is read-only; update refuses to overwrite conflicting local edits unless the explicit force path is chosen.
The CLI does not install packages, fetch remote executable code, or silently mutate your CSS/provider/native configuration. External package requirements remain consumer-owned and are reported for you to install deliberately.
What gets copied
Section titled “What gets copied”A Registry item records its source files, BeeUI dependency closure, external requirements and integrity metadata. Once copied, those files belong to the consumer repository. Component reference pages expose the Registry item identity and source link mechanically from registry/registry.json; the website does not maintain a second Registry inventory.
For provider and native setup after copying source, follow Provider & safe area and the component page’s dependency section.
Safe update workflow
Section titled “Safe update workflow”- Run
pnpm beeui -- add --dry-run <items...>before first copy. - Commit the copied files in your consumer repository.
- Before updating, run
pnpm beeui -- diff [items...]and review upstream/local changes. - Run
pnpm beeui -- update [items...]only after reviewing the plan. - Re-run the consumer’s typecheck, build and relevant runtime tests.
Source ownership is not a hidden dependency on this monorepo: copied source must not retain workspace:* or private monorepo imports.