Files
ubicloud/spec/routes/api/cli/golden-files/help -r vm.txt
Jeremy Evans b0502bdf05 Refactor cli golden factor specs
Instead of parsing file names and basing the commands on those,
store the commands in files, so that you can edit files to change
which commands are run.  This makes the file names for the golden
files match the command being run, other than replacing / with _.

To add commands for golden files, edit the files in the
spec/routes/api/cli/golden-file-commands folder.
2025-02-19 10:25:42 -08:00

58 lines
2.0 KiB
Plaintext

Usage: ubi vm subcommand [...]
Subcommands: list
Usage: ubi vm location/(vm-name|_vm-ubid) [options] subcommand [...]
Options:
-4, --ip4 use IPv4 address
-6, --ip6 use IPv6 address
-u, --user user override username
Subcommands: create destroy scp sftp show ssh
Usage: ubi vm list [options]
Options:
-f, --fields=fields show specific fields (default: location,name,id,ip4,ip6)
-l, --location=location only show VMs in given location
-N, --no-headers do not show headers
Usage: ubi vm location/vm-name create [options] public_key
Options:
-6, --ipv6-only do not enable IPv4
-b, --boot-image=image_name boot image (ubuntu-noble,ubuntu-jammy,debian-12,almalinux-9)
-p, --private-subnet-id=id place VM into specific private subnet
-s, --size=size server size (standard-{2,4,8,16,30,60})
-S, --storage-size=size storage size (40, 80)
-u, --unix-user=username username (default: ubi)
Usage: ubi vm location/(vm-name|_vm-ubid) destroy [options]
Options:
-f, --force do not require confirmation
Usage: ubi vm location/(vm-name|_vm-ubid) [options] scp [scp-options] (local-path :remote-path | :remote-path local-path)
Usage: ubi vm location/(vm-name|_vm-ubid) [options] sftp [sftp-options]
Usage: ubi vm location/(vm-name|_vm-ubid) show [options]
Options:
-f, --fields=fields show specific fields (default: id,name,state,location,size,unix-user,storage-size-gib,ip6,ip4-enabled,ip4,private-ipv4,private-ipv6,subnet,firewalls)
-r, --rule-fields=fields show specific firewall rule fields (default: id,cidr,port-range)
-w, --firewall-fields=fields show specific firewall fields (default: id,name,description,location,path,firewall-rules)
Usage: ubi vm location/(vm-name|_vm-ubid) [options] ssh [ssh-options --] [remote-cmd [remote-cmd-arg ...]]