pub enum Commands {
Show 33 variants
Init,
List,
Models,
ModelInfo {
model: String,
},
Chat,
Version,
Status,
Doctor {
format: OutputFormat,
},
SelfTest {
format: OutputFormat,
keep_workspace: bool,
},
Tasks {
limit: usize,
},
Task {
id: String,
},
Processes {
limit: usize,
},
Logs {
id: String,
},
Stop {
id: String,
},
Restart {
id: String,
},
Open {
target: String,
},
Ports,
Approvals,
Approve {
id: String,
},
Deny {
id: String,
},
ToolRuns {
limit: usize,
},
Checkpoints {
limit: usize,
},
Restore {
id: String,
},
Plugin {
command: PluginCommand,
},
Daemon {
command: DaemonCommand,
},
Pair {
label: Option<String>,
},
Qa {
command: QaCommand,
},
Add {
name: String,
},
Remove {
name: String,
},
Mcp,
Pr {
command: PrCommand,
},
CloudSetup,
Run {
prompt: String,
format: OutputFormat,
max_tokens: Option<usize>,
no_execute: bool,
},
}Variants§
Init
Initialize configuration
List
List available models
Models
List model/provider capability records
ModelInfo
Show static and cached capability info for a model id
Chat
Start a chat session (default)
Version
Show version information
Status
Check status of dependencies and backends
Doctor
Check first-run readiness and explain what Mermaid can do now
Fields
format: OutputFormatOutput format (text, json, markdown)
SelfTest
Run fast deterministic Mermaid self-tests
Fields
format: OutputFormatOutput format (text, json, markdown)
Tasks
List durable runtime tasks
Task
Show one durable runtime task and its timeline
Processes
List Mermaid-managed background processes
Logs
Print a managed process log
Stop
Stop a managed process
Restart
Restart a managed process
Open
Open a URL, file, or managed process URL
Ports
Show listening TCP ports
Approvals
List pending approvals
Approve
Approve a pending approval record
Deny
Deny a pending approval record
ToolRuns
List recent persisted tool runs
Checkpoints
List checkpoints
Restore
Restore a checkpoint by id
Plugin
Manage Mermaid plugin bundles
Fields
command: PluginCommandDaemon
Manage Mermaid’s Linux background service
Fields
command: DaemonCommandPair
Create a remote pairing token
Qa
Internal self-QA commands. Hidden from normal help output.
Add
Add an MCP server (e.g., mermaid add context7)
Remove
Remove a configured MCP server
Mcp
List configured MCP servers
Pr
Create a pull/merge request from the current branch via the host CLI
(gh for GitHub, glab for GitLab)
CloudSetup
Configure Ollama Cloud API key (interactive prompt). Run this from your shell before starting mermaid — it reads stdin and doesn’t work from inside the TUI.
Run
Run a single prompt non-interactively
Trait Implementations§
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.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 Freeze for Commands
impl RefUnwindSafe for Commands
impl Send for Commands
impl Sync for Commands
impl Unpin for Commands
impl UnsafeUnpin for Commands
impl UnwindSafe for Commands
Blanket Implementations§
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> 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