Skip to content

Commit e8e1d3a

Browse files
authored
feat(webhosting): enable the cli for several functions (#5180)
1 parent 2bb1b47 commit e8e1d3a

21 files changed

+1127
-15
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Get info about a backup specified by the backup ID.
4+
5+
USAGE:
6+
scw webhosting backup get [arg=value ...]
7+
8+
ARGS:
9+
hosting-id UUID of the hosting account
10+
backup-id ID of the backup to retrieve
11+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
12+
13+
FLAGS:
14+
-h, --help help for get
15+
16+
GLOBAL FLAGS:
17+
-c, --config string The path to the config file
18+
-D, --debug Enable debug mode
19+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
20+
-p, --profile string The config profile to use
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
List items within a specific backup, grouped by type.
4+
5+
USAGE:
6+
scw webhosting backup-item list [arg=value ...]
7+
8+
ARGS:
9+
hosting-id UUID of the hosting account
10+
[backup-id] ID of the backup to list items from
11+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
12+
13+
FLAGS:
14+
-h, --help help for list
15+
16+
GLOBAL FLAGS:
17+
-c, --config string The path to the config file
18+
-D, --debug Enable debug mode
19+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
20+
-p, --profile string The config profile to use
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Restore specific items from a backup (e.g., a database or mailbox).
4+
5+
USAGE:
6+
scw webhosting backup-item restore [arg=value ...]
7+
8+
ARGS:
9+
hosting-id UUID of the hosting account
10+
[item-ids.{index}] List of backup item IDs to restore individually
11+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
12+
13+
FLAGS:
14+
-h, --help help for restore
15+
16+
GLOBAL FLAGS:
17+
-c, --config string The path to the config file
18+
-D, --debug Enable debug mode
19+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
20+
-p, --profile string The config profile to use
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Backups represent dedicated snapshots of services of your hosting.
4+
You can list and restore individual items such as files, databases,
5+
or mailboxes.
6+
7+
USAGE:
8+
scw webhosting backup-item <command>
9+
10+
AVAILABLE COMMANDS:
11+
list List items within a specific backup, grouped by type.
12+
restore Restore specific items from a backup (e.g., a database or mailbox).
13+
14+
FLAGS:
15+
-h, --help help for backup-item
16+
17+
GLOBAL FLAGS:
18+
-c, --config string The path to the config file
19+
-D, --debug Enable debug mode
20+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
21+
-p, --profile string The config profile to use
22+
23+
Use "scw webhosting backup-item [command] --help" for more information about a command.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
List all available backups for a hosting account.
4+
5+
USAGE:
6+
scw webhosting backup list [arg=value ...]
7+
8+
ARGS:
9+
hosting-id UUID of the hosting account
10+
[order-by] Order in which to return the list of backups (created_at_desc | created_at_asc)
11+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw | all)
12+
13+
FLAGS:
14+
-h, --help help for list
15+
16+
GLOBAL FLAGS:
17+
-c, --config string The path to the config file
18+
-D, --debug Enable debug mode
19+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
20+
-p, --profile string The config profile to use
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Restore an entire backup to your hosting environment.
4+
5+
USAGE:
6+
scw webhosting backup restore [arg=value ...]
7+
8+
ARGS:
9+
hosting-id UUID of the hosting account
10+
backup-id ID of the backup to fully restore
11+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
12+
13+
FLAGS:
14+
-h, --help help for restore
15+
16+
GLOBAL FLAGS:
17+
-c, --config string The path to the config file
18+
-D, --debug Enable debug mode
19+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
20+
-p, --profile string The config profile to use
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Backups represent snapshots of your hosting environment.
4+
You can list and restore individual items such as files, databases,
5+
or mailboxes.
6+
7+
USAGE:
8+
scw webhosting backup <command>
9+
10+
AVAILABLE COMMANDS:
11+
get Get info about a backup specified by the backup ID.
12+
list List all available backups for a hosting account.
13+
restore Restore an entire backup to your hosting environment.
14+
15+
FLAGS:
16+
-h, --help help for backup
17+
18+
GLOBAL FLAGS:
19+
-c, --config string The path to the config file
20+
-D, --debug Enable debug mode
21+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
22+
-p, --profile string The config profile to use
23+
24+
Use "scw webhosting backup [command] --help" for more information about a command.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Search for available domains based on domain name.
4+
5+
USAGE:
6+
scw webhosting domain-availability search [arg=value ...]
7+
8+
ARGS:
9+
[domain-name] Domain name to search.
10+
[project-id] Project ID to use. If none is passed the default project ID will be used
11+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
12+
13+
FLAGS:
14+
-h, --help help for search
15+
16+
GLOBAL FLAGS:
17+
-c, --config string The path to the config file
18+
-D, --debug Enable debug mode
19+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
20+
-p, --profile string The config profile to use
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
With a Scaleway Web Hosting plan, you can manage your domain, configure your web hosting services, manage your emails and more. Get dns records status and check if you own the domain with these calls.
4+
5+
USAGE:
6+
scw webhosting domain-availability <command>
7+
8+
AVAILABLE COMMANDS:
9+
search Search for available domains based on domain name.
10+
11+
FLAGS:
12+
-h, --help help for domain-availability
13+
14+
GLOBAL FLAGS:
15+
-c, --config string The path to the config file
16+
-D, --debug Enable debug mode
17+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
18+
-p, --profile string The config profile to use
19+
20+
Use "scw webhosting domain-availability [command] --help" for more information about a command.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Retrieve detailed information about a specific domain, including its status, DNS configuration, and ownership.
4+
5+
USAGE:
6+
scw webhosting domain get [arg=value ...]
7+
8+
ARGS:
9+
domain-name Domain name to get.
10+
[project-id] Project ID to use. If none is passed the default project ID will be used
11+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
12+
13+
FLAGS:
14+
-h, --help help for get
15+
16+
GLOBAL FLAGS:
17+
-c, --config string The path to the config file
18+
-D, --debug Enable debug mode
19+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
20+
-p, --profile string The config profile to use

0 commit comments

Comments
 (0)