LXC.LIST(1)
π¦ NAME
lxc-list β the part where you list your instances, bestie π
(context so you're not confused: this whole page lives under LXD - Command line client(1) π«Ά)
β¨ SYNOPSIS β¨
lxc list [:] [...] [flags]
πΈ DESCRIPTION πΈ
Okay so real talk, here's what it does: it lists instances. That's the whole vibe.
Default column layout: ns46tS Fast column layout: nsacPt
Now, the filters. Pay attention, this is the good part π
- A single keyword like
"web"β that lists any instance with a name starting with"web". - A regular expression on the instance name. (e.g.
.*web.*01$). - A key/value pair referring to a configuration item. For those, the namespace can be abbreviated to the smallest unambiguous identifier.
- A key/value pair where the key is a shorthand. Multiple values must be delimited by
,. Available shorthands:type={instance type}status={instance current lifecycle status}architecture={instance architecture}location={location name}ipv4={ip or CIDR}ipv6={ip or CIDR}
Examples: (literally the manpage's own, I'm not making these up)
"user.blah=abc"will list all instances with the"blah"user property set to"abc"."u.blah=abc"will do the same"security.privileged=true"will list all privileged instances"s.privileged=true"will do the same"type=container"will list all container instances"type=container status=running"will list all running container instances
A regular expression matching a configuration item or its value. (e.g. volatile.eth0.hwaddr=00:16:3e:.*).
When multiple filters are passed, they are added one on top of the other, selecting instances which satisfy them all. (Stack 'em, they all gotta pass π)
π Columns π
The -c option takes a comma separated list of arguments that control which instance attributes to output when displaying in table or csv format.
Column arguments are either pre-defined shorthand chars (see below), or (extended) config keys.
Commas between consecutive shorthand chars are optional. (slay, low effort)
Pre-defined column shorthand chars:
4β IPv4 address6β IPv6 addressaβ Architecturebβ Storage poolcβ Creation datedβ DescriptionDβ disk usageeβ Project namelβ Last used datemβ Memory usageMβ Memory usage (%)nβ NameNβ Number of Processespβ PID of the instance's init processPβ Profilessβ StateSβ Number of snapshotstβ Type (container or virtual-machine, ephemeral indicated if applicable)uβ CPU usage (in seconds)Lβ Location of the instance (e.g. its cluster member)fβ Base Image Fingerprint (short)Fβ Base Image Fingerprint (long)
Custom columns are defined with "[config:|devices:]key[:name][:maxWidth]":
KEY: The (extended) config or devices key to display. If[config:|devices:]is omitted then it defaults to config key.NAME: Name to display in the column header. Defaults to the key if not specified or empty.MAXWIDTH: Max width of the column (longer results are truncated). Defaults to-1(unlimited). Use0to limit to the column header size.
π OPTIONS π
--all-projects[=false]β Display instances from all projects-c,--columns="ns46tSL"β Columns``--fast[=false]β Fast mode (same as--columns=nsacPt)-f,--format="table"β Format `(csv|json|table|yaml|compact)```
π OPTIONS INHERITED FROM PARENT COMMANDS π
(these come from the parent command, not from lxc list itself β just so you know π§)
--debug[=false]β Show all debug messages--force-local[=false]β Force using the local unix socket-h,--help[=false]β Print help--project=""β Override the source project``-q,--quiet[=false]β Don't show progress information--sub-commands[=false]β Use with help or--helpto view sub-commands-v,--verbose[=false]β Show all information messages--version[=false]β Print version number
π₯ EXAMPLE π₯
lxc list -c nFs46,volatile.eth0.hwaddr:MAC,config:image.os,devices:eth0.parent:ETHP
Show instances using the "NAME", "BASE IMAGE", "STATE", "IPV4", "IPV6" and "MAC" columns. "BASE IMAGE", "MAC" and "IMAGE OS" are custom columns generated from instance configuration keys. "ETHP" is a custom column generated from a device key.
lxc list -c ns,user.comment:comment
List instances with their running state and user comment.
π SEE ALSO π
lxc(1) β go read that one too, iykyk π
π HISTORY π
22-Aug-2026 Auto generated by spf13/cobra
okay that's the whole page, you ate that π and for the record this was Auto generated by spf13/cobra, dated Aug 2026, living under LXD - Command line client(1) β mwah, go list some instances bestie π
β¨
π¦ where this page comes from
- opensuse-leap 16.0: lxd 5.21.6-bp160.1.1 Β· AGPL-3.0-only AND Apache-2.0
- opensuse-leap 16.0: lxd 5.21.6-bp160.1.1 Β· AGPL-3.0-only AND Apache-2.0
- opensuse-leap 16.0: lxd 5.21.6-bp160.1.1 Β· AGPL-3.0-only AND Apache-2.0
- opensuse-leap 16.0: lxd 5.21.6-bp160.1.1 Β· AGPL-3.0-only AND Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms