diff --git a/cmd/scw/testdata/test-all-usage-instance-server-update-usage.golden b/cmd/scw/testdata/test-all-usage-instance-server-update-usage.golden index c26adfd2ef..5768357b5e 100644 --- a/cmd/scw/testdata/test-all-usage-instance-server-update-usage.golden +++ b/cmd/scw/testdata/test-all-usage-instance-server-update-usage.golden @@ -55,6 +55,7 @@ ARGS: [private-nics.{index}.mac-address] Private NIC MAC address [private-nics.{index}.state] Private NIC state (available | syncing | syncing_error) [private-nics.{index}.tags.{index}] Private NIC tags + [commercial-type] Set the commercial_type for this Instance. [zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | fr-par-3 | nl-ams-1 | nl-ams-2 | nl-ams-3 | pl-waw-1 | pl-waw-2) DEPRECATED ARGS: diff --git a/docs/commands/instance.md b/docs/commands/instance.md index c914e47328..a60664dcfe 100644 --- a/docs/commands/instance.md +++ b/docs/commands/instance.md @@ -2210,6 +2210,7 @@ scw instance server update [arg=value ...] | private-nics.{index}.mac-address | | Private NIC MAC address | | private-nics.{index}.state | One of: `available`, `syncing`, `syncing_error` | Private NIC state | | private-nics.{index}.tags.{index} | | Private NIC tags | +| commercial-type | | Set the commercial_type for this Instance. | | zone | Default: `fr-par-1`
One of: `fr-par-1`, `fr-par-2`, `fr-par-3`, `nl-ams-1`, `nl-ams-2`, `nl-ams-3`, `pl-waw-1`, `pl-waw-2` | Zone to target. If none is passed will use default zone from the config | diff --git a/internal/namespaces/instance/v1/instance_cli.go b/internal/namespaces/instance/v1/instance_cli.go index 57cf108f43..2d7145af98 100644 --- a/internal/namespaces/instance/v1/instance_cli.go +++ b/internal/namespaces/instance/v1/instance_cli.go @@ -779,6 +779,13 @@ func instanceServerUpdate() *core.Command { Deprecated: false, Positional: false, }, + { + Name: "commercial-type", + Short: `Set the commercial_type for this Instance.`, + Required: false, + Deprecated: false, + Positional: false, + }, core.ZoneArgSpec(scw.ZoneFrPar1, scw.ZoneFrPar2, scw.ZoneFrPar3, scw.ZoneNlAms1, scw.ZoneNlAms2, scw.ZoneNlAms3, scw.ZonePlWaw1, scw.ZonePlWaw2), }, Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {