Skip to main content

Commands

Enum Commands 

Source
pub enum Commands {
Show 14 variants Run { target: TargetArg, form_factor: HarmonyFormFactorArg, render: RenderArg, release: bool, package: Option<String>, watch: bool, port: u16, plan: bool, stream: bool, json: bool, }, Dev {
Show 17 fields target: DevTargetArg, render: RenderArg, release: bool, path: Option<PathBuf>, out: Option<PathBuf>, package: Option<String>, server: ServerBindArgs, ota: bool, hot_ota: bool, watch_ota: Option<PathBuf>, coop_coep: bool, project: String, channel: String, signing_key: Option<String>, debounce_ms: u64, plan: bool, json: bool,
}, Update { action: UpdateAction, }, Docs { action: Option<DocsAction>, build: DocsBuildArgs, watch: bool, server: ServerBindArgs, }, Build {
Show 30 fields target: Vec<TargetArg>, all: bool, list_targets: bool, package: Option<String>, out_dir: Option<PathBuf>, out_file: Option<PathBuf>, archive: Option<PathBuf>, base: Option<String>, skip_unavailable: bool, parallel: bool, jobs: Option<usize>, manifest: bool, verify: bool, raw_wasm: bool, skip_wasm_opt: bool, theme_variants: bool, no_launch: bool, install: bool, smoke: bool, include_cli: bool, version: Option<String>, abi: Vec<String>, features: Vec<String>, device: Option<String>, icon: Option<PathBuf>, form_factor: HarmonyFormFactorArg, render: Option<RenderArg>, release: bool, plan: bool, json: bool,
}, Check { all_targets: bool, target: Vec<TargetArg>, deny_warnings: bool, package: Vec<String>, plan: bool, json: bool, }, Fmt { check: bool, path: Option<PathBuf>, macros_only: bool, }, Doctor { fix: bool, targets: bool, json: bool, }, New { name: String, path: Option<PathBuf>, template: ProjectTemplateArg, bundle_id: Option<String>, json: bool, }, Targets { target: Vec<TargetArg>, ready_only: bool, json: bool, }, Clean { all: bool, path: Option<PathBuf>, dry_run: bool, json: bool, }, Completions { shell: ShellKindArg, }, Inspect { url: String, dist: Option<PathBuf>, anomalies: bool, json: bool, }, Blender { action: BlenderAction, },
}
Expand description

Top-level euv CLI subcommands.

Variants§

§

Run

Runs an euv application for a target platform and render mode, with optional --watch hot reload.

Fields

§target: TargetArg

Target platform to launch.

§form_factor: HarmonyFormFactorArg

Optional HarmonyOS form factor (phone, tablet, pc, foldable, tv, car, wearable).

§render: RenderArg

Rendering pipeline mode.

§release: bool

Build and run in release mode.

§package: Option<String>

Optional Cargo package name to run.

§watch: bool

Enable file-watching hot reload and live OTA update serving.

§port: u16

HTTP hot-reload/OTA port when --watch is enabled.

§plan: bool

Print the execution plan without spawning Cargo.

§stream: bool

Stream child process output directly to the terminal (defaults to true for interactive/TTY ergonomics).

§json: bool

Emit machine-readable JSON output.

§

Dev

Starts the hot-reload and Dynamic WASM OTA development server for Web, Native, Docs, Terminal, Harmony, Wearable, MiniApp, or QuickApp.

Fields

§target: DevTargetArg

Development pipeline target (web, native, docs, tui, cli, harmony, wearable, miniapp, quickapp).

§render: RenderArg

Rendering pipeline mode default.

§release: bool

Build and serve in release mode when rebuilding Web or Native targets.

§path: Option<PathBuf>

Optional project root directory to watch (defaults to current directory).

§out: Option<PathBuf>

Optional output directory for built bundles.

§package: Option<String>

Optional Cargo package name to rebuild on changes.

§server: ServerBindArgs

Shared dev server bind, poll interval, and smoke-run flags.

§ota: bool

Enable live Dynamic WASM OTA manifest + .wasm hot-update endpoint (--ota=false disables).

§hot_ota: bool

Enable sub-second hot-OTA widget/spec live swapping without restarting the host app.

§watch_ota: Option<PathBuf>

Watch a dynamic widget crate or declarative JSON spec path for automatic v1 OTA hot pushes.

§coop_coep: bool

