pub enum Command {
Show 33 variants
Build {
name: Option<String>,
rebuild: bool,
no_diff: bool,
edit: bool,
},
Enable {
name: Option<String>,
},
Disable {
name: Option<String>,
force: bool,
},
Start {
name: Option<String>,
timeout: u64,
edit: bool,
},
Stop {
name: Option<String>,
},
Shell {
name: Option<String>,
edit: bool,
},
Exec {
root: bool,
args: Vec<String>,
},
Run {
app: String,
app_args: Vec<String>,
},
Status {
name: Option<String>,
output: OutputFormat,
},
Logs {
name: Option<String>,
follow: bool,
tail: Option<u32>,
since: Option<String>,
},
Export {
export_cmd: ExportCommand,
},
Stats {
name: Option<String>,
no_stream: bool,
output: OutputFormat,
},
Remove {
name: Option<String>,
all: bool,
force: bool,
stale: bool,
config: bool,
},
Inspect {
name: Option<String>,
config: bool,
quadlet: bool,
env: bool,
output: OutputFormat,
},
Serve {
name: String,
},
Compositor {
name: String,
},
Enter {
name: Option<String>,
},
Create {
image: String,
name: Option<String>,
packages: Option<String>,
no_start: bool,
edit: bool,
},
Edit {
name: Option<String>,
rebuild: bool,
},
List {
output: OutputFormat,
},
Clone {
src: String,
dst: String,
copy_home: bool,
},
Init {
image: Option<String>,
name: Option<String>,
interactive: bool,
profile: Option<String>,
},
Update {
name: Option<String>,
no_restart: bool,
},
Pull {
image: Option<String>,
},
Profile {
profile_cmd: ProfileCommand,
},
Doctor {
fix: bool,
output: OutputFormat,
},
Completions {
shell: Shell,
},
Diff {
name: Option<String>,
apply: bool,
output: OutputFormat,
},
Snapshot {
snapshot_cmd: SnapshotCommand,
},
Restore {
tag: String,
name: Option<String>,
},
Use {
name: Option<String>,
clear: bool,
},
FindDefinition {
name: Option<String>,
},
TranslatePath {
to_container: bool,
to_host: bool,
path: String,
},
}Variants§
Build
Build the container image from the definition.
Fields
Enable
Install Quadlet systemd files and enable the container.
Disable
Disable and remove Quadlet systemd files.
Fields
Start
Start the container.
Fields
Stop
Stop the container.
Shell
Open an interactive shell in the container.
Fields
Exec
Execute a command interactively in the container.
Fields
Run
Run a GUI application in the container (detached).
Fields
Status
Show container status.
Fields
output: OutputFormatOutput format (text or json).
Logs
Show container logs.
Fields
Export
Export a .desktop app or binary shim to the host.
Fields
export_cmd: ExportCommandStats
Show resource usage for the container (wraps podman stats).
Fields
output: OutputFormatOutput format (text or json).
Remove
Remove the container.
Fields
Inspect
Inspect container configuration, generated Quadlet, or computed environment.
Fields
output: OutputFormatOutput format (text or json).
Serve
Run the host socket server (socket-activated by systemd).
Compositor
Run the Wayland firewall proxy (systemd companion service).
Enter
Enter a container by name (shortcut for –container
Create
Create and start a container from a profile or image in one step.
Fields
Edit
Open the container config in your preferred editor.
Fields
List
List all managed containers.
Fields
output: OutputFormatOutput format (text or json).
Clone
Clone an existing container config to a new name.
Fields
Init
Initialize a new container config.
Fields
Update
Pull the latest image and restart the container.
Fields
Pull
Pull a prebuilt image without building.
Profile
Manage container profiles.
Fields
profile_cmd: ProfileCommandDoctor
Run diagnostic checks.
Fields
output: OutputFormatOutput format (text or json).
Completions
Generate shell completions.
Diff
Compare declared packages against the running container.
Fields
output: OutputFormatOutput format (text or json).
Snapshot
Snapshot the current container state as a tagged image.
Fields
snapshot_cmd: SnapshotCommandRestore
Restore a container from a snapshot.
Fields
Use
Set or show active context.
Fields
FindDefinition
Find the definition file that would be used.
TranslatePath
Translate a path between host and container.
Trait Implementations§
Source§impl FromArgMatches for Command
impl FromArgMatches for Command
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 Command
impl Subcommand for Command
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 Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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