Skip to main content

Command

Enum Command 

Source
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

§name: Option<String>

Container name to build (overrides auto-detection).

§rebuild: bool

Force rebuild even if definition hasn’t changed.

§no_diff: bool

Skip post-build drift check.

§edit: bool

Open config in editor before building.

§

Enable

Install Quadlet systemd files and enable the container.

Fields

§name: Option<String>

Container name (overrides auto-detection / active context).

§

Disable

Disable and remove Quadlet systemd files.

Fields

§name: Option<String>

Container name (overrides auto-detection / active context).

§force: bool

Skip config loading and remove Quadlet files by name only.

§

Start

Start the container.

Fields

§name: Option<String>

Container name (overrides auto-detection / active context).

§timeout: u64

Maximum seconds to wait for the container to become ready.

§edit: bool

Open config in editor before starting.

§

Stop

Stop the container.

Fields

§name: Option<String>

Container name (overrides auto-detection / active context).

§

Shell

Open an interactive shell in the container.

Fields

§name: Option<String>

Container name (overrides auto-detection / active context).

§edit: bool

Open config in editor before entering shell.

§

Exec

Execute a command interactively in the container.

Fields

§root: bool

Run as root inside the container (omit -u flag).

§args: Vec<String>

Command and arguments to execute.

§

Run

Run a GUI application in the container (detached).

Fields

§app: String

Application to run.

§app_args: Vec<String>

Additional arguments for the application.

§

Status

Show container status.

Fields

§name: Option<String>

Container name (overrides auto-detection / active context).

§output: OutputFormat

Output format (text or json).

§

Logs

Show container logs.

Fields

§name: Option<String>

Container name (overrides auto-detection / active context).

§follow: bool

Follow log output.

§tail: Option<u32>

Number of lines to show from the end (default: 50).

§since: Option<String>

Show logs since this duration (e.g. “5m”, “1h”, “2024-01-01”).

§

Export

Export a .desktop app or binary shim to the host.

Fields

§export_cmd: ExportCommand
§

Stats

Show resource usage for the container (wraps podman stats).

Fields

§name: Option<String>

Container name (overrides auto-detection / active context).

§no_stream: bool

Only show one snapshot, don’t stream.

§output: OutputFormat

Output format (text or json).

§

Remove

Remove the container.

Fields

§name: Option<String>

Container name (overrides auto-detection / active context).

§all: bool

Also remove the home directory.

§force: bool

Skip confirmation prompt.

§stale: bool

Remove stale/orphaned containers (no valid config, not running).

§config: bool

Also delete the TOML definition file.

§

Inspect

Inspect container configuration, generated Quadlet, or computed environment.

Fields

§name: Option<String>

Container name (overrides auto-detection / active context).

§config: bool

Show the resolved TOML config.

§quadlet: bool

Show the generated Quadlet (.container file).

§env: bool

Show the computed environment variables.

§output: OutputFormat

Output format (text or json).

§

Serve

Run the host socket server (socket-activated by systemd).

Fields

§name: String

Container name to serve.

§

Compositor

Run the Wayland firewall proxy (systemd companion service).

Fields

§name: String

Container name to proxy.

§

Enter

Enter a container by name (shortcut for –container shell).

Fields

§name: Option<String>

Container name (overrides auto-detection / active context).

§

Create

Create and start a container from a profile or image in one step.

Fields

§image: String

Profile name (fedora, cachy) or full image reference.

§name: Option<String>

Override the container name.

§packages: Option<String>

Comma-separated list of packages to install (e.g. “fastfetch,btop”).

§no_start: bool

Skip starting the container after setup.

§edit: bool

Open config in editor before creating.

§

Edit

Open the container config in your preferred editor.

Fields

§name: Option<String>

Container name (overrides auto-detection / active context).

§rebuild: bool

After saving, rebuild the image if image config changed.

§

List

List all managed containers.

Fields

§output: OutputFormat

Output format (text or json).

§

Clone

Clone an existing container config to a new name.

Fields

§src: String

Source container name.

§dst: String

Destination container name.

§copy_home: bool

Also copy the home directory contents.

§

Init

Initialize a new container config.

Fields

§image: Option<String>

Base image reference (e.g. “fedora:44”) for a non-prebuilt container. If omitted, defaults to “fedora:44”.

§name: Option<String>

Container name (defaults to the image name).

§interactive: bool

Run an interactive wizard to build the config.

§profile: Option<String>

Use a named profile (cachy, fedora, dev) as template.

§

Update

Pull the latest image and restart the container.

Fields

§name: Option<String>

Container name (overrides auto-detection / active context).

§no_restart: bool

Skip restart after update.

§

Pull

Pull a prebuilt image without building.

Fields

§image: Option<String>

Distro shorthand or full image reference.

§

Profile

Manage container profiles.

Fields

§profile_cmd: ProfileCommand
§

Doctor

Run diagnostic checks.

Fields

§fix: bool

Auto-fix common issues (e.g. corrupted Wayland socket ownership).

§output: OutputFormat

Output format (text or json).

§

Completions

Generate shell completions.

Fields

§shell: Shell

Shell to generate completions for.

§

Diff

Compare declared packages against the running container.

Fields

§name: Option<String>

Container name (overrides auto-detection / active context).

§apply: bool

Update the config TOML’s install list to match the container.

§output: OutputFormat

Output format (text or json).

§

Snapshot

Snapshot the current container state as a tagged image.

Fields

§snapshot_cmd: SnapshotCommand
§

Restore

Restore a container from a snapshot.

Fields

§tag: String

Tag of the snapshot to restore.

§name: Option<String>

Container name (overrides auto-detection / active context).

§

Use

Set or show active context.

Fields

§name: Option<String>

Container name to set as active (omit to show current context).

§clear: bool

Clear the active context.

§

FindDefinition

Find the definition file that would be used.

Fields

§name: Option<String>

Container name (overrides auto-detection / active context).

§

TranslatePath

Translate a path between host and container.

Fields

§to_container: bool

Direction of translation.

§to_host: bool

Direction of translation.

§path: String

Path to translate.

Trait Implementations§

Source§

impl FromArgMatches for Command

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 Command

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> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> Same for T

Source§

type Output = T

Should always be Self
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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more