Clone a server
Clone a server
cloudcli server clone [flags]
--source-id string Source server ID to clone
--source-name string Source server name or regular expression matching a single server to clone
--name string Server name (a-zA-Z0-9()_-). (must be at least 4 characters long, mandatory)
--cpu string CPU count and type. (optional, default from source server)
--ram string Size of server ram in MiB. (optional, default from source server)
--disk stringArray Configure Persistent Disks, Up to 4 disks allowed. (optional, if provided overrides all source server disks)
--disk id=ID,size=SIZE --disk <DISK2>..
ID: first disk # is 0. (optional, default is auto-incremented starting from 0)
SIZE: in GiB. (optional, defaults to one 20GB disk)
--network stringArray Configure networking, up to 4 networks allowed. (optional, if provided overrides all source server networks)
--network id=ID,name=NAME,ip=IP --network <NETWORK2>..
ID: first network # is 0. (optional, default is auto-incremented starting from 0)
NAME: Set the network VLAN name, set 'wan' for wan interface, otherwise, set the name of an existing lan. (mandatory)
IP: Set the IP address of the server’s network interface. Set 'auto' for auto allocation. (mandatory)
--password string Server password (a-z, A-Z, 0-9, !@#$^&*()~). (must be 10-20 characters long with at least 1 capital letter, 1 small letter and 1 digit, mandatory)
--dailybackup string Set Daily Backup (yes | no). (optional, default from source server)
--managed string Set Managed Hosting Services (yes | no). (optional, default from source server)
--quantity string Number of servers to create, up to 50 servers. (optional, default from source server)
--billingcycle string Servers' Billing Cycle. (hourly | monthly) (optional, default from source server)
--monthlypackage string Monthly billing cycle package (see server options subcommand). (optional in monthly billing cycle, default from source server)
--poweronaftercreate string Power on server after server created. (optional, default: yes, not copied from source server) (default "yes")
--wait Wait for command execution to finish only then exit cli.
--ssh-key string Path to public SSH key file, adds to server authorized keys (not copied from source server)
--script-file string Path to script file to run on server startup, Bash script for Linux/FreeBSD servers, Powershell for Windows (not copied from source server)
--userdata-file string Path to user data file (not copied from source server)
--tag stringArray Set server tags:
--tag TAG1 --tag TAG2 ..
(not copied from source server)
-h, --help help for clone
--api-clientid string API Client ID
--api-secret string API Secret
--config string config file (default is $HOME/.cloudcli.yaml)
--debug enable debug output to stderr
--dryrun enable dry run mode, does not perform actions
--format string output format, default format is a human readable summary
--no-config disable loading from config file
- cloudcli server - Server management