pub enum Commands {
Show 20 variants
Providers {
command: ProviderCommands,
},
Keys {
command: KeyCommands,
},
Logs {
command: LogCommands,
},
Usage {
command: Option<UsageCommands>,
days: Option<u32>,
tokens_only: bool,
requests_only: bool,
limit: usize,
},
Config {
command: Option<ConfigCommands>,
},
Chat {
model: Option<String>,
provider: Option<String>,
cid: Option<String>,
tools: Option<String>,
database: Option<String>,
debug: bool,
images: Vec<String>,
},
Models {
command: Option<ModelsCommands>,
query: Option<String>,
tools: bool,
reasoning: bool,
vision: bool,
audio: bool,
code: bool,
context_length: Option<String>,
input_length: Option<String>,
output_length: Option<String>,
input_price: Option<f64>,
output_price: Option<f64>,
},
Alias {
command: AliasCommands,
},
Templates {
command: TemplateCommands,
},
Proxy {
port: u16,
host: String,
provider: Option<String>,
model: Option<String>,
api_key: Option<String>,
generate_key: bool,
},
Mcp {
command: McpCommands,
},
Embed {
model: String,
provider: Option<String>,
database: Option<String>,
files: Vec<String>,
text: Option<String>,
debug: bool,
},
Similar {
model: Option<String>,
provider: Option<String>,
database: String,
limit: usize,
query: String,
},
Vectors {
command: VectorCommands,
},
WebChatProxy {
command: WebChatProxyCommands,
},
Sync {
command: SyncCommands,
},
Search {
command: SearchCommands,
},
Image {
prompt: String,
model: Option<String>,
provider: Option<String>,
size: String,
count: u32,
output: Option<String>,
debug: bool,
},
DumpMetadata {
provider: Option<String>,
list: bool,
},
Completions {
shell: CompletionShell,
},
}Variants§
Providers
Provider management (alias: p)
Fields
command: ProviderCommandsKeys
API key management (alias: k)
Fields
command: KeyCommandsLogs
Log management (alias: l)
Fields
command: LogCommandsUsage
Usage statistics and analytics (alias: u)
Fields
command: Option<UsageCommands>Config
Configuration management (alias: co)
Fields
command: Option<ConfigCommands>Chat
Interactive chat mode (alias: c)
Fields
Models
Global models management (alias: m)
Fields
command: Option<ModelsCommands>Alias
Model alias management (alias: a)
Fields
command: AliasCommandsTemplates
Template management (alias: t)
Fields
command: TemplateCommandsProxy
Proxy server (alias: pr)
Fields
Mcp
MCP server management
Fields
command: McpCommandsEmbed
Generate embeddings for text (alias: e)
Fields
Similar
Find similar text using vector similarity (alias: s)
Fields
Vectors
Vector database management (alias: v)
Fields
command: VectorCommandsWebChatProxy
Web chat proxy for non-OpenAI compatible services (alias: w)
Fields
command: WebChatProxyCommandsSync
Sync configuration files to/from cloud providers (alias: sy)
Fields
command: SyncCommandsSearch
Search provider management (alias: se)
Fields
command: SearchCommandsImage
Generate images from text prompts (alias: img)
Fields
DumpMetadata
Dump metadata JSON from models cache (alias: dump)
Fields
Completions
Generate shell completions
Fields
shell: CompletionShellShell to generate completions for
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 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