Skip to main content

RuntimeCommand

Enum RuntimeCommand 

Source
pub enum RuntimeCommand {
Show 17 variants List { available: bool, installed: bool, manifest: Option<PathBuf>, bundle_dirs: Vec<PathBuf>, cache_dir: Option<PathBuf>, json: bool, }, Install { runtime: Option<String>, manifest: Option<PathBuf>, bundle_dirs: Vec<PathBuf>, cache_dir: Option<PathBuf>, json: bool, }, Remove { native_runtime_id: String, mesh_version: Option<String>, cache_dir: Option<PathBuf>, json: bool, }, Prune { active_only: bool, mesh_version: Option<String>, cache_dir: Option<PathBuf>, json: bool, }, Status { port: u16, }, Bootstrap { port: u16, json: bool, }, GetConfig { endpoint: String, port: u16, json: bool, }, ScanRefresh { endpoint: String, port: u16, json: bool, }, LoadModel { endpoint: String, model: String, profile: Option<String>, port: u16, json: bool, }, UnloadModel { endpoint: String, model: Option<String>, instance_id: Option<String>, port: u16, json: bool, }, EnsureModel { endpoint: String, model: String, profile: Option<String>, port: u16, json: bool, }, DrainModel { endpoint: String, model: Option<String>, instance_id: Option<String>, port: u16, json: bool, }, RefreshInventory { endpoint: String, port: u16, json: bool, }, ApplyConfig { endpoint: String, expected_revision: u64, config: PathBuf, port: u16, json: bool, }, Load { name: String, port: u16, }, Unload { name: String, port: u16, }, Guardrails { mode: MeshGuardrailCliMode, port: u16, json: bool, },
}

Variants§

§

List

List available or locally discoverable native runtimes.

Fields

§available: bool

List release-manifest or bundled runtimes instead of installed runtimes.

§installed: bool

List locally discoverable native runtimes. This is the default.

§manifest: Option<PathBuf>

Release manifest JSON to inspect.

§bundle_dirs: Vec<PathBuf>

Packaged native runtime directory to inspect. Repeatable.

§cache_dir: Option<PathBuf>

Override the native runtime cache root.

§json: bool

Print machine-readable JSON.

§

Install

Install the recommended native runtime, or an explicit flavor/runtime ID.

Fields

§runtime: Option<String>

Optional runtime flavor or native runtime ID. Omit to install the recommended runtime.

§manifest: Option<PathBuf>

Release manifest JSON to resolve against.

§bundle_dirs: Vec<PathBuf>

Packaged native runtime directory to install from. Repeatable.

§cache_dir: Option<PathBuf>

Override the native runtime cache root.

§json: bool

Print machine-readable JSON.

§

Remove

Remove an installed native runtime.

Fields

§native_runtime_id: String

Native runtime ID to remove.

§mesh_version: Option<String>

MeshLLM version. Defaults to the running MeshLLM version.

§cache_dir: Option<PathBuf>

Override the native runtime cache root.

§json: bool

Print machine-readable JSON.

§

Prune

Prune old native runtimes from the cache.

Fields

§active_only: bool

Remove every runtime not matching the active MeshLLM version.

§mesh_version: Option<String>

Override the active MeshLLM version. Defaults to the running version.

§cache_dir: Option<PathBuf>

Override the native runtime cache root.

§json: bool

Print machine-readable JSON.

§

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)

§

Bootstrap

Show the local-only owner-control bootstrap policy for a running mesh-llm instance.

Fields

§port: u16

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

§json: bool

Print the raw JSON payload.

§

GetConfig

Fetch config from a remote owner-control endpoint through the local management API.

Fields

§endpoint: String

Explicit owner-control endpoint token for the target node.

§port: u16

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

§json: bool

Print the raw JSON payload.

§

ScanRefresh

Scan and refresh inventory on a remote owner-control endpoint.

Fields

§endpoint: String

Explicit owner-control endpoint token for the target node.

§port: u16

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

§json: bool

Print the raw JSON payload.

§

LoadModel

Load a model on a remote node through owner-control.

Fields

§endpoint: String

Explicit owner-control endpoint token for the target node.

§model: String

Model canonical reference to load.

§profile: Option<String>

Optional runtime profile to apply.

§port: u16

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

§json: bool

Print machine-readable JSON.

§

UnloadModel

Unload a model on a remote node through owner-control.

Fields

§endpoint: String

Explicit owner-control endpoint token for the target node.

§model: Option<String>

Model canonical reference to unload.

§instance_id: Option<String>

Exact instance ID to unload.

§port: u16

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

§json: bool

Print machine-readable JSON.

§

EnsureModel

Ensure a model is loaded on a remote node through owner-control.

Fields

§endpoint: String

Explicit owner-control endpoint token for the target node.

§model: String

Model canonical reference to ensure loaded.

§profile: Option<String>

Optional runtime profile to maintain.

§port: u16

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

§json: bool

Print machine-readable JSON.

§

DrainModel

Drain and unload a model on a remote node through owner-control.

Fields

§endpoint: String

Explicit owner-control endpoint token for the target node.

§model: Option<String>

Model canonical reference to drain.

§instance_id: Option<String>

Exact instance ID to drain.

§port: u16

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

§json: bool

Print machine-readable JSON.

§

RefreshInventory

Refresh local inventory on a remote owner-control endpoint through the local management API.

Fields

§endpoint: String

Explicit owner-control endpoint token for the target node.

§port: u16

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

§json: bool

Print the raw JSON payload.

§

ApplyConfig

Apply config to a remote owner-control endpoint through the local management API.

Fields

§endpoint: String

Explicit owner-control endpoint token for the target node.

§expected_revision: u64

Expected remote config revision for CAS.

§config: PathBuf

TOML config file to apply remotely.

§port: u16

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

§json: bool

Print the raw JSON payload.

§

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)

§

Guardrails

Set mesh guardrail mode on running Skippy-backed models without restart.

Fields

§mode: MeshGuardrailCliMode

Guardrail mode to apply to active Skippy-backed OpenAI surfaces.

§port: u16

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

§json: bool

Print the raw JSON payload.

Trait Implementations§

Source§

impl Debug for RuntimeCommand

Source§

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

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

impl FromArgMatches for RuntimeCommand

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 RuntimeCommand

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.