Skip to content
Odinex Cloud
CLI (odx)Command reference

odx ssh-key

Manage SSH keys

odx ssh-key add-label

Add labels to a SSH key

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

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

odx ssh-key create

Create an SSH key

Usage:
  odx ssh-key create --name <name> (--public-key <key> | --public-key-from-file <file>) [flags]

Examples:
  odx ssh-key create --name laptop --public-key-from-file ~/.ssh/id_ed25519.pub

Flags:
  -h, --help                          help for create
      --label stringArray             label key=value (repeatable)
      --name string                   key name (required)
      --public-key string             public key
      --public-key-from-file string   read the public key from a file (use - for stdin)

odx ssh-key delete

Delete one or more SSH keys

Usage:
  odx ssh-key delete <ssh-key>... [flags]

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

odx ssh-key describe

Describe a SSH key

Usage:
  odx ssh-key describe <ssh-key> [flags]

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

odx ssh-key list

List SSH keys.

Columns: age, created, fingerprint, id, labels, name, public_key

Usage:
  odx ssh-key list [options] [flags]

Aliases:
  list, ls

Flags:
  -h, --help                 help for list
  -o, --output stringArray   output format: json, yaml, noheader, columns=a,b,c (repeatable)
  -l, --selector string      label selector, e.g. env=prod,!tmp

odx ssh-key remove-label

Remove labels from a SSH key

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

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

odx ssh-key update

Update an SSH key

Usage:
  odx ssh-key update --name <name> <ssh-key> [flags]

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

On this page