euv-cli 0.51.0

Cross-platform CLI tool for the euv native UI framework supporting run, build, check, fmt, doctor, new, and Hyperlane SSE dynamic updates across all supported platforms.
Documentation
---
# euv-docs site configuration (consumed by `euv-docs` build.rs).
# This frontmatter is the SINGLE source of truth for site-wide
# settings — replaces the legacy `docs/config.toml`.
site:
  title: Euv-docs
  description: A VuePress-style documentation site powered by euv + euv-ui.
  logo: '📘'
locales:
  - prefix: /
    lang: en-US
    label: English
    title: Euv-docs
    description: A VuePress-style documentation site powered by euv + euv-ui.
    footer: MIT Licensed | Built with euv + euv-ui
    toc_label: On this page
    prev_label: Previous
    next_label: Next
    navbar:
      - { text: Home, link: / }
      - { text: Guide, link: /guide/ }
      - { text: GitHub, link: https://github.com/euv-dev/euv }
  - prefix: /zh/
    lang: zh-CN
    label: 简体中文
    title: Euv-docs
    description: 由 euv + euv-ui 驱动的 VuePress 风格文档站。
    footer: MIT 许可 | 基于 euv + euv-ui 构建
    toc_label: 本页目录
    prev_label: 上一页
    next_label: 下一页
    navbar:
      - { text: 首页, link: /zh/ }
      - { text: 指南, link: /zh/guide/ }
      - { text: GitHub, link: https://github.com/euv-dev/euv }
---

<div align="center">

# Euv-cli

<img src="https://devhub.vip/pages/docs/img/euv.png" alt="Euv-cli logo" height="160">

**Multi-Platform Build CLI, Hyperlane OTA Update Server & Layered Formatter**

[![Crates.io Version](https://flat.badgen.net/crates/v/euv-cli)](https://crates.io/crates/euv-cli)
[![Crates.io Downloads](https://flat.badgen.net/crates/d/euv-cli)](https://crates.io/crates/euv-cli)
[![Docs.rs](https://img.shields.io/docsrs/euv-cli?style=flat-square)](https://docs.rs/euv-cli)
[![CI Status](https://img.shields.io/github/actions/workflow/status/euv-dev/euv/rust.yml?style=flat-square&label=CI)](https://github.com/euv-dev/euv/actions)
[![Rust 2024](https://img.shields.io/badge/edition-2024-orange.svg?style=flat-square)](https://www.rust-lang.org)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](../LICENSE)

[Workspace Overview](../README.md) · [API Docs](https://docs.rs/euv-cli/latest/) · [Agent Engineering Rules](../AGENTS.md)

</div>

---

## Overview

Official CLI for the `euv` native Rust UI framework: pure-Rust 38-target parallel build & packaging pipeline (Desktop, Mobile, iOS/iPadOS Simulators, Web zero-JS & `--raw-wasm` + `--theme-variants`, HarmonyOS App & `harmony-pc` & `harmony-atomic`, 9-ecosystem Wearables incl. `vivo-watch`/`blueos`, `oppo-watch`, `garmin`, `zeppos`, 13 mainstream MiniApps, QuickApp Alliance & Huawei, TUI/CLI) with dynamic `Cargo.toml` version resolution, `euv.toml` project config, native PNG/ICO/ICNS icon generation, pure-Rust `.tar.gz`/`.zip` archiving, deterministic `euv-release.json` SHA-256 verification, embedded Hyperlane HTTP + SSE dynamic update lifecycle (`euv update init|keygen|build|dev|serve|stage|publish|push|watch|verify|diff|gc|rollback|status`), unified v1 OTA live hot-reload `euv dev` with zero-flicker build-before-swap, multi-locale WASM & static `euv docs`, 25-tool `euv doctor --fix`, `euv targets`, `euv clean`, `euv completions`, `euv inspect`, modern keyless `euv new`, and deterministic `euv fmt` layered on `crate-cli`.

## Responsibilities & Module Layout

- `blender` — Complete Blender 4.x/5.x 3D asset pipeline (`euv blender doctor|inspect|import|bake|watch|live-sync|addon-install`): zero-Blender `.blend`/glTF/GLB/`.euv3d`/OBJ inspection, headless Blender export with `extras.euv` preservation, offline QEM LOD/meshlet/BVH4 `.euv3d` baking, Hyperlane HTTP+SSE Live-Link daemon (port `9877`), and Blender Live-Link add-on installer
- `builder` (`archive`, `icon`, `web`, `desktop`, `android`, `apple`, `ecosystem`, `pipeline`) — Zero-Python, pure-Rust multi-platform build, native packaging, icon encoding, `.tar.gz`/`.zip` archiving, release manifest verification, AI-schema stripping gates, and bounded `--parallel` / `--skip-unavailable` orchestration
- `config` & `platform` — Zero-dependency `euv.toml` manifest parser, dynamic `Cargo.toml`/`Cargo.lock` metadata resolver, 38-target `HostCapabilityProbe` readiness matrix, and target group expansion (`desktop`, `mobile`, `apple`, `terminal`, `harmony-all`, `wearables`, `miniapps`, `quickapps`, `all`)
- `hot` & `update_server` — Unified v1 OTA + SSE hot-reload dev server (`--hot-ota`, `--watch-ota`, `--coop-coep`, build-before-swap, error overlay, LAN URLs) and Hyperlane HTTP + SSE update lifecycle (`init`, `keygen`, `build`, `dev`, `serve`, `stage`, `publish`, `push`, `watch`, `verify`, `diff`, `gc`, `rollback`, `status`, `/healthz`, `If-None-Match` `304`)
- `dx` (`output`, `scaffold`, `doctor`, `clean`, `completions`, `inspect`) — Aligned `TerminalTable` output, live TTY streaming, keyless `style!`/`view!` templates (`app`, `web`, `dynamic-widget`, `docs`), 25-tool doctor with `--fix`, cache cleaner, 4-shell tab completions, and live `DevAutomationBridge` / `dist/` manifest auditing
- `fmt` — Layered formatter invoking `crate_cli::execute_unified_fmt` (`.md`, `.yml`/`.yaml`, `.json`, `.toml`, derives, `cargo fmt` with `--manifest-path`) followed by `euv` macro indentation normalization

## Installation & Usage

```sh
cargo install euv-cli
euv doctor --targets
euv targets
euv build --target all --skip-unavailable --parallel
euv build --target web --release --verify
euv dev --target web --hot-ota
euv blender doctor
euv blender live-sync --port 9877
euv completions zsh
euv fmt --check
```

## Verification

```sh
cargo run --profile cli-fast -p euv-cli -- fmt --check
cargo clippy -p euv-cli --no-default-features --all-targets -- -D warnings
cargo clippy -p euv-cli --all-features --all-targets -- -D warnings
cargo test -p euv-cli --all-features
```

## Documentation & Governance

- Update this `README.md` alongside any public API, macro, component, CLI, or module-boundary change per [`../AGENTS.md`](../AGENTS.md#4-unified-documentation--skill-maintenance-policy).
- Project standards and workflows live in [`../.agents/skills/euv/SKILL.md`](../.agents/skills/euv/SKILL.md).

## License

This project is licensed under the MIT License. See the [LICENSE](../LICENSE) file for details.

## Contact

For inquiries, please contact the author at [root@devhub.vip](mailto:root@devhub.vip).