pub enum Commands {
Show 40 variants
Run {
task: String,
json: bool,
},
Plan {
task: String,
json: bool,
},
Chat,
Tui,
Launch {
port: u16,
tui: bool,
},
Console {
port: u16,
},
Daemon,
Agent {
action: AgentAction,
},
Swarm {
task: String,
},
Schedule {
task: String,
cron: String,
autonomy: Option<String>,
report: Vec<String>,
},
Model {
set: Option<String>,
list: bool,
},
Route {
action: RouteAction,
},
Auth {
action: AuthAction,
},
Skills {
action: SkillsAction,
},
Plugins {
action: PluginsAction,
},
Tools {
action: ToolsAction,
},
Security {
action: SecurityAction,
},
Github {
action: GithubAction,
},
Compact {
task: Option<String>,
out: Option<PathBuf>,
json: bool,
},
Mcp {
action: McpAction,
},
Checkpoint {
action: CheckpointAction,
},
Rewind {
id: String,
},
Replay {
run_id: String,
scrub: bool,
},
Gateway {
action: GatewayAction,
},
Sessions {
action: SessionAction,
},
Learn,
Init,
Status,
Memory {
action: MemoryAction,
},
Permissions {
action: PermissionAction,
},
Profile {
action: ProfileAction,
},
Import {
source: ImportSource,
},
Config {
edit: bool,
},
Update,
Doctor,
Setup,
Demo,
Share,
Hook {
action: HookAction,
},
Voice {
action: VoiceAction,
},
}Variants§
Run
Run a single agentic task
Fields
Plan
Create a read-only execution plan for a task
Chat
Interactive multi-turn chat
Tui
Launch TUI
Launch
Launch first-run setup, then the WebView cockpit
Fields
Console
Launch webview console (HTTP + WebSocket)
Daemon
Run headless Sparrow runtime daemon
Agent
Manage persistent agents
Fields
action: AgentActionSwarm
Run swarm: planner → coder → verifier
Schedule
Schedule periodic jobs
Fields
Model
Manage model routing
Route
Configure intelligent auto-routing provider
Fields
action: RouteActionAuth
Manage provider credentials
Fields
action: AuthActionSkills
Manage skill library
Fields
action: SkillsActionPlugins
Manage local Sparrow plugins
Fields
action: PluginsActionTools
Inspect and gate toolsets
Fields
action: ToolsActionSecurity
Security audit of config, permissions, plugins, hooks, secrets
Fields
action: SecurityActionGithub
GitHub Action / remote PR workflow
Fields
action: GithubActionCompact
Compact context and write a durable handoff doc
Fields
Mcp
Manage MCP connectors
Checkpoint
List checkpoints
Fields
action: CheckpointActionRewind
Rewind to a checkpoint
Replay
Replay a transcript
Fields
Gateway
Start/stop gateway daemon
Fields
action: GatewayActionSessions
Manage saved sessions
Fields
action: SessionActionLearn
Interactive tutorial
Init
Initialize a project with .sparrow/ config
Status
Show live status (active runs, budget, session)
Memory
Manage persistent memory
Fields
action: MemoryActionPermissions
Inspect and update permission policy
Fields
action: PermissionActionProfile
Profile management
Fields
action: ProfileActionImport
Migrate from OpenClaw
Fields
source: ImportSourceConfig
Edit configuration
Update
Self-update
Doctor
Run diagnostics
Setup
(Re)run conversational setup
Demo
Run a self-contained demo (snake game)
Share latest session as GitHub Gist
Hook
Install or scan security pre-commit hooks
Fields
action: HookActionVoice
Voice commands (speak, transcribe, providers)
Fields
action: VoiceActionTrait 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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