Skip to content
Odinex Cloud
CLI (odx)Command reference

odx image

Manage images (system images and snapshots)

odx image add-label

Add labels to an image

Usage:
  odx image add-label [--overwrite] <image> <key=value>... [flags]

Flags:
  -h, --help        help for add-label
      --overwrite   overwrite labels that already exist

odx image delete

Delete one or more images

Usage:
  odx image delete <image>... [flags]

Flags:
  -h, --help      help for delete
      --no-wait   do not wait for the action to finish

odx image describe

Describe an image

Usage:
  odx image describe <image> [flags]

Flags:
  -h, --help                 help for describe
  -o, --output stringArray   output format: json or yaml

odx image disable-protection

Disable resource protection for an image

Usage:
  odx image disable-protection <image> delete [flags]

Flags:
  -h, --help   help for disable-protection

odx image enable-protection

Enable resource protection for an image

Usage:
  odx image enable-protection <image> delete [flags]

Flags:
  -h, --help   help for enable-protection

odx image list

List images.

Columns: age, architecture, created, created_from, deprecated, description, disk_size, id, image_size, labels, locations, name, os_flavor, os_version, protection, status, type

Usage:
  odx image list [options] [flags]

Aliases:
  list, ls

Flags:
  -h, --help                 help for list
      --location string      only images available in this location
  -o, --output stringArray   output format: json, yaml, noheader, columns=a,b,c (repeatable)
  -l, --selector string      label selector, e.g. env=prod,!tmp
  -t, --type strings         only images of this type: system, app, snapshot, backup (repeatable)

odx image remove-label

Remove labels from an image

Usage:
  odx image remove-label <image> (--all | <key>...) [flags]

Flags:
  -a, --all    remove all labels
  -h, --help   help for remove-label

odx image update

Update an image

Usage:
  odx image update --description <text> <image> [flags]

Flags:
      --description string   new description
  -h, --help                 help for update

On this page