|
| 1 | +## cloudcli server clone |
| 2 | + |
| 3 | +Clone a server |
| 4 | + |
| 5 | +### Synopsis |
| 6 | + |
| 7 | +Clone a server |
| 8 | + |
| 9 | +``` |
| 10 | +cloudcli server clone [flags] |
| 11 | +``` |
| 12 | + |
| 13 | +### Options |
| 14 | + |
| 15 | +``` |
| 16 | + --source-id string Source server ID to clone |
| 17 | + --source-name string Source server name or regular expression matching a single server to clone |
| 18 | + --name string Server name (a-zA-Z0-9()_-). (must be at least 4 characters long, mandatory) |
| 19 | + --cpu string CPU count and type. (optional, default from source server) (default "1B") |
| 20 | + --ram string Size of server ram in MiB. (optional, default from source server) (default "1024") |
| 21 | + --disk stringArray Configure Persistent Disks, Up to 4 disks allowed. (optional, if provided overrides all source server disks) |
| 22 | + --disk id=ID,size=SIZE --disk <DISK2>.. |
| 23 | + ID: first disk # is 0. (optional, default is auto-incremented starting from 0) |
| 24 | + SIZE: in GiB. (optional, defaults to one 20GB disk) (default ["id=0,size=20"]) |
| 25 | + --network stringArray Configure networking, up to 4 networks allowed. (optional, if provided overrides all source server networks) |
| 26 | + --network id=ID,name=NAME,ip=IP --network <NETWORK2>.. |
| 27 | + ID: first network # is 0. (optional, default is auto-incremented starting from 0) |
| 28 | + NAME: Set the network VLAN name, set 'wan' for wan interface, otherwise, set the name of an existing lan. (mandatory) |
| 29 | + IP: Set the IP address of the server’s network interface. Set 'auto' for auto allocation. (mandatory) (default ["id=0,name=wan,ip=auto"]) |
| 30 | + --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) |
| 31 | + --dailybackup string Set Daily Backup (yes | no). (optional, default from source server) (default "no") |
| 32 | + --managed string Set Managed Hosting Services (yes | no). (optional, default from source server) (default "no") |
| 33 | + --quantity string Number of servers to create, up to 50 servers. (optional, default from source server) (default "1") |
| 34 | + --billingcycle string Servers' Billing Cycle. (hourly | monthly) (optional, default from source server) (default "hourly") |
| 35 | + --monthlypackage string Monthly billing cycle package (see server options subcommand). (optional in monthly billing cycle, default from source server) (default "t5000") |
| 36 | + --poweronaftercreate string Power on server after server created. (optional, default: yes, not copied from source server) (default "yes") |
| 37 | + --wait Wait for command execution to finish only then exit cli. |
| 38 | + --ssh-key string Path to public key file, adds to server authorized keys after create is done. (requires --wait, not cloned from server server) |
| 39 | + -h, --help help for clone |
| 40 | +``` |
| 41 | + |
| 42 | +### Options inherited from parent commands |
| 43 | + |
| 44 | +``` |
| 45 | + --api-clientid string API Client ID |
| 46 | + --api-secret string API Secret |
| 47 | + --api-server string API Server Hostname |
| 48 | + --config string config file (default is $HOME/.cloudcli.yaml) |
| 49 | + --debug enable debug output to stderr |
| 50 | + --dryrun enable dry run mode, does not perform actions |
| 51 | + --format string output format, default format is a human readable summary |
| 52 | + --no-config disable loading from config file |
| 53 | +``` |
| 54 | + |
| 55 | +### SEE ALSO |
| 56 | + |
| 57 | +* [cloudcli server](cloudcli_server.md) - Server management |
| 58 | + |
| 59 | +###### Auto generated by spf13/cobra on 25-Nov-2019 |
0 commit comments