pub enum Commands {
Show 13 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,
},
}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
form_factor: HarmonyFormFactorArgOptional HarmonyOS form factor (phone, tablet, pc, foldable, tv, car, wearable).
Dev
Starts the hot-reload and Dynamic WASM OTA development server for Web, Native, Docs, Terminal, Harmony, Wearable, MiniApp, or QuickApp.
Fields
target: DevTargetArgDevelopment pipeline target (web, native, docs, tui, cli, harmony, wearable, miniapp, quickapp).
server: ServerBindArgsShared dev server bind, poll interval, and smoke-run flags.
watch_ota: Option<PathBuf>Watch a dynamic widget crate or declarative JSON spec path for automatic v1 OTA hot pushes.
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: UpdateActionDynamic 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: DocsBuildArgsShared source, output, title, base URL, and WASM flags.
server: ServerBindArgsShared 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).
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.
Skip targets whose required host OS or SDK toolchain is unavailable instead of aborting.
verify: boolVerify generated bundle integrity, SHA-256 manifest, zero-JS rules, and release AI-schema stripping.
theme_variants: boolBuild all compiled theme variants (default + theme-* features) for Web targets.
smoke: boolRun a headless smoke verification (--headless --software) after building native binaries.
version: Option<String>Explicit semantic version override (defaults to workspace Cargo.toml version).
form_factor: HarmonyFormFactorArgOptional HarmonyOS device form factor (phone, tablet, pc, foldable, tv, car, wearable).
Check
Checks Rust compilation across one, multiple, or all cross-platform targets.
Fields
Fmt
Runs unified crate-cli text/Rust formatting first, then normalizes indentation inside all euv macro blocks (view!, style!, etc.).
Fields
Doctor
Inspects installed Rust targets, SDKs, and cross-platform tooling readiness.
Fields
New
Scaffolds a new cross-platform euv native project using keyless style! and view!.
Fields
template: ProjectTemplateArgProject template preset (app, web, dynamic-widget, docs).
Targets
Displays the per-target buildability matrix and required SDKs for the current host.
Fields
Clean
Cleans generated bundles (dist/), mobile host caches, icon caches, and stale OTA staging directories.
Fields
Completions
Generates shell tab-completion scripts (bash, zsh, fish, powershell) for all euv subcommands and targets.
Fields
shell: ShellKindArgTarget shell dialect.
Inspect
Queries a live DevAutomationBridge for AI Schema / 9-rule layout anomalies or audits a local dist/ artifact directory.
Trait Implementations§
impl Eq for Commands
Source§impl FromArgMatches for Commands
impl FromArgMatches for Commands
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.impl StructuralPartialEq for Commands
Source§impl Subcommand for Commands
impl Subcommand for Commands
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommandAuto Trait Implementations§
impl Forget for Commands
impl Freeze for Commandswhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<TargetArg>: Freeze,
PhantomData<String>: Freeze,
impl Move for Commands
impl RefUnwindSafe for Commands
impl Send for Commandswhere
RawVecInner: Send,
impl Sync for Commandswhere
RawVecInner: Sync,
impl Unpin for Commands
impl UnsafeUnpin for Commandswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<TargetArg>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for Commandswhere
RawVecInner: UnwindSafe,
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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