img-cli

task

Check, wait for, and list generation tasks recorded on this machine.

Quick start

img-cli task list
img-cli task wait 8a1c2e44b0f1 -o out/

Subcommands

  • get: show a task
  • wait: wait for a task to finish
  • list: list recent tasks

task get

img-cli task get <task> [-o <out>]

Shows a task. If it isn't finished, img-cli asks the provider once for its current status. -o saves its results.

task wait

img-cli task wait <task> [-o <out>] [--timeout <duration>] [--poll-interval <duration>]

Waits until the task finishes, then prints or saves its results. Use it after --no-wait, a timeout (exit code 8), or Ctrl-C.

Flag Meaning
-o, --out Save results into this directory, or to this file when there is one result
--timeout How long to wait (default 20m)
--poll-interval Time between status checks

task list

img-cli task list [--limit <n>]

Recent tasks, newest first. --limit sets how many (default 20; 0 for all).

See also