Emit Cross-Origin-Opener-Policy and Cross-Origin-Embedder-Policy headers for SharedArrayBuffer / WASM threads.

§project: String

Logical project identifier used by the embedded v1 OTA server.

§channel: String

Release channel name used by the embedded v1 OTA server.

§signing_key: Option<String>

Optional HMAC-SHA256 signing secret for the embedded v1 OTA server.

§debounce_ms: u64

File watcher debounce interval in milliseconds before starting a rebuild.

§plan: bool

Print the structured dev server plan without spawning processes.

§json: bool

Emit machine-readable JSON output.

§

Update

Manages the Hyperlane HTTP + SSE dynamic update server and atomic local release store (serve, stage, publish, rollback, status, push, watch, init, keygen, build, dev, verify, diff, gc).

Fields

§action: UpdateAction

Dynamic update server or store management subcommand.

§

Docs

Builds or live-serves a static or multi-locale WASM documentation site from project .md files.

Fields

§action: Option<DocsAction>

Optional build or dev subcommand (defaults to building all project .md files).

§build: DocsBuildArgs

Shared source, output, title, base URL, and WASM flags.

§watch: bool

Enable live watch and SSE hot-reload dev server directly from euv docs --watch.

§server: ServerBindArgs

Shared dev server bind, poll interval, and smoke-run flags when --watch is active.

§

Build

Builds native, mobile, simulator, terminal, wearable, HarmonyOS, Mini-Program, QuickApp, or Web bundles for one, multiple, or all targets.

Fields

§target: Vec<TargetArg>

Target platform(s) or group(s) (repeatable and comma-separated, e.g. --target web,android,macos).

§all: bool

Shorthand for --target all across every supported production platform.

§list_targets: bool

Print the target readiness table for the current host and exit without building.

§package: Option<String>

Optional Cargo package name to build.

§out_dir: Option<PathBuf>

Optional output directory for packaged artifacts.

§out_file: Option<PathBuf>

Optional exact output file path (e.g. APK path for single-file artifacts).

§archive: Option<PathBuf>

Optional archive file path (.tar.gz or .zip) packing the staged output directory.

§base: Option<String>

Optional asset URL base prefix for Web bundles (e.g. ./ or /euv/).

§skip_unavailable: bool

Skip targets whose required host OS or SDK toolchain is unavailable instead of aborting.

§parallel: bool

Execute independent target builds in parallel across worker threads.

§jobs: Option<usize>

Maximum concurrent target build jobs when --parallel is active.

§manifest: bool

Emit a deterministic SHA-256 euv-release.json artifact inventory after building.

§verify: bool

Verify generated bundle integrity, SHA-256 manifest, zero-JS rules, and release AI-schema stripping.

§raw_wasm: bool

Emit raw .wasm + icons + build-plan.json without running wasm-bindgen-cli.

§skip_wasm_opt: bool

Skip optional binaryen wasm-opt size optimization on Web builds.

§theme_variants: bool

Build all compiled theme variants (default + theme-* features) for Web targets.

§no_launch: bool

Skip automatic simulator/emulator launch after mobile builds.

§install: bool

Install the built mobile/wearable/Harmony bundle onto a connected device or emulator.

§smoke: bool

Run a headless smoke verification (--headless --software) after building native binaries.

§include_cli: bool

Include the euv CLI binary alongside the app binary in desktop bundles.

§version: Option<String>

Explicit semantic version override (defaults to workspace Cargo.toml version).

§abi: Vec<String>

Target native ABIs (repeatable/comma-separated, e.g. --abi arm64-v8a,x86_64).

§features: Vec<String>

Additional Cargo feature flags to enable (repeatable/comma-separated).

§device: Option<String>

Optional device or simulator identifier for --install or launch steps.

§icon: Option<PathBuf>

Optional custom PNG icon source path replacing the default euv brand mark.

§form_factor: HarmonyFormFactorArg

Optional HarmonyOS device form factor (phone, tablet, pc, foldable, tv, car, wearable).

§render: Option<RenderArg>

Rendering pipeline mode override (defaults to hardware on Apple mobile/watch targets and auto elsewhere).

§release: bool

Enable release optimization profile.

§plan: bool

Print structured JSON build plans without executing.

§json: bool

Emit machine-readable JSON output.

§

Check

Checks Rust compilation across one, multiple, or all cross-platform targets.

Fields

§all_targets: bool

