Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,19 @@ USAGE:
scw apple-silicon server create [arg=value ...]

ARGS:
[name=<generated>] Create a server with this given name
[project-id] Project ID to use. If none is passed the default project ID will be used
[type] Create a server of the given type
[os-id] Create a server with the given os_id
[enable-vpc] Activate the Private Network feature for this server
[commitment-type] Activate commitment for this server (duration_24h | renewed_monthly | none)
[public-bandwidth-bps] Public bandwidth to configure for this server. Expressed in bits per second.
[runner-configuration.name]
[runner-configuration.url]
[runner-configuration.token]
[runner-configuration.provider] (unknown_provider | github | gitlab)
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-3)
[name=<generated>] Create a server with this given name
[project-id] Project ID to use. If none is passed the default project ID will be used
[type] Create a server of the given type
[os-id] Create a server with the given os_id
[enable-vpc] Activate the Private Network feature for this server
[commitment-type] Activate commitment for this server (duration_24h | renewed_monthly | none)
[public-bandwidth-bps] Public bandwidth to configure for this server. Expressed in bits per second.
[runner-configuration.name]
[runner-configuration.url]
[runner-configuration.token]
[runner-configuration.provider] (unknown_provider | github | gitlab)
[applied-runner-configurations.runner-configuration-ids.{index}]
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-3)

FLAGS:
-h, --help help for create
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ USAGE:
scw apple-silicon server update <server-id ...> [arg=value ...]

ARGS:
server-id UUID of the server you want to update
[name] Updated name for your server
[schedule-deletion] Specify whether the server should be flagged for automatic deletion
[enable-vpc] Activate or deactivate Private Network support for this server
[commitment-type.commitment-type] (duration_24h | renewed_monthly | none)
[public-bandwidth-bps] Public bandwidth configured for this server
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-3)
server-id UUID of the server you want to update
[name] Updated name for your server
[schedule-deletion] Specify whether the server should be flagged for automatic deletion
[enable-vpc] Activate or deactivate Private Network support for this server
[commitment-type.commitment-type] (duration_24h | renewed_monthly | none)
[public-bandwidth-bps] Public bandwidth configured for this server
[applied-runner-configurations.runner-configuration-ids.{index}]
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-3)

FLAGS:
-h, --help help for update
Expand Down
2 changes: 2 additions & 0 deletions docs/commands/apple-silicon.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ scw apple-silicon server create [arg=value ...]
| runner-configuration.url | | |
| runner-configuration.token | | |
| runner-configuration.provider | One of: `unknown_provider`, `github`, `gitlab` | |
| applied-runner-configurations.runner-configuration-ids.{index} | | |
| zone | Default: `fr-par-1`<br />One of: `fr-par-3` | Zone to target. If none is passed will use default zone from the config |


Expand Down Expand Up @@ -352,6 +353,7 @@ scw apple-silicon server update <server-id ...> [arg=value ...]
| enable-vpc | | Activate or deactivate Private Network support for this server |
| commitment-type.commitment-type | One of: `duration_24h`, `renewed_monthly`, `none` | |
| public-bandwidth-bps | | Public bandwidth configured for this server |
| applied-runner-configurations.runner-configuration-ids.{index} | | |
| zone | Default: `fr-par-1`<br />One of: `fr-par-3` | Zone to target. If none is passed will use default zone from the config |


Expand Down
12 changes: 12 additions & 0 deletions internal/namespaces/applesilicon/v1alpha1/applesilicon_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,12 @@ func appleSiliconServerCreate() *core.Command {
"gitlab",
},
},
{
Name: "applied-runner-configurations.runner-configuration-ids.{index}",
Required: false,
Deprecated: false,
Positional: false,
},
core.ZoneArgSpec(scw.ZoneFrPar3),
},
Run: func(ctx context.Context, args any) (i any, e error) {
Expand Down Expand Up @@ -470,6 +476,12 @@ func appleSiliconServerUpdate() *core.Command {
Deprecated: false,
Positional: false,
},
{
Name: "applied-runner-configurations.runner-configuration-ids.{index}",
Required: false,
Deprecated: false,
Positional: false,
},
core.ZoneArgSpec(scw.ZoneFrPar3),
},
Run: func(ctx context.Context, args any) (i any, e error) {
Expand Down
Loading