Skip to content

Commit f92783a

Browse files
feat(tem): add support for v1alpha1 (#2543)
Co-authored-by: Rémy Léone <[email protected]>
1 parent 29bc255 commit f92783a

20 files changed

+361
-3
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Ask for an immediate check of a domain (DNS check).
4+
5+
USAGE:
6+
scw tem domain check <domain-id ...> [arg=value ...]
7+
8+
ARGS:
9+
domain-id ID of the domain to check
10+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
11+
12+
FLAGS:
13+
-h, --help help for check
14+
15+
GLOBAL FLAGS:
16+
-c, --config string The path to the config file
17+
-D, --debug Enable debug mode
18+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
19+
-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+
Register a domain in a project.
4+
5+
USAGE:
6+
scw tem domain create [arg=value ...]
7+
8+
ARGS:
9+
[project-id] Project ID to use. If none is passed the default project ID will be used
10+
[domain-name]
11+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
12+
13+
FLAGS:
14+
-h, --help help for create
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: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Get information about a domain.
4+
5+
USAGE:
6+
scw tem domain get <domain-id ...> [arg=value ...]
7+
8+
ARGS:
9+
domain-id ID of the domain
10+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
11+
12+
FLAGS:
13+
-h, --help help for get
14+
15+
GLOBAL FLAGS:
16+
-c, --config string The path to the config file
17+
-D, --debug Enable debug mode
18+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
19+
-p, --profile string The config profile to use
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
List domains in a project and/or in an organization.
4+
5+
USAGE:
6+
scw tem domain list [arg=value ...]
7+
8+
ARGS:
9+
[project-id]
10+
[status.{index}] (unknown | checked | unchecked | invalid | locked | revoked | pending)
11+
[organization-id]
12+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
13+
14+
FLAGS:
15+
-h, --help help for list
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
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Revoke a domain.
4+
5+
USAGE:
6+
scw tem domain revoke <domain-id ...> [arg=value ...]
7+
8+
ARGS:
9+
domain-id ID of the domain to revoke
10+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
11+
12+
FLAGS:
13+
-h, --help help for revoke
14+
15+
GLOBAL FLAGS:
16+
-c, --config string The path to the config file
17+
-D, --debug Enable debug mode
18+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
19+
-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+
Domain management commands.
4+
5+
USAGE:
6+
scw tem domain <command>
7+
8+
AVAILABLE COMMANDS:
9+
check Ask for an immediate check of a domain (DNS check)
10+
create Register a domain in a project
11+
get Get information about a domain
12+
list List domains in a project and/or in an organization
13+
revoke Revoke a domain
14+
15+
FLAGS:
16+
-h, --help help for domain
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 tem domain [command] --help" for more information about a command.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Try to cancel an email if it has not yet been sent.
4+
5+
USAGE:
6+
scw tem email cancel <email-id ...> [arg=value ...]
7+
8+
ARGS:
9+
email-id ID of the email to cancel
10+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
11+
12+
FLAGS:
13+
-h, --help help for cancel
14+
15+
GLOBAL FLAGS:
16+
-c, --config string The path to the config file
17+
-D, --debug Enable debug mode
18+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
19+
-p, --profile string The config profile to use
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Send an email.
4+
5+
USAGE:
6+
scw tem email create [arg=value ...]
7+
8+
ARGS:
9+
[from.email] Email address
10+
[from.name] Optional display name
11+
[to.{index}.email] Email address
12+
[to.{index}.name] Optional display name
13+
[cc.{index}.email] Email address
14+
[cc.{index}.name] Optional display name
15+
[bcc.{index}.email] Email address
16+
[bcc.{index}.name] Optional display name
17+
[subject] Message subject
18+
[text] Text content
19+
[html] HTML content
20+
[project-id] Project ID to use. If none is passed the default project ID will be used
21+
[attachments.{index}.name] Filename of the attachment
22+
[attachments.{index}.type] MIME type of the attachment (Currently only allow, text files, pdf and html files)
23+
[attachments.{index}.content] Content of the attachment, encoded in base64
24+
[send-before] Maximum date to deliver mail
25+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
26+
27+
FLAGS:
28+
-h, --help help for create
29+
30+
GLOBAL FLAGS:
31+
-c, --config string The path to the config file
32+
-D, --debug Enable debug mode
33+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
34+
-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+
Get statistics on the email statuses.
4+
5+
USAGE:
6+
scw tem email get-statistics [arg=value ...]
7+
8+
ARGS:
9+
[project-id] Optional, count emails for this project
10+
[domain-id] Optional, count emails send from this domain (must be coherent with the `project_id` and the `organization_id`)
11+
[since] Optional, count emails created after this date
12+
[until] Optional, count emails created before this date
13+
[mail-from] Optional, count emails sent with this `mail_from` sender's address
14+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
15+
16+
FLAGS:
17+
-h, --help help for get-statistics
18+
19+
GLOBAL FLAGS:
20+
-c, --config string The path to the config file
21+
-D, --debug Enable debug mode
22+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
23+
-p, --profile string The config profile to use
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Get information about an email.
4+
5+
USAGE:
6+
scw tem email get <email-id ...> [arg=value ...]
7+
8+
ARGS:
9+
email-id ID of the email to retrieve
10+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
11+
12+
FLAGS:
13+
-h, --help help for get
14+
15+
GLOBAL FLAGS:
16+
-c, --config string The path to the config file
17+
-D, --debug Enable debug mode
18+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
19+
-p, --profile string The config profile to use

0 commit comments

Comments
 (0)