Check all supported platform targets in sequence.

§target: Vec<TargetArg>

Target platform(s) or group(s) to check (repeatable and comma-separated).

§deny_warnings: bool

Treat Rust compiler warnings as errors (RUSTFLAGS="-D warnings").

§package: Vec<String>

Optional Cargo package name(s) to check (repeatable and comma-separated).

§plan: bool

Print the planned commands without running Cargo.

§json: bool

Emit machine-readable JSON output.

§

Fmt

Runs unified crate-cli text/Rust formatting first, then normalizes indentation inside all euv macro blocks (view!, style!, etc.).

Fields

§check: bool

Verify formatting without modifying files.

§path: Option<PathBuf>

Optional root directory or file path (defaults to current directory).

§macros_only: bool

Format only euv procedural macro bodies without invoking crate-cli or cargo fmt.

§

Doctor

Inspects installed Rust targets, SDKs, and cross-platform tooling readiness.

Fields

§fix: bool

Automatically install missing rustup targets applicable to this host OS.

§targets: bool

Display the expanded per-target readiness matrix and install hints.

§json: bool

Emit machine-readable JSON output.

§

New

Scaffolds a new cross-platform euv native project using keyless style! and view!.

Fields

§name: String

Name of the new project directory and crate.

§path: Option<PathBuf>

Optional parent directory (defaults to current working directory).

§template: ProjectTemplateArg

Project template preset (app, web, dynamic-widget, docs).

§bundle_id: Option<String>

Optional reverse-DNS mobile/desktop bundle identifier (e.g. com.example.myapp).

§json: bool

Emit machine-readable JSON output.

§

Targets

Displays the per-target buildability matrix and required SDKs for the current host.

Fields

§target: Vec<TargetArg>

Optional target or group filter(s) (repeatable and comma-separated).

§ready_only: bool

Show only targets that are ready to build on the current host.

§json: bool

Emit machine-readable JSON output.

§

Clean

Cleans generated bundles (dist/), mobile host caches, icon caches, and stale OTA staging directories.

Fields

§all: bool

Also invoke cargo clean for the current workspace or project.

§path: Option<PathBuf>

Optional project root directory (defaults to current working directory).

§dry_run: bool

Preview directories and bytes to reclaim without deleting files.

§json: bool

Emit machine-readable JSON output.

§

Completions

Generates shell tab-completion scripts (bash, zsh, fish, powershell) for all euv subcommands and targets.

Fields

§shell: ShellKindArg

Target shell dialect.

§

Inspect

Queries a live DevAutomationBridge for AI Schema / 9-rule layout anomalies or audits a local dist/ artifact directory.

Fields

§url: String

Live DevAutomationBridge base HTTP URL.

§dist: Option<PathBuf>

Local build output directory to audit (euv-release.json, SHA-256 integrity, zero-JS check, sizes).

§anomalies: bool

Focus output on 9-rule layout anomalies returned by the live automation bridge.

§json: bool

Emit machine-readable JSON output.

§

Blender

Manages Blender 4.x/5.x asset inspection, headless glTF import, .euv3d baking, Live-Link SSE sync, and add-on installation.

Fields

§action: BlenderAction

Blender toolchain subcommand to run.

Trait Implementations§

Source§

impl Clone for Commands

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Commands

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for Commands

Source§

impl FromArgMatches for Commands

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

impl PartialEq for Commands

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Commands

Source§

impl Subcommand for Commands

Source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate self via FromArgMatches::update_from_arg_matches_mut Read more
Source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> AnySend for T
where T: Any + Send,

Source§

impl<T> AnySendClone for T
where T: Any + Send + Clone,

Source§

impl<T> AnySendSync for T
where T: Any + Send + Sync,

Source§

impl<T> AnySendSyncClone for T
where T: Any + Send + Sync + Clone,

Source§

impl<T> AnySync for T
where T: Any + Sync,

Source§

impl<T> AnySyncClone for T
where T: Any + Sync + Clone,

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<'a, T> FromIn<'a, T> for T

Source§

fn from_in(t: T, _: &'a Allocator) -> T

Converts to this type from the input type within the given allocator.
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<'a, T, U> IntoIn<'a, U> for T
where U: FromIn<'a, T>,

Source§

fn into_in(self, allocator: &'a Allocator) -> U

Converts this type into the (usually inferred) input type within the given allocator.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more