Skip to content
On this page

saya vm ls

List virtual machines

Synopsis

List virtual machine handle by this session of saya.

saya vm ls [OPTIONS] [ID]

Examples


- full table
  saya vm ls

  - display vm by id
  saya vm ls <id>

- full table using format (mind table in format; TAB separator are mandatory)
saya vm ls --format 'table {{.Id}}\t{{.Name}}\t{{.BaseImg}}\t{{.Status}}\t{{.OsVar}}\t{{.Arch}}\t{{.ComputeType}}'

- output <id>:<name> 
  saya vm ls --format '{{.Id}}:{{.Name}}'

- filtering
  saya vm ls --filter compute-type=qemu --filter os-variant=alpine --filter arch=amd64 --filter status=stopped --filter base-image=bloblo:v1* --filter label=owner=dev

Options

      --filter strings      --filter compute-type=qemu --filter os-variant=alpine --filter arch=amd64 --filter status=stopped --filter base-image=bloblo:v1* --filter label=owner=dev'
      --format string       --format 'table {{.Name}}\t{{.Tag}}\t{{.OsVar}}\t{{.Platform}}\t{{.Created}}\t{{.Size}}'
  -h, --help                help for ls
      --result-dst string   --result-dst <new-file-path-to-create-and-write-result-to>, output to stdout if not provided

Options inherited from parent commands

      --config string        config file (default is .saya.yaml file found in the current working directory or  $HOME/.saya or /etc/saya/.saya.yaml
      --forge string         path of the directory that holds saya runtime data(e.g. local repository, VM data, transient session data, etc)
  -l, --license-key string   license key to use saya
      --log-level string     logging level, error|warn|info|debug|trace (default "info")

SEE ALSO