Skip to main content

Command

Enum Command 

Source
pub enum Command {
Show 25 variants Models { command: ModelsCommand, }, Download { name: Option<String>, draft: bool, }, Update { version: Option<String>, flavor: Option<BinaryFlavor>, detect_flavor: bool, }, Gpus { json: bool, command: Option<GpuCommand>, }, Runtime { command: Option<RuntimeCommand>, }, Config { command: ConfigCommand, }, Doctor { json: bool, command: Option<DoctorCommand>, }, Setup { yes: bool, no_interactive: bool, service: bool, no_service: bool, skip_runtime: bool, verbose: bool, }, Uninstall { dry_run: bool, yes: bool, keep_cache: bool, keep_service_files: bool, purge_config: bool, keep_config: bool, binary_path: Option<PathBuf>, json: bool, verbose: bool, }, Load { name: String, port: u16, }, Unload { name: String, port: u16, }, Status { port: u16, }, Discover { name: Option<String>, model: Option<String>, min_vram: Option<f64>, region: Option<String>, auto: bool, relay: Vec<String>, }, RotateKey, Goose { model: Option<String>, port: u16, }, Claude { model: Option<String>, port: u16, }, Pi { model: Option<String>, host: String, write: bool, }, Opencode { model: Option<String>, host: String, write: bool, }, Stop, Plugin { command: PluginCommand, }, Skills { command: SkillCommand, }, Benchmark { command: BenchmarkCommand, }, ModelPrepare {
Show 16 fields source_repo: Option<String>, quant: Option<String>, target: Option<String>, model_id: Option<String>, flavor: String, timeout: String, mesh_llm_ref: String, dry_run: bool, confirm: bool, follow: bool, json: bool, status: Option<String>, logs: Option<String>, cancel: Option<String>, list: bool, update_script: bool,
}, Auth { command: AuthCommand, }, ExternalPlugin(Vec<OsString>),
}

Variants§

§

Models

Manage model storage, migration, and update checks.

Fields

§

Download

Download a model from the remote catalog or Hugging Face

Fields

§name: Option<String>

Model name (e.g. “Qwen2.5-32B-Instruct-Q4_K_M” or just “32b”)

§draft: bool

Also download the recommended draft model for speculative decoding

§

Update

Update mesh-llm to a bundled release and exit.

Fields

§version: Option<String>

Install this specific release tag or version (e.g. v0.60.0 or 0.60.0-rc.1).

§flavor: Option<BinaryFlavor>

Install this release bundle flavor instead of the default installed flavor.

§detect_flavor: bool

Re-detect the best host backend flavor before selecting the release bundle.

§

Gpus

Inspect local GPUs, stable IDs, and cached bandwidth.

Fields

§json: bool

Print machine-readable JSON output.

§

Runtime

Inspect and manage native runtimes.

Fields

§

Config

Inspect and validate mesh-llm configuration files.

Fields

§

Doctor

Diagnose local mesh, runtime, and split-readiness problems.

Fields

§json: bool

Print machine-readable JSON for the default doctor report.

§

Setup

Bootstrap a new installation.

Fields

§yes: bool

Automatically answer yes to prompts.

§no_interactive: bool

Run without prompting for interactive input.

§service: bool

Install and enable the mesh-llm service.

§no_service: bool

Skip installing and enabling the mesh-llm service.

§skip_runtime: bool

Skip downloading or configuring the native runtime.

§verbose: bool

Print detailed setup paths, commands, and follow-up guidance.

§

Uninstall

Remove mesh-llm binaries, service files, and optional caches.

Fields

§dry_run: bool

Print what would be removed without changing the machine.

§yes: bool

Do not prompt before removing files and services.

§keep_cache: bool

Preserve native runtime caches.

§keep_service_files: bool

Preserve setup-owned service helper files.

§purge_config: bool

Also remove ~/.mesh-llm configuration and identity data.

§keep_config: bool

Explicitly preserve ~/.mesh-llm configuration and identity data.

§binary_path: Option<PathBuf>

Override the installed binary path to remove.

§json: bool

Print machine-readable JSON.

§verbose: bool

Print detailed cleanup steps and removed paths.

§

Load

Load a local model into a running mesh-llm instance.

Fields

§name: String

Model name/path/url to load

§port: u16

Console/API port of the running mesh-llm instance (default: 3131)

§

Unload

