VM
Create and manage virtual machines.
Usage:
lightning vm [OPTIONS] COMMAND [ARGS]...Commands
Command |
Description |
|---|---|
Create a virtual machine. |
|
Delete a virtual machine. |
|
Inspect a virtual machine as JSON. |
|
List virtual machines in a teamspace. |
|
SSH into a virtual machine. |
lightning vm create
Create a virtual machine.
Usage:
lightning vm create [OPTIONS] NAMEArguments
Name |
Type |
Required |
Description |
|---|---|---|---|
|
|
yes |
No description provided. |
Options
Option |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
|
yes |
|
Machine type. |
|
|
no |
|
Override default teamspace (format: owner/teamspace). |
|
|
no |
|
Cloud account (cluster id) to create the VM in. Defaults to the organization’s machine cluster when there is exactly one. |
|
|
no |
|
Root disk size in GB (400-800). |
|
— |
no |
— |
Use an interruptible machine. |
|
— |
no |
— |
Block until the VM is running, then print the SSH command. |
|
|
no |
|
Seconds to wait with –wait. |
lightning vm delete
Delete a virtual machine. This discards its disk.
Usage:
lightning vm delete [OPTIONS] NAMEArguments
Name |
Type |
Required |
Description |
|---|---|---|---|
|
|
yes |
No description provided. |
Options
Option |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
|
no |
|
Override default teamspace (format: owner/teamspace). |
|
— |
no |
— |
Delete without prompting for confirmation. |
lightning vm inspect
Inspect a virtual machine as JSON.
Usage:
lightning vm inspect [OPTIONS] NAMEArguments
Name |
Type |
Required |
Description |
|---|---|---|---|
|
|
yes |
No description provided. |
Options
Option |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
|
no |
|
Override default teamspace (format: owner/teamspace). |
lightning vm list
List virtual machines in a teamspace.
Usage:
lightning vm list [OPTIONS]Options
Option |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
|
no |
|
Override default teamspace (format: owner/teamspace). |
|
— |
no |
— |
List VMs in all teamspaces visible to the selected owner. |
lightning vm ssh
SSH into a virtual machine. Arguments after – are passed to ssh.
Usage:
lightning vm ssh [OPTIONS] NAME [SSH_ARGS]...Arguments
Name |
Type |
Required |
Description |
|---|---|---|---|
|
|
yes |
No description provided. |
|
|
no |
No description provided. |
Options
Option |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
|
no |
|
Override default teamspace (format: owner/teamspace). |
|
|
no |
|
Seconds to wait for the VM to be running. |
Was this page helpful?
Thanks for the feedback.