You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
s.Cobra().Long=commands.WrapLongDescription(`Create a new server
261
264
262
265
Note that the default template, Ubuntu Server 24.04 LTS (Noble Numbat), only supports SSH key based authentication. Use `+"`"+`--ssh-keys`+"`"+` option to provide the keys when creating a server with the default template. The examples below use public key from the `+"`"+`~/.ssh`+"`"+` directory. If you want to use different authentication method, use `+"`"+`--os`+"`"+` parameter to specify a different template.`)
@@ -279,10 +282,10 @@ Note that the default template, Ubuntu Server 24.04 LTS (Noble Numbat), only sup
279
282
fs.StringVar(&s.params.os, "os", def.os, "Server OS to use (will be the first storage device). The value should be title or UUID of an either public or private template. Set to empty to fully customise the storages.")
280
283
fs.IntVar(&s.params.osStorageSize, "os-storage-size", def.osStorageSize, "OS storage size in GiB. This is only applicable if `os` is also set. Zero value makes the disk equal to the minimum size of the template.")
281
284
config.AddToggleFlag(fs, &s.params.osStorageEncrypted, "os-storage-encrypt", false, "Encrypt the OS storage. This is only applicable if `os` is also set.")
282
-
fs.StringVar(&s.params.PasswordDelivery, "password-delivery", def.PasswordDelivery, "Defines how password is delivered. Available: email, sms")
285
+
fs.StringVar(&s.params.PasswordDelivery, "password-delivery", def.PasswordDelivery, "Defines how password is delivered. Available: "+strings.Join(passwordDeliveries, ", "))
283
286
fs.StringVar(&s.params.Plan, "plan", def.Plan, "Server plan name. See \"server plans\" command for valid plans. Set to \"custom\" and use `cores` and `memory` options for flexible plan.")
284
287
fs.StringVar(&s.params.RemoteAccessPassword, "remote-access-password", def.RemoteAccessPassword, "Defines the remote access password.")
fs.StringVar(&s.params.ServerGroup, "server-group", def.ServerGroup, "UUID of a server group for the server. To remove the server from the group, see `servergroup modify")
fs.StringSliceVar(&s.params.sshKeys, "ssh-keys", def.sshKeys, "Add one or more SSH keys to the admin account. Accepted values are SSH public keys or filenames from where to read the keys.")
@@ -291,7 +294,7 @@ Note that the default template, Ubuntu Server 24.04 LTS (Noble Numbat), only sup
291
294
fs.StringVar(&s.params.Title, "title", def.Title, "A short, informational description.")
292
295
fs.StringVar(&s.params.UserData, "user-data", def.UserData, "Defines URL for a server setup script, or the script body itself.")
s.Cobra().Long=commands.WrapLongDescription(`Create a new firewall rule
56
63
57
64
To edit the default rule of the firewall, set only `+"`"+`--direction`+"`"+` and `+"`"+`--action`+"`"+` parameters. This creates catch-all rule that will take effect when no other rule matches. Note that the default rule must be positioned after all other rules. Use `+"`"+`--position`+"`"+` parameter or create default rule after other rules.`)
58
65
59
66
flagSet:=&pflag.FlagSet{}
60
67
61
-
flagSet.StringVar(&s.direction, "direction", "", "Rule direction. Available: in, out")
flags.StringVar(&ls.showIPAddresses, "show-ip-addresses", "none", "Show servers IP addresses of specified access type in the output or all ip addresses if argument value is \"all\" or no argument is specified.")
0 commit comments