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 @@ -11,6 +11,7 @@ ARGS:
[email] Contact email for the Web Hosting client
[tags.{index}] List of tags for the Web Hosting plan
[domain] Domain name to link to the Web Hosting plan. You must already own this domain name, and have completed the DNS validation process beforehand
[subdomain] The name prefix to use as a free subdomain (for example, `mysite`) assigned to the Web Hosting plan. The full domain will be automatically created by adding it to the fixed base domain (e.g. `mysite.scw.site`). You do not need to include the base domain yourself.
[offer-options.{index}.id] Offer option ID
[offer-options.{index}.quantity] The option requested quantity to set for the Web Hosting plan
[language] Default language for the control panel interface (unknown_language_code | en_US | fr_FR | de_DE)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ EXAMPLES:
ARGS:
[order-by] Sort order for Web Hosting plans in the response (created_at_asc | created_at_desc)
[tags.{index}] Tags to filter for, only Web Hosting plans with matching tags will be returned
[statuses.{index}] Statuses to filter for, only Web Hosting plans with matching statuses will be returned (unknown_status | delivering | ready | deleting | error | locked | migrating)
[statuses.{index}] Statuses to filter for, only Web Hosting plans with matching statuses will be returned (unknown_status | delivering | ready | deleting | error | locked | migrating | updating)
[domain] Domain to filter for, only Web Hosting plans associated with this domain will be returned
[project-id] Project ID to filter for, only Web Hosting plans from this Project will be returned
[control-panels.{index}] Name of the control panel to filter for, only Web Hosting plans from this control panel will be returned
[subdomain] Optional free subdomain linked to the Web Hosting plan
[organization-id] Organization ID to filter for, only Web Hosting plans from this Organization will be returned
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw | all)

Expand Down
4 changes: 3 additions & 1 deletion docs/commands/webhosting.md
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,7 @@ scw webhosting hosting create [arg=value ...]
| email | | Contact email for the Web Hosting client |
| tags.{index} | | List of tags for the Web Hosting plan |
| domain | | Domain name to link to the Web Hosting plan. You must already own this domain name, and have completed the DNS validation process beforehand |
| subdomain | | The name prefix to use as a free subdomain (for example, `mysite`) assigned to the Web Hosting plan. The full domain will be automatically created by adding it to the fixed base domain (e.g. `mysite.scw.site`). You do not need to include the base domain yourself. |
| offer-options.{index}.id | | Offer option ID |
| offer-options.{index}.quantity | | The option requested quantity to set for the Web Hosting plan |
| language | One of: `unknown_language_code`, `en_US`, `fr_FR`, `de_DE` | Default language for the control panel interface |
Expand Down Expand Up @@ -618,10 +619,11 @@ scw webhosting hosting list [arg=value ...]
|------|---|-------------|
| order-by | One of: `created_at_asc`, `created_at_desc` | Sort order for Web Hosting plans in the response |
| tags.{index} | | Tags to filter for, only Web Hosting plans with matching tags will be returned |
| statuses.{index} | One of: `unknown_status`, `delivering`, `ready`, `deleting`, `error`, `locked`, `migrating` | Statuses to filter for, only Web Hosting plans with matching statuses will be returned |
| statuses.{index} | One of: `unknown_status`, `delivering`, `ready`, `deleting`, `error`, `locked`, `migrating`, `updating` | Statuses to filter for, only Web Hosting plans with matching statuses will be returned |
| domain | | Domain to filter for, only Web Hosting plans associated with this domain will be returned |
| project-id | | Project ID to filter for, only Web Hosting plans from this Project will be returned |
| control-panels.{index} | | Name of the control panel to filter for, only Web Hosting plans from this control panel will be returned |
| subdomain | | Optional free subdomain linked to the Web Hosting plan |
| organization-id | | Organization ID to filter for, only Web Hosting plans from this Organization will be returned |
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw`, `all` | Region to target. If none is passed will use default region from the config |

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ require (
github.com/mattn/go-isatty v0.0.20
github.com/moby/buildkit v0.13.2
github.com/opencontainers/go-digest v1.0.0
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.34.0.20250729162034-8db00eaf9654
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.34.0.20250804081430-2c6fa2495d96
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
github.com/spf13/cobra v1.9.1
github.com/spf13/pflag v1.0.7
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -466,8 +466,8 @@ github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUz
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.34.0.20250729162034-8db00eaf9654 h1:G5/4vYAsx2lv3FKJFho58m9aE3wgBrbyn7Z/Fds4opU=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.34.0.20250729162034-8db00eaf9654/go.mod h1:fw6BmcfYRs2BEHYW0c3/rR0JgZHvdx6uMYqpeUJx3Bc=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.34.0.20250804081430-2c6fa2495d96 h1:zEsk3ZJxbQ0eZptCv+flRAMmzO52fVTEj5C6aRfpojE=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.34.0.20250804081430-2c6fa2495d96/go.mod h1:fw6BmcfYRs2BEHYW0c3/rR0JgZHvdx6uMYqpeUJx3Bc=
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM=
github.com/secure-systems-lab/go-securesystemslib v0.8.0 h1:mr5An6X45Kb2nddcFlbmfHkLguCE9laoZCUzEEpIZXA=
Expand Down
15 changes: 15 additions & 0 deletions internal/namespaces/webhosting/v1/webhosting_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -1017,6 +1017,13 @@ func webhostingHostingCreate() *core.Command {
Deprecated: false,
Positional: false,
},
{
Name: "subdomain",
Short: `The name prefix to use as a free subdomain (for example, ` + "`" + `mysite` + "`" + `) assigned to the Web Hosting plan. The full domain will be automatically created by adding it to the fixed base domain (e.g. ` + "`" + `mysite.scw.site` + "`" + `). You do not need to include the base domain yourself.`,
Required: false,
Deprecated: false,
Positional: false,
},
{
Name: "offer-options.{index}.id",
Short: `Offer option ID`,
Expand Down Expand Up @@ -1169,6 +1176,7 @@ func webhostingHostingList() *core.Command {
"error",
"locked",
"migrating",
"updating",
},
},
{
Expand All @@ -1192,6 +1200,13 @@ func webhostingHostingList() *core.Command {
Deprecated: false,
Positional: false,
},
{
Name: "subdomain",
Short: `Optional free subdomain linked to the Web Hosting plan`,
Required: false,
Deprecated: false,
Positional: false,
},
{
Name: "organization-id",
Short: `Organization ID to filter for, only Web Hosting plans from this Organization will be returned`,
Expand Down
Loading