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
Copy file name to clipboardExpand all lines: cmd/instance/instance.go
+3-5Lines changed: 3 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -38,9 +38,7 @@ func init() {
38
38
InstanceCmd.AddCommand(instancePublicIPCmd)
39
39
InstanceCmd.AddCommand(instancePasswordCmd)
40
40
InstanceCmd.AddCommand(instanceTagCmd)
41
-
InstanceCmd.AddCommand(instanceVncCmd)
42
-
InstanceCmd.AddCommand(instanceVncStatusCmd)
43
-
InstanceCmd.AddCommand(instanceVncStopCmd)
41
+
InstanceCmd.AddCommand(instanceConsoleCmd)
44
42
InstanceCmd.AddCommand(instanceRecoveryCmd)
45
43
InstanceCmd.AddCommand(instanceRecoveryStatusCmd)
46
44
InstanceCmd.AddCommand(snapshotCmd)
@@ -71,10 +69,10 @@ func init() {
71
69
instanceCreateCmd.Flags().StringArrayVar(&allowedIPs, "allowed-ips", []string{}, "A comma separated list of IP addresses that the instance is allowed to use")
72
70
instanceCreateCmd.Flags().IntVar(&networkBandwidthLimit, "network-bandwidth-limit", 0, "The network bandwidth limit for the instance in Mbps (0 for unlimited)")
instanceStopCmd.Flags().BoolVarP(&waitStop, "wait", "w", false, "wait until the instance's is stoped")
77
73
74
+
instanceConsoleCmd.Flags().StringVarP(&duration, "duration", "", "", "The duration for the console session (e.g., '30m', '1h'). Default is provider-dependent.")
75
+
78
76
instanceAllowedIPsUpdateCmd.Flags().StringSliceVarP(&allowedIPsUpdate, "ips", "", []string{}, "Comma-separated list of IP addresses to allow (e.g., --ips 1.2.3.4,5.6.7.8). To clear all IPs, provide an empty string.")
79
77
80
78
instanceBandwidthUpdateCmd.Flags().IntVarP(&bandwidthLimitUpdate, "limit", "l", 0, "Network bandwidth limit in Mbps (e.g., 1000). Use 0 for unlimited")
0 commit comments