Unload a local model from a running mesh-llm instance.

Fields

§name: String

Model name to unload

§port: u16

Console/API port of the running mesh-llm instance (default: 3131)

§

Status

Show local model status on a running mesh-llm instance.

Fields

§port: u16

Console/API port of the running mesh-llm instance (default: 3131)

§

Discover

Discover meshes and optionally auto-join one.

Fields

§name: Option<String>

Filter by mesh name (case-insensitive exact match)

§model: Option<String>

Filter by model name (substring match)

§min_vram: Option<f64>

Filter by minimum VRAM (GB)

§region: Option<String>

Filter by region

§auto: bool

Print the invite token of the best match (for piping to –join)

§relay: Vec<String>

Nostr relay URLs (default: see DEFAULT_RELAYS)

§

RotateKey

Rotate all identity keys (node + Nostr).

§

Goose

Launch Goose with mesh-llm as the inference provider.

If no mesh is running on –port, this auto-joins the mesh as a client.

Fields

§model: Option<String>

Model id to use from /v1/models (default: auto = mesh picks best)

§port: u16

API port for mesh-llm (default: 9337)

§

Claude

Launch Claude Code with mesh-llm as the inference provider.

If no mesh is running on –port, this auto-joins the mesh as a client.

Fields

§model: Option<String>

Model id to use from /v1/models (default: auto = mesh picks best)

§port: u16

API port for mesh-llm (default: 9337)

§

Pi

Launch pi with mesh-llm as the inference provider.

If no mesh is running on a loopback/localhost target, this auto-joins the mesh as a client. Writes a mesh provider into ~/.pi/agent/models.json and launches pi unless –write is set.

Fields

§model: Option<String>

Model id to use from /v1/models (default: auto = mesh picks best)

§host: String

mesh-llm host or URL for Pi (default: 127.0.0.1:9337)

§write: bool

Write the mesh provider config to Pi’s models.json instead of launching.

§

Opencode

Launch OpenCode with mesh-llm as the inference provider.

If no mesh is running on a loopback/localhost target, this auto-joins the mesh as a client.

Fields

§model: Option<String>

Model id to use from /v1/models (default: auto = mesh picks best)

§host: String

mesh-llm host or URL for OpenCode (default: 127.0.0.1:9337)

§write: bool

Write the mesh provider config to opencode’s config file instead of launching.

§

Stop

Stop running mesh-llm processes.

§

Plugin

Plugin management.

Fields

§

Skills

Install agent skills exposed by installed plugins.

Fields

§

Benchmark

Benchmark and compare model/runtime strategies.

Fields

§

ModelPrepare

Prepare a model for distributed inference by splitting it into per-layer files on HF compute.

Submits an HF Job that builds skippy-model-package from source, splits the model, publishes the layer package, and updates the meshllm/catalog.

Fields

§source_repo: Option<String>

Source HuggingFace model ref (e.g. unsloth/Qwen3-235B-A22B-GGUF:UD-Q4_K_XL).

§quant: Option<String>

Quantization variant (deprecated; prefer source refs like repo:Q4_K_M).

§target: Option<String>

Target repo for the layer package (auto-derived if omitted).

§model_id: Option<String>

Override model ID in the manifest.

§flavor: String

HF Job hardware flavor. Use auto for the default CPU splitter baseline.

§timeout: String

Requested job timeout; raised automatically by model-size minimums.

§mesh_llm_ref: String

Branch or tag of mesh-llm to build in the job [default: main].

§dry_run: bool

Explicitly keep this as a dry run. This is the default unless –confirm is set.

§confirm: bool

Actually submit the HF Job. Without this, the command only prints plan, spec, and max cost.

§follow: bool

Stream job logs after submission until completion.

§json: bool

Emit JSON output.

§status: Option<String>

Check status of a previously submitted job.

§logs: Option<String>

Fetch logs for a previously submitted job.

§cancel: Option<String>

Cancel a running job.

§list: bool

List recent model-package jobs.

§update_script: bool

Upload the latest job script to the meshllm bucket (requires org access).

§

Auth

Manage owner identity and keystore.

Fields

§command: AuthCommand
§

ExternalPlugin(Vec<OsString>)

Run a CLI command contributed by a configured plugin.

Trait Implementations§

Source§

impl Debug for Command

Source§

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

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

impl FromArgMatches for Command

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 Subcommand for Command

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> 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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.