id = "lima"
name = "Lima"
homepage = "https://lima-vm.io"
description = "Lima launches Linux virtual machines with automatic file sharing and port forwarding (similar to WSL2)."
executables = ["lima", "limactl"]
[dotfiles]
paths = [
"~/.lima/_config/default.yaml",
"~/.lima/_config/override.yaml",
"~/.lima/_config/base.yaml",
"~/.lima/_config/networks.yaml",
"~/.lima/_templates/",
]
secret = ["~/.lima/_config/user"]
[[dotfiles.machine_lines]]
file = "~/.lima/_config/networks.yaml"
match = { key_path = ["paths.socketVMNet", "paths.varRun", "paths.sudoers"] }
scope = "platform"
[[dotfiles.machine_lines]]
file = "~/.lima/_config/networks.yaml"
match = { key_path = ["networks.*.interface"] }
scope = "backup"
[commands]
format = 1
label = "Manage Lima VMs"
description = "List, start, stop and open a shell in Lima instances via limactl. Creation templates, copy and delete are left out."
quality = "ai-draft"
base = "fig:limactl"
parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = false }
[[commands.source]]
id = "fig"
kind = "completion"
url = "https://github.com/withfig/autocomplete/blob/master/src/limactl.ts"
license = "MIT"
[[commands.subcommand]]
path = ["list"]
label = "List instances"
[[commands.subcommand.source]]
id = "fig"
kind = "completion"
url = "https://github.com/withfig/autocomplete/blob/master/src/limactl.ts"
license = "MIT"
[[commands.subcommand.field]]
id = "json"
label = "JSON output"
type = "boolean"
option = ["--json"]
sources = ["fig"]
[[commands.subcommand.field]]
id = "quiet"
label = "Names only"
type = "boolean"
option = ["-q", "--quiet"]
sources = ["fig"]
[[commands.subcommand.group]]
id = "basic"
label = "Basic"
fields = ["json", "quiet"]
[[commands.subcommand]]
path = ["start"]
label = "Start an instance"
[[commands.subcommand.source]]
id = "fig"
kind = "completion"
url = "https://github.com/withfig/autocomplete/blob/master/src/limactl.ts"
license = "MIT"
[[commands.subcommand.field]]
id = "target"
label = "Instance, template file or URL"
type = "string"
position = 0
sources = ["fig"]
[[commands.subcommand.field]]
id = "tty"
label = "Interactive editor"
type = "boolean"
option = ["--tty"]
sources = ["fig"]
[[commands.subcommand.task]]
id = "start"
label = "Start instance"
fields = ["target"]
required = ["target"]
[[commands.subcommand.group]]
id = "basic"
label = "Basic"
fields = ["target", "tty"]
[[commands.subcommand]]
path = ["stop"]
label = "Stop an instance"
[[commands.subcommand.source]]
id = "fig"
kind = "completion"
url = "https://github.com/withfig/autocomplete/blob/master/src/limactl.ts"
license = "MIT"
[[commands.subcommand.field]]
id = "instance"
label = "Instance"
type = "string"
position = 0
sources = ["fig"]
[[commands.subcommand.field]]
id = "force"
label = "Force stop"
type = "boolean"
option = ["-f", "--force"]
effect = "exec"
sources = ["fig"]
[[commands.subcommand.group]]
id = "basic"
label = "Basic"
fields = ["instance", "force"]
[[commands.subcommand]]
path = ["shell"]
label = "Open a shell"
[[commands.subcommand.source]]
id = "fig"
kind = "completion"
url = "https://github.com/withfig/autocomplete/blob/master/src/limactl.ts"
license = "MIT"
[[commands.subcommand.field]]
id = "instance"
label = "Instance"
type = "string"
position = 0
sources = ["fig"]
[[commands.subcommand.field]]
id = "workdir"
label = "Working directory"
type = "string"
option = ["--workdir"]
sources = ["fig"]
[[commands.subcommand.group]]
id = "basic"
label = "Basic"
fields = ["instance", "workdir"]