nativeview-cli 0.1.0-rc.1

Developer CLI (`nv`) for Native View Engine: dev hot-reload, builds, pairing, SDK management, app scaffolding, and docs.
Documentation

nativeview-cli

Developer CLI binary nv (packages/tools/cli, Tools layer) providing new app, init, dev, pair, build, run, xcframework, sdk, codegen (hybrid, import-rn, export), docs, and doctor (monorepo contributor commands such as codegen abi, progress, bench, inspect, and prerender live in packages/tools/xtask).

Key Entry Points

  • Binary nv (src/main.rs) subcommands: new app, init, dev, pair, build, run, xcframework, sdk, codegen, docs, doctor
  • Declarative nativeview.toml schema & platform manifest emitters (src/manifest/)
  • Shared Cargo metadata / AppContext / NvSdkRoot / sdk-manifest.json resolver (src/cargo_env/) honoring CARGO_TARGET_DIR and external app projects
  • Portable cross-platform Rust nativeview-web-shell dev WASM builder (src/web_shell.rs)
  • Integration tests: tests/docs_cli_tests.rs, tests/pair_live_ws.rs (workspace architectural invariants live in packages/tools/arch-invariants)
cargo xtask codegen abi --check
cargo run --locked -p nativeview-cli -- doctor
cargo run --locked -p nativeview-cli -- new app my-app

Dependency Invariants

  • Depends on: core, backend, nativeview-canvas (ABI table codegen), and nativeview-mdx crates to drive codegen, benchmarks, generic cdylib prerendering, standalone MDX validation, and live dev/pairing workflows.
  • Must NOT depend on: any examples/* crate (nativeview-example-kitchen-sink, nativeview-studio-workspace, nativeview-docs-site), nativeview-docs, nativeview-ui, or hosts/* (enforced mechanically by nativeview-arch-invariants).
  • Must NOT be depended on by: any library crate under packages/{core,backends,framework,modules}/.

Verification

cargo test --locked -p nativeview-arch-invariants
cargo test --locked -p nativeview-cli
CARGO_TARGET_DIR=/tmp/nv-cli-custom-target cargo test --locked -p nativeview-cli