Skip to main content
Aliases: instances, inst

Subcommands

  • list — List instances
  • get — Get instance details
  • create — Create a new instance
  • update — Update an existing instance
  • delete — Delete an instance
  • start — Start an instance
  • stop — Stop an instance
  • reboot — Reboot an instance
  • snapshot — Create a snapshot from an instance
  • ssh — Open an SSH session to an instance
  • sshkey — Get an instance’s SSH key
  • consoleoutput — Get instance console output
  • consolesession — Get a VNC console session URL

list

List compute instances, optionally filtered by organization, project, network, or region.

Flags

FlagDescription
—org stringOrganization ID
—project stringProject ID
—network stringNetwork ID
—region stringRegion ID
—jsonEmit the full JSON payload (mutually exclusive with -q)
-q, —query stringArrayjq filter for value extraction (see Query output with -q)

Example


get

Get details for a specific instance.

Flags

FlagDescription
—id stringInstance ID
—org stringOrganization ID
—jsonEmit the full JSON payload (mutually exclusive with -q)
-q, —query stringArrayjq filter for value extraction (see Query output with -q)

create

Create a new compute instance. Accepts input from a JSON file or stdin. Optionally supply a cloud-init configuration or bind an SSH certificate authority.

Flags

FlagDescription
-f, —file stringPath to a JSON file
—stdinRead JSON from standard input
—cloud-init-path stringPath to a cloud-init YAML file
—ssh-ca-id stringSSH certificate authority ID to bind (pass empty string to clear)
—dry-runPreview the request payload without persisting
-y, —yesAutomatically confirm creation
—jsonEmit the full JSON payload (mutually exclusive with -q)
-q, —query stringArrayjq filter for value extraction (see Query output with -q)

Examples


update

Update an existing instance.

Flags

FlagDescription
—id stringInstance ID
—org stringOrganization ID
-f, —file stringPath to a JSON file
—stdinRead JSON from standard input
—ssh-ca-id stringSSH certificate authority ID to bind to the instance (pass an empty string to clear)
—dry-runPreview the request payload without persisting
-y, —yesAutomatically confirm update
—jsonEmit the full JSON payload (mutually exclusive with -q)
-q, —query stringArrayjq filter for value extraction (see Query output with -q)

Examples


delete

Delete an existing instance.

Flags


start

Start a stopped instance.

Flags


stop

Stop a running instance.

Flags


reboot

Reboot an instance. Use --hard for a hard reboot.

Flags


snapshot

Create an image snapshot from an instance. Accepts input from a JSON file or stdin.

Flags

FlagDescription
—id stringInstance ID
—org stringOrganization ID
-f, —file stringPath to a JSON file
—stdinRead JSON from standard input
—dry-runPreview the request payload without persisting
-y, —yesAutomatically confirm snapshot
—jsonEmit the full JSON payload (mutually exclusive with -q)
-q, —query stringArrayjq filter for value extraction (see Query output with -q)

Examples


ssh

Open an interactive SSH session to an instance using the system SSH client.

Flags

Examples


sshkey

Get the SSH key for an instance.

Flags

FlagDescription
—id stringInstance ID
—org stringOrganization ID
—jsonEmit the full JSON payload (mutually exclusive with -q)
-q, —query stringArrayjq filter for value extraction (see Query output with -q)

consoleoutput

Retrieve the serial console output of an instance.

Flags

FlagDescription
—id stringInstance ID
—org stringOrganization ID
—length intOutput length in bytes (0 uses API default)
—jsonEmit the full JSON payload (mutually exclusive with -q)
-q, —query stringArrayjq filter for value extraction (see Query output with -q)

consolesession

Get a VNC console session URL for an instance.

Flags


Instances (Console)

Create and manage instances via the Console UI.

Custom Images

Upload and use custom OS images for instances.