@temps-sdk/cli 0.1.38 → 0.2.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -0
- package/dist/index.js +63877 -40097
- package/dist/skills/temps/SKILL.md +18 -9
- package/dist/skills/temps/evals/evals.json +23 -6
- package/dist/skills/temps/howtos/agent-handoff.md +106 -0
- package/dist/skills/temps/howtos/ci-automation.md +2 -3
- package/dist/skills/temps/howtos/curated-services.md +69 -0
- package/dist/skills/temps/howtos/deploy-application.md +8 -1
- package/dist/skills/temps/howtos/edge-rules.md +135 -0
- package/dist/skills/temps/howtos/managed-services.md +4 -4
- package/dist/skills/temps/howtos/projects-and-monorepos.md +2 -1
- package/dist/skills/temps/references/cli-runtime.md +10 -18
- package/dist/skills/temps/references/commands/INDEX.md +11 -0
- package/dist/skills/temps/references/commands/access.md +4 -0
- package/dist/skills/temps/references/commands/agents.md +731 -0
- package/dist/skills/temps/references/commands/ai.md +2638 -9
- package/dist/skills/temps/references/commands/alarms.md +129 -0
- package/dist/skills/temps/references/commands/analytics.md +1199 -2
- package/dist/skills/temps/references/commands/apikeys.md +50 -1
- package/dist/skills/temps/references/commands/audit.md +1 -0
- package/dist/skills/temps/references/commands/backups.md +312 -0
- package/dist/skills/temps/references/commands/blob.md +169 -0
- package/dist/skills/temps/references/commands/cloud.md +73 -0
- package/dist/skills/temps/references/commands/cluster.md +223 -0
- package/dist/skills/temps/references/commands/configure.md +7 -0
- package/dist/skills/temps/references/commands/containers.md +45 -0
- package/dist/skills/temps/references/commands/context.md +6 -0
- package/dist/skills/temps/references/commands/custom-domains.md +32 -0
- package/dist/skills/temps/references/commands/data.md +11 -13
- package/dist/skills/temps/references/commands/deploy-image.md +3 -1
- package/dist/skills/temps/references/commands/deploy-local-image.md +3 -0
- package/dist/skills/temps/references/commands/deploy.md +2 -0
- package/dist/skills/temps/references/commands/deployments.md +560 -0
- package/dist/skills/temps/references/commands/dns-provider.md +63 -0
- package/dist/skills/temps/references/commands/domains.md +105 -0
- package/dist/skills/temps/references/commands/drop.md +2 -0
- package/dist/skills/temps/references/commands/edge-rules.md +218 -0
- package/dist/skills/temps/references/commands/email-domains.md +1 -0
- package/dist/skills/temps/references/commands/email-providers.md +64 -1
- package/dist/skills/temps/references/commands/emails.md +91 -0
- package/dist/skills/temps/references/commands/env-pull.md +2 -0
- package/dist/skills/temps/references/commands/env-push.md +2 -0
- package/dist/skills/temps/references/commands/environments.md +695 -2
- package/dist/skills/temps/references/commands/errors.md +1134 -61
- package/dist/skills/temps/references/commands/facets.md +6 -0
- package/dist/skills/temps/references/commands/flags.md +179 -0
- package/dist/skills/temps/references/commands/funnels.md +22 -2
- package/dist/skills/temps/references/commands/incidents.md +22 -0
- package/dist/skills/temps/references/commands/init.md +2 -0
- package/dist/skills/temps/references/commands/instances.md +6 -0
- package/dist/skills/temps/references/commands/instantiations.md +4 -0
- package/dist/skills/temps/references/commands/ip-access.md +96 -1
- package/dist/skills/temps/references/commands/kv.md +184 -0
- package/dist/skills/temps/references/commands/link.md +2 -0
- package/dist/skills/temps/references/commands/load-balancer.md +2 -0
- package/dist/skills/temps/references/commands/login.md +9 -1
- package/dist/skills/temps/references/commands/logs.md +405 -10
- package/dist/skills/temps/references/commands/mcp-servers.md +4 -0
- package/dist/skills/temps/references/commands/mcp.md +8 -1
- package/dist/skills/temps/references/commands/migrate.md +26 -0
- package/dist/skills/temps/references/commands/monitors.md +456 -0
- package/dist/skills/temps/references/commands/network-policy.md +147 -0
- package/dist/skills/temps/references/commands/nodes.md +209 -2
- package/dist/skills/temps/references/commands/notifications.md +173 -2
- package/dist/skills/temps/references/commands/open.md +2 -0
- package/dist/skills/temps/references/commands/otel-forward.md +16 -0
- package/dist/skills/temps/references/commands/otel.md +436 -0
- package/dist/skills/temps/references/commands/platform.md +57 -0
- package/dist/skills/temps/references/commands/plugin.md +106 -1
- package/dist/skills/temps/references/commands/presets.md +2 -0
- package/dist/skills/temps/references/commands/preview-gateway.md +91 -0
- package/dist/skills/temps/references/commands/project-groups.md +72 -4
- package/dist/skills/temps/references/commands/projects.md +509 -4
- package/dist/skills/temps/references/commands/providers.md +533 -1
- package/dist/skills/temps/references/commands/proxy-logs.md +111 -0
- package/dist/skills/temps/references/commands/revenue.md +223 -0
- package/dist/skills/temps/references/commands/rollback.md +2 -0
- package/dist/skills/temps/references/commands/sandbox.md +790 -10
- package/dist/skills/temps/references/commands/secrets.md +19 -6
- package/dist/skills/temps/references/commands/server.md +107 -0
- package/dist/skills/temps/references/commands/services.md +836 -5
- package/dist/skills/temps/references/commands/session-replay.md +8 -0
- package/dist/skills/temps/references/commands/settings.md +346 -0
- package/dist/skills/temps/references/commands/shield.md +354 -0
- package/dist/skills/temps/references/commands/skills.md +6 -0
- package/dist/skills/temps/references/commands/start.md +1 -0
- package/dist/skills/temps/references/commands/status-pages.md +376 -9
- package/dist/skills/temps/references/commands/status.md +2 -0
- package/dist/skills/temps/references/commands/surveys.md +165 -0
- package/dist/skills/temps/references/commands/teams.md +28 -0
- package/dist/skills/temps/references/commands/templates.md +22 -2
- package/dist/skills/temps/references/commands/tokens.md +106 -0
- package/dist/skills/temps/references/commands/traces.md +207 -0
- package/dist/skills/temps/references/commands/traefik-discovery.md +10 -0
- package/dist/skills/temps/references/commands/tunnels.md +141 -0
- package/dist/skills/temps/references/commands/up.md +2 -0
- package/dist/skills/temps/references/commands/users.md +127 -0
- package/dist/skills/temps/references/commands/vault.md +662 -0
- package/dist/skills/temps/references/commands/webhooks.md +10 -0
- package/dist/skills/temps/references/commands/workflow.md +2 -0
- package/dist/skills/temps/references/commands/workflows.md +563 -0
- package/dist/skills/temps/references/observability/analytics.md +2 -2
- package/dist/skills/temps/references/workflows/platform-operations.md +46 -36
- package/dist/skills/temps/scripts/generate_command_references.py +5 -3
- package/dist/skills/temps/scripts/test_generate_command_references.py +3 -1
- package/dist/skills/temps/scripts/test_validate_skill.py +25 -66
- package/dist/skills/temps/scripts/validate_skill.py +29 -43
- package/package.json +9 -3
- package/dist/skills/temps/scripts/__pycache__/generate_command_references.cpython-314.pyc +0 -0
- package/dist/skills/temps/scripts/__pycache__/test_generate_command_references.cpython-314.pyc +0 -0
- package/dist/skills/temps/scripts/__pycache__/test_validate_skill.cpython-314.pyc +0 -0
- package/dist/skills/temps/scripts/__pycache__/validate_skill.cpython-314.pyc +0 -0
|
@@ -20,6 +20,13 @@ Manage custom domains
|
|
|
20
20
|
- `orders` (`order`) - Manage ACME orders for SSL certificate provisioning
|
|
21
21
|
- `dns-challenge` - Setup DNS challenge records automatically using a DNS provider
|
|
22
22
|
- `http-debug` - Debug HTTP-01 challenge for a domain
|
|
23
|
+
- `get-by-host` - Get domain details by hostname
|
|
24
|
+
- `get-on-demand-cert-status` - Get on-demand TLS certificate status for a hostname
|
|
25
|
+
- `list-on-demand-certs` - List on-demand TLS certificate attempts
|
|
26
|
+
- `get-certificate-settings` - Get certificate settings
|
|
27
|
+
- `update-certificate-settings` - Update certificate settings
|
|
28
|
+
- `get-by-id` - Get domain by ID
|
|
29
|
+
- `get-challenge-token` - Get challenge token for a domain (returns plain text token)
|
|
23
30
|
|
|
24
31
|
### `domains list` (alias: `ls`)
|
|
25
32
|
|
|
@@ -30,6 +37,9 @@ List domains
|
|
|
30
37
|
| Flag | Description | Default | Required |
|
|
31
38
|
|------|-------------|---------|----------|
|
|
32
39
|
| `--json` | Output in JSON format | - | No |
|
|
40
|
+
| `--search <value>` | Only domains whose name contains this | - | No |
|
|
41
|
+
| `--sort-by <value>` | Sort column (default created_at) (one of: created_at, domain, status, expiration) | - | No |
|
|
42
|
+
| `--sort-order <value>` | Sort direction (one of: asc, desc) | - | No |
|
|
33
43
|
|
|
34
44
|
### `domains add`
|
|
35
45
|
|
|
@@ -41,6 +51,7 @@ Add a custom domain
|
|
|
41
51
|
|------|-------------|---------|----------|
|
|
42
52
|
| `-d, --domain <domain>` | Domain name | - | Yes |
|
|
43
53
|
| `-c, --challenge <type>` | Challenge type (http-01 or dns-01) | `http-01` | No |
|
|
54
|
+
| `--manual-dns` | With dns-01, print the TXT record to add by hand even when a DNS provider in Temps manages the zone | - | No |
|
|
44
55
|
| `-y, --yes` | Skip confirmation prompts | - | No |
|
|
45
56
|
|
|
46
57
|
### `domains verify`
|
|
@@ -120,6 +131,8 @@ List all ACME orders
|
|
|
120
131
|
| Flag | Description | Default | Required |
|
|
121
132
|
|------|-------------|---------|----------|
|
|
122
133
|
| `--json` | Output in JSON format | - | No |
|
|
134
|
+
| `--sort-by <value>` | Sort column (default created_at) | - | No |
|
|
135
|
+
| `--sort-order <value>` | Sort direction (one of: asc, desc) | - | No |
|
|
123
136
|
|
|
124
137
|
#### `domains orders show`
|
|
125
138
|
|
|
@@ -185,3 +198,95 @@ Debug HTTP-01 challenge for a domain
|
|
|
185
198
|
|------|-------------|---------|----------|
|
|
186
199
|
| `-d, --domain <domain>` | Domain name | - | Yes |
|
|
187
200
|
| `--json` | Output in JSON format | - | No |
|
|
201
|
+
|
|
202
|
+
### `domains get-by-host`
|
|
203
|
+
|
|
204
|
+
Get domain details by hostname
|
|
205
|
+
|
|
206
|
+
**Usage:** `domains get-by-host <hostname> [options]`
|
|
207
|
+
|
|
208
|
+
**Options:**
|
|
209
|
+
|
|
210
|
+
| Flag | Description | Default | Required |
|
|
211
|
+
|------|-------------|---------|----------|
|
|
212
|
+
| `--json` | Output in JSON format | - | No |
|
|
213
|
+
|
|
214
|
+
### `domains get-on-demand-cert-status`
|
|
215
|
+
|
|
216
|
+
Get on-demand TLS certificate status for a hostname
|
|
217
|
+
|
|
218
|
+
**Usage:** `domains get-on-demand-cert-status <hostname> [options]`
|
|
219
|
+
|
|
220
|
+
**Options:**
|
|
221
|
+
|
|
222
|
+
| Flag | Description | Default | Required |
|
|
223
|
+
|------|-------------|---------|----------|
|
|
224
|
+
| `--json` | Output in JSON format | - | No |
|
|
225
|
+
|
|
226
|
+
### `domains list-on-demand-certs`
|
|
227
|
+
|
|
228
|
+
List on-demand TLS certificate attempts
|
|
229
|
+
|
|
230
|
+
**Options:**
|
|
231
|
+
|
|
232
|
+
| Flag | Description | Default | Required |
|
|
233
|
+
|------|-------------|---------|----------|
|
|
234
|
+
| `--page <n>` | Page number (1-indexed) | - | No |
|
|
235
|
+
| `--page-size <n>` | Number of items per page (max 100) | - | No |
|
|
236
|
+
| `--json` | Output in JSON format | - | No |
|
|
237
|
+
|
|
238
|
+
### `domains get-certificate-settings`
|
|
239
|
+
|
|
240
|
+
Get certificate settings
|
|
241
|
+
|
|
242
|
+
**Usage:** `domains get-certificate-settings <domain-id> [options]`
|
|
243
|
+
|
|
244
|
+
**Options:**
|
|
245
|
+
|
|
246
|
+
| Flag | Description | Default | Required |
|
|
247
|
+
|------|-------------|---------|----------|
|
|
248
|
+
| `--json` | Output in JSON format | - | No |
|
|
249
|
+
|
|
250
|
+
### `domains update-certificate-settings`
|
|
251
|
+
|
|
252
|
+
Update certificate settings
|
|
253
|
+
|
|
254
|
+
**Usage:** `domains update-certificate-settings <domain-id> [options]`
|
|
255
|
+
|
|
256
|
+
**Options:**
|
|
257
|
+
|
|
258
|
+
| Flag | Description | Default | Required |
|
|
259
|
+
|------|-------------|---------|----------|
|
|
260
|
+
| `--alert-days <n>` | Override the instance SSL expiry warning threshold; null inherits it | - | No |
|
|
261
|
+
| `--alerts-enabled` | Override instance SSL expiry alerts; null inherits it | - | No |
|
|
262
|
+
| `--no-alerts-enabled` | Set alerts_enabled to false | - | No |
|
|
263
|
+
| `--challenge-type <value>` | Validation method for future ACME orders [required] | - | No |
|
|
264
|
+
| `--renewal-days <n>` | Start ACME renewal this many days before expiry (1–90) [required] | - | No |
|
|
265
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
266
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
267
|
+
| `--json` | Output in JSON format | - | No |
|
|
268
|
+
|
|
269
|
+
### `domains get-by-id`
|
|
270
|
+
|
|
271
|
+
Get domain by ID
|
|
272
|
+
|
|
273
|
+
**Usage:** `domains get-by-id <domain> [options]`
|
|
274
|
+
|
|
275
|
+
**Options:**
|
|
276
|
+
|
|
277
|
+
| Flag | Description | Default | Required |
|
|
278
|
+
|------|-------------|---------|----------|
|
|
279
|
+
| `--json` | Output in JSON format | - | No |
|
|
280
|
+
|
|
281
|
+
### `domains get-challenge-token`
|
|
282
|
+
|
|
283
|
+
Get challenge token for a domain (returns plain text token)
|
|
284
|
+
|
|
285
|
+
**Usage:** `domains get-challenge-token <domain> [options]`
|
|
286
|
+
|
|
287
|
+
**Options:**
|
|
288
|
+
|
|
289
|
+
| Flag | Description | Default | Required |
|
|
290
|
+
|------|-------------|---------|----------|
|
|
291
|
+
| `-o, --output <path>` | Where to write the reply (default: stdout) | `-` | No |
|
|
292
|
+
| `--json` | Output in JSON format | - | No |
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
<!-- Generated from skills/temps-cli/references/COMMANDS.md. Do not edit manually. -->
|
|
2
|
+
|
|
3
|
+
# `edge-rules` command reference
|
|
4
|
+
|
|
5
|
+
Apply [the CLI runtime and safety contract](../cli-runtime.md) before executing a command. Runtime `--help` is authoritative.
|
|
6
|
+
|
|
7
|
+
## `edge-rules` (alias: `edge-rule`)
|
|
8
|
+
|
|
9
|
+
Block, allow, challenge, redirect or log requests before they reach the app. Rules run top to bottom; the first match decides
|
|
10
|
+
|
|
11
|
+
**Subcommands:**
|
|
12
|
+
|
|
13
|
+
- `list` (`ls`) - List the rules in evaluation order
|
|
14
|
+
- `get` - Show one rule
|
|
15
|
+
- `create` - Add a rule. New rules start in log-only mode unless --mode enforce is given
|
|
16
|
+
- `update` - Change a rule; only the given parts change
|
|
17
|
+
- `delete` (`rm`) - Delete a rule
|
|
18
|
+
- `move` - Move a rule to another position
|
|
19
|
+
- `enable` - Enable a rule
|
|
20
|
+
- `disable` - Disable a rule (kept, never evaluated)
|
|
21
|
+
- `enforce` - Act on matches
|
|
22
|
+
- `log-only` - Only record matches, never act on them
|
|
23
|
+
- `test` - Dry-run a request against the saved rules (or a rules file) and show the trace
|
|
24
|
+
- `export` - Print the rules as a file apply accepts
|
|
25
|
+
- `apply` - Make the project rules match a file: rules are matched by name, changed ones updated, missing ones created, others deleted, then ordered as in the file
|
|
26
|
+
|
|
27
|
+
### `edge-rules list` (alias: `ls`)
|
|
28
|
+
|
|
29
|
+
List the rules in evaluation order
|
|
30
|
+
|
|
31
|
+
**Options:**
|
|
32
|
+
|
|
33
|
+
| Flag | Description | Default | Required |
|
|
34
|
+
|------|-------------|---------|----------|
|
|
35
|
+
| `--project-id <id>` | Project ID | - | Yes |
|
|
36
|
+
| `--json` | Output in JSON format | - | No |
|
|
37
|
+
|
|
38
|
+
### `edge-rules get`
|
|
39
|
+
|
|
40
|
+
Show one rule
|
|
41
|
+
|
|
42
|
+
**Usage:** `edge-rules get <rule-id> [options]`
|
|
43
|
+
|
|
44
|
+
**Options:**
|
|
45
|
+
|
|
46
|
+
| Flag | Description | Default | Required |
|
|
47
|
+
|------|-------------|---------|----------|
|
|
48
|
+
| `--project-id <id>` | Project ID | - | Yes |
|
|
49
|
+
| `--json` | Output in JSON format | - | No |
|
|
50
|
+
|
|
51
|
+
### `edge-rules create`
|
|
52
|
+
|
|
53
|
+
Add a rule. New rules start in log-only mode unless --mode enforce is given
|
|
54
|
+
|
|
55
|
+
**Options:**
|
|
56
|
+
|
|
57
|
+
| Flag | Description | Default | Required |
|
|
58
|
+
|------|-------------|---------|----------|
|
|
59
|
+
| `--file <path>` | JSON file with the rule: {name?, expression, action, mode?, enabled?, environment_id?} | - | No |
|
|
60
|
+
| `--name <name>` | Rule name (generated from the rule when omitted) | - | No |
|
|
61
|
+
| `--expression <json>` | Match expression as JSON, e.g. {"combinator":"all","children":[...]} | - | No |
|
|
62
|
+
| `--action <json>` | Action as JSON, e.g. {"type":"block","status":403} | - | No |
|
|
63
|
+
| `--environment-id <id>` | Apply only to this environment | - | No |
|
|
64
|
+
| `--project-id <id>` | Project ID | - | Yes |
|
|
65
|
+
| `--json` | Output in JSON format | - | No |
|
|
66
|
+
| `--mode <mode>` | enforce or log-only (default: the file's mode, else log-only) | - | No |
|
|
67
|
+
| `--disabled` | Create it disabled | - | No |
|
|
68
|
+
| `--position <n>` | Insert at this 1-based position (default: last) | - | No |
|
|
69
|
+
|
|
70
|
+
### `edge-rules update`
|
|
71
|
+
|
|
72
|
+
Change a rule; only the given parts change
|
|
73
|
+
|
|
74
|
+
**Usage:** `edge-rules update <rule-id> [options]`
|
|
75
|
+
|
|
76
|
+
**Options:**
|
|
77
|
+
|
|
78
|
+
| Flag | Description | Default | Required |
|
|
79
|
+
|------|-------------|---------|----------|
|
|
80
|
+
| `--file <path>` | JSON file with the rule: {name?, expression, action, mode?, enabled?, environment_id?} | - | No |
|
|
81
|
+
| `--name <name>` | Rule name (generated from the rule when omitted) | - | No |
|
|
82
|
+
| `--expression <json>` | Match expression as JSON, e.g. {"combinator":"all","children":[...]} | - | No |
|
|
83
|
+
| `--action <json>` | Action as JSON, e.g. {"type":"block","status":403} | - | No |
|
|
84
|
+
| `--environment-id <id>` | Apply only to this environment | - | No |
|
|
85
|
+
| `--project-id <id>` | Project ID | - | Yes |
|
|
86
|
+
| `--json` | Output in JSON format | - | No |
|
|
87
|
+
| `--mode <mode>` | enforce or log-only | - | No |
|
|
88
|
+
| `--all-environments` | Apply to every environment | - | No |
|
|
89
|
+
| `--revision <n>` | Fail if the rule changed since this revision (default: the current one) | - | No |
|
|
90
|
+
|
|
91
|
+
### `edge-rules delete` (alias: `rm`)
|
|
92
|
+
|
|
93
|
+
Delete a rule
|
|
94
|
+
|
|
95
|
+
**Usage:** `edge-rules delete <rule-id> [options]`
|
|
96
|
+
|
|
97
|
+
**Options:**
|
|
98
|
+
|
|
99
|
+
| Flag | Description | Default | Required |
|
|
100
|
+
|------|-------------|---------|----------|
|
|
101
|
+
| `--project-id <id>` | Project ID | - | Yes |
|
|
102
|
+
| `--json` | Output in JSON format | - | No |
|
|
103
|
+
| `-y, --yes` | Skip confirmation | - | No |
|
|
104
|
+
|
|
105
|
+
### `edge-rules move`
|
|
106
|
+
|
|
107
|
+
Move a rule to another position
|
|
108
|
+
|
|
109
|
+
**Usage:** `edge-rules move <rule-id> [options]`
|
|
110
|
+
|
|
111
|
+
**Options:**
|
|
112
|
+
|
|
113
|
+
| Flag | Description | Default | Required |
|
|
114
|
+
|------|-------------|---------|----------|
|
|
115
|
+
| `--project-id <id>` | Project ID | - | Yes |
|
|
116
|
+
| `--json` | Output in JSON format | - | No |
|
|
117
|
+
| `--to <n>` | New 1-based position | - | Yes |
|
|
118
|
+
|
|
119
|
+
### `edge-rules enable`
|
|
120
|
+
|
|
121
|
+
Enable a rule
|
|
122
|
+
|
|
123
|
+
**Usage:** `edge-rules enable <rule-id> [options]`
|
|
124
|
+
|
|
125
|
+
**Options:**
|
|
126
|
+
|
|
127
|
+
| Flag | Description | Default | Required |
|
|
128
|
+
|------|-------------|---------|----------|
|
|
129
|
+
| `--project-id <id>` | Project ID | - | Yes |
|
|
130
|
+
| `--json` | Output in JSON format | - | No |
|
|
131
|
+
|
|
132
|
+
### `edge-rules disable`
|
|
133
|
+
|
|
134
|
+
Disable a rule (kept, never evaluated)
|
|
135
|
+
|
|
136
|
+
**Usage:** `edge-rules disable <rule-id> [options]`
|
|
137
|
+
|
|
138
|
+
**Options:**
|
|
139
|
+
|
|
140
|
+
| Flag | Description | Default | Required |
|
|
141
|
+
|------|-------------|---------|----------|
|
|
142
|
+
| `--project-id <id>` | Project ID | - | Yes |
|
|
143
|
+
| `--json` | Output in JSON format | - | No |
|
|
144
|
+
|
|
145
|
+
### `edge-rules enforce`
|
|
146
|
+
|
|
147
|
+
Act on matches
|
|
148
|
+
|
|
149
|
+
**Usage:** `edge-rules enforce <rule-id> [options]`
|
|
150
|
+
|
|
151
|
+
**Options:**
|
|
152
|
+
|
|
153
|
+
| Flag | Description | Default | Required |
|
|
154
|
+
|------|-------------|---------|----------|
|
|
155
|
+
| `--project-id <id>` | Project ID | - | Yes |
|
|
156
|
+
| `--json` | Output in JSON format | - | No |
|
|
157
|
+
|
|
158
|
+
### `edge-rules log-only`
|
|
159
|
+
|
|
160
|
+
Only record matches, never act on them
|
|
161
|
+
|
|
162
|
+
**Usage:** `edge-rules log-only <rule-id> [options]`
|
|
163
|
+
|
|
164
|
+
**Options:**
|
|
165
|
+
|
|
166
|
+
| Flag | Description | Default | Required |
|
|
167
|
+
|------|-------------|---------|----------|
|
|
168
|
+
| `--project-id <id>` | Project ID | - | Yes |
|
|
169
|
+
| `--json` | Output in JSON format | - | No |
|
|
170
|
+
|
|
171
|
+
### `edge-rules test`
|
|
172
|
+
|
|
173
|
+
Dry-run a request against the saved rules (or a rules file) and show the trace
|
|
174
|
+
|
|
175
|
+
**Options:**
|
|
176
|
+
|
|
177
|
+
| Flag | Description | Default | Required |
|
|
178
|
+
|------|-------------|---------|----------|
|
|
179
|
+
| `--project-id <id>` | Project ID | - | Yes |
|
|
180
|
+
| `--json` | Output in JSON format | - | No |
|
|
181
|
+
| `--url <url>` | Request URL or path, e.g. https://app.example.com/admin?x=1 | - | Yes |
|
|
182
|
+
| `--method <method>` | HTTP method | `GET` | No |
|
|
183
|
+
| `--header <header>` | "Name: value"; repeatable | `` | No |
|
|
184
|
+
| `--ip <ip>` | Client address | - | No |
|
|
185
|
+
| `--country <code>` | ISO country code, e.g. DE | - | No |
|
|
186
|
+
| `--continent <code>` | Continent code, e.g. EU | - | No |
|
|
187
|
+
| `--asn <n>` | Autonomous system number | - | No |
|
|
188
|
+
| `--user-agent <ua>` | User agent | - | No |
|
|
189
|
+
| `--bot-class <class>` | human, search_engine, ai_crawler, ai_agent or unknown_bot | - | No |
|
|
190
|
+
| `--environment-id <id>` | Environment the request is for | - | No |
|
|
191
|
+
| `--cleared` | The visitor already solved a challenge | - | No |
|
|
192
|
+
| `--file <path>` | Evaluate these rules instead of the saved ones (same format as export) | - | No |
|
|
193
|
+
|
|
194
|
+
### `edge-rules export`
|
|
195
|
+
|
|
196
|
+
Print the rules as a file apply accepts
|
|
197
|
+
|
|
198
|
+
**Options:**
|
|
199
|
+
|
|
200
|
+
| Flag | Description | Default | Required |
|
|
201
|
+
|------|-------------|---------|----------|
|
|
202
|
+
| `--project-id <id>` | Project ID | - | Yes |
|
|
203
|
+
| `--json` | Output in JSON format | - | No |
|
|
204
|
+
| `--output <path>` | Write to a file instead of stdout | - | No |
|
|
205
|
+
|
|
206
|
+
### `edge-rules apply`
|
|
207
|
+
|
|
208
|
+
Make the project rules match a file: rules are matched by name, changed ones updated, missing ones created, others deleted, then ordered as in the file
|
|
209
|
+
|
|
210
|
+
**Options:**
|
|
211
|
+
|
|
212
|
+
| Flag | Description | Default | Required |
|
|
213
|
+
|------|-------------|---------|----------|
|
|
214
|
+
| `--project-id <id>` | Project ID | - | Yes |
|
|
215
|
+
| `--json` | Output in JSON format | - | No |
|
|
216
|
+
| `--file <path>` | Rules file ({"rules": [...]}, as written by export) | - | Yes |
|
|
217
|
+
| `--dry-run` | Show the plan without changing anything | - | No |
|
|
218
|
+
| `-y, --yes` | Skip confirmation | - | No |
|
|
@@ -78,6 +78,7 @@ Remove an email domain
|
|
|
78
78
|
| Flag | Description | Default | Required |
|
|
79
79
|
|------|-------------|---------|----------|
|
|
80
80
|
| `--id <id>` | Email domain ID | - | Yes |
|
|
81
|
+
| `--delete-from-provider` | Also delete the domain at the email provider (SES, etc.) | - | No |
|
|
81
82
|
| `-f, --force` | Skip confirmation | - | No |
|
|
82
83
|
| `-y, --yes` | Skip confirmation prompts (alias for --force) | - | No |
|
|
83
84
|
|
|
@@ -16,6 +16,9 @@ Manage email providers (SES, Scaleway) for transactional email
|
|
|
16
16
|
- `remove` (`rm`) - Remove an email provider
|
|
17
17
|
- `test` - Test an email provider by sending a test email
|
|
18
18
|
- `discoverable-domains` (`discover-domains`) - List domain identities already registered on the provider's side, for importing
|
|
19
|
+
- `update` - Update an email provider
|
|
20
|
+
- `setup-tracking` - One-click AWS-side setup of SES event tracking (SNS topic + webhook subscription + SESv2 event..
|
|
21
|
+
- `get-tracking-status` - Live status of SES event tracking for a provider
|
|
19
22
|
|
|
20
23
|
### `email-providers list` (alias: `ls`)
|
|
21
24
|
|
|
@@ -36,13 +39,27 @@ Create a new email provider
|
|
|
36
39
|
| Flag | Description | Default | Required |
|
|
37
40
|
|------|-------------|---------|----------|
|
|
38
41
|
| `-n, --name <name>` | Provider name | - | No |
|
|
39
|
-
| `-t, --type <type>` | Provider type (ses, scaleway) | - | No |
|
|
42
|
+
| `-t, --type <type>` | Provider type (ses, scaleway, smtp) | - | No |
|
|
40
43
|
| `-r, --region <region>` | Cloud region | - | No |
|
|
41
44
|
| `--access-key-id <key>` | AWS access key ID (for SES) | - | No |
|
|
42
45
|
| `--secret-access-key <secret>` | AWS secret access key (for SES) | - | No |
|
|
43
46
|
| `--api-key <key>` | Scaleway API key | - | No |
|
|
44
47
|
| `--project-id <id>` | Scaleway project ID | - | No |
|
|
48
|
+
| `--sns-topic-arn <arn>` | SES: the only SNS topic allowed to deliver bounce and complaint events | - | No |
|
|
49
|
+
| `--smtp-host <host>` | SMTP server host name | - | No |
|
|
50
|
+
| `--smtp-port <port>` | SMTP port (default: 587, or 465 with --smtp-encryption tls) | - | No |
|
|
51
|
+
| `--smtp-encryption <mode>` | starttls (default), tls or none | - | No |
|
|
52
|
+
| `--smtp-username <user>` | SMTP user name, when the server requires a sign-in | - | No |
|
|
53
|
+
| `--smtp-password <password>` | SMTP password | - | No |
|
|
54
|
+
| `--smtp-accept-invalid-certs` | Accept a self-signed or otherwise invalid server certificate | - | No |
|
|
45
55
|
| `-y, --yes` | Skip confirmation prompts (for automation) | - | No |
|
|
56
|
+
| `--secret-access-key-file <path>` | Read the AWS secret access key from a file (- reads stdin) instead of --secret-access-key | - | No |
|
|
57
|
+
| `--secret-access-key-stdin` | Read the AWS secret access key from stdin instead of --secret-access-key | - | No |
|
|
58
|
+
| `--api-key-file <path>` | Read the Scaleway API key from a file (- reads stdin) instead of --api-key | - | No |
|
|
59
|
+
| `--api-key-stdin` | Read the Scaleway API key from stdin instead of --api-key | - | No |
|
|
60
|
+
| `--smtp-password-file <path>` | Read the SMTP password from a file (- reads stdin) instead of --smtp-password | - | No |
|
|
61
|
+
| `--smtp-password-stdin` | Read the SMTP password from stdin instead of --smtp-password | - | No |
|
|
62
|
+
| `--trim-trailing-newline` | Drop exactly one trailing newline (\n or \r\n) from a value read from a file or stdin (kept byte-for-byte by default) | - | No |
|
|
46
63
|
|
|
47
64
|
### `email-providers show`
|
|
48
65
|
|
|
@@ -89,3 +106,49 @@ List domain identities already registered on the provider's side, for importing
|
|
|
89
106
|
|------|-------------|---------|----------|
|
|
90
107
|
| `--id <id>` | Provider ID | - | Yes |
|
|
91
108
|
| `--json` | Output in JSON format | - | No |
|
|
109
|
+
|
|
110
|
+
### `email-providers update`
|
|
111
|
+
|
|
112
|
+
Update an email provider
|
|
113
|
+
|
|
114
|
+
**Usage:** `email-providers update <id> [options]`
|
|
115
|
+
|
|
116
|
+
**Options:**
|
|
117
|
+
|
|
118
|
+
| Flag | Description | Default | Required |
|
|
119
|
+
|------|-------------|---------|----------|
|
|
120
|
+
| `--is-active` | Body field is_active | - | No |
|
|
121
|
+
| `--no-is-active` | Set is_active to false | - | No |
|
|
122
|
+
| `--name <value>` | Body field name | - | No |
|
|
123
|
+
| `--region <value>` | Body field region | - | No |
|
|
124
|
+
| `--scaleway-credentials <json>` | Body field scaleway_credentials (JSON) | - | No |
|
|
125
|
+
| `--ses-credentials <json>` | Body field ses_credentials (JSON) | - | No |
|
|
126
|
+
| `--smtp-credentials <json>` | Generic SMTP credentials request body (JSON) | - | No |
|
|
127
|
+
| `--sns-topic-arn <value>` | Rotate or clear the exact SNS topic allowed for this SES provider | - | No |
|
|
128
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
129
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
130
|
+
| `--json` | Output in JSON format | - | No |
|
|
131
|
+
|
|
132
|
+
### `email-providers setup-tracking`
|
|
133
|
+
|
|
134
|
+
One-click AWS-side setup of SES event tracking (SNS topic + webhook subscription + SESv2 event..
|
|
135
|
+
|
|
136
|
+
**Usage:** `email-providers setup-tracking <id> [options]`
|
|
137
|
+
|
|
138
|
+
**Options:**
|
|
139
|
+
|
|
140
|
+
| Flag | Description | Default | Required |
|
|
141
|
+
|------|-------------|---------|----------|
|
|
142
|
+
| `--json` | Output in JSON format | - | No |
|
|
143
|
+
|
|
144
|
+
### `email-providers get-tracking-status`
|
|
145
|
+
|
|
146
|
+
Live status of SES event tracking for a provider
|
|
147
|
+
|
|
148
|
+
**Usage:** `email-providers get-tracking-status <id> [options]`
|
|
149
|
+
|
|
150
|
+
**Options:**
|
|
151
|
+
|
|
152
|
+
| Flag | Description | Default | Required |
|
|
153
|
+
|------|-------------|---------|----------|
|
|
154
|
+
| `--json` | Output in JSON format | - | No |
|
|
@@ -15,6 +15,8 @@ Manage and send emails
|
|
|
15
15
|
- `show` - Show email details
|
|
16
16
|
- `stats` - Get email statistics
|
|
17
17
|
- `validate` - Validate an email address
|
|
18
|
+
- `tracking` - Tracking commands
|
|
19
|
+
- `resend` - Resend a captured email
|
|
18
20
|
|
|
19
21
|
### `emails list` (alias: `ls`)
|
|
20
22
|
|
|
@@ -45,6 +47,11 @@ Send an email
|
|
|
45
47
|
| `--body <body>` | Email body | - | No |
|
|
46
48
|
| `--from <email>` | Sender email address | - | No |
|
|
47
49
|
| `-y, --yes` | Skip confirmation prompts (for automation) | - | No |
|
|
50
|
+
| `--cc <value>` | CC recipient (repeatable) (repeatable) | - | No |
|
|
51
|
+
| `--bcc <value>` | BCC recipient (repeatable) (repeatable) | - | No |
|
|
52
|
+
| `--reply-to <value>` | Reply-to address | - | No |
|
|
53
|
+
| `--html <value>` | HTML body, sent alongside the text body | - | No |
|
|
54
|
+
| `--headers <json>` | Extra headers as a JSON object, e.g. {"X-Campaign":"spring"} (JSON) | - | No |
|
|
48
55
|
|
|
49
56
|
### `emails show`
|
|
50
57
|
|
|
@@ -77,3 +84,87 @@ Validate an email address
|
|
|
77
84
|
|------|-------------|---------|----------|
|
|
78
85
|
| `--email <email>` | Email address to validate | - | No |
|
|
79
86
|
| `--json` | Output in JSON format | - | No |
|
|
87
|
+
|
|
88
|
+
### `emails tracking`
|
|
89
|
+
|
|
90
|
+
Tracking commands
|
|
91
|
+
|
|
92
|
+
**Subcommands:**
|
|
93
|
+
|
|
94
|
+
- `get-global-events` - GET /emails/events
|
|
95
|
+
- `get-global-event-stats` - GET /emails/events/stats
|
|
96
|
+
- `get` - Get email tracking summary
|
|
97
|
+
- `get-events` - Get email tracking events
|
|
98
|
+
- `get-links` - Get tracked links for an email
|
|
99
|
+
|
|
100
|
+
#### `emails tracking get-global-events`
|
|
101
|
+
|
|
102
|
+
GET /emails/events
|
|
103
|
+
|
|
104
|
+
**Options:**
|
|
105
|
+
|
|
106
|
+
| Flag | Description | Default | Required |
|
|
107
|
+
|------|-------------|---------|----------|
|
|
108
|
+
| `--event-type <value>` | Filter by event type (open, click) | - | No |
|
|
109
|
+
| `--page <n>` | Page number (default: 1) | - | No |
|
|
110
|
+
| `--page-size <n>` | Page size (default: 20, max: 100) | - | No |
|
|
111
|
+
| `--json` | Output in JSON format | - | No |
|
|
112
|
+
|
|
113
|
+
#### `emails tracking get-global-event-stats`
|
|
114
|
+
|
|
115
|
+
GET /emails/events/stats
|
|
116
|
+
|
|
117
|
+
**Options:**
|
|
118
|
+
|
|
119
|
+
| Flag | Description | Default | Required |
|
|
120
|
+
|------|-------------|---------|----------|
|
|
121
|
+
| `--json` | Output in JSON format | - | No |
|
|
122
|
+
|
|
123
|
+
#### `emails tracking get`
|
|
124
|
+
|
|
125
|
+
Get email tracking summary
|
|
126
|
+
|
|
127
|
+
**Usage:** `emails tracking get <id> [options]`
|
|
128
|
+
|
|
129
|
+
**Options:**
|
|
130
|
+
|
|
131
|
+
| Flag | Description | Default | Required |
|
|
132
|
+
|------|-------------|---------|----------|
|
|
133
|
+
| `--json` | Output in JSON format | - | No |
|
|
134
|
+
|
|
135
|
+
#### `emails tracking get-events`
|
|
136
|
+
|
|
137
|
+
Get email tracking events
|
|
138
|
+
|
|
139
|
+
**Usage:** `emails tracking get-events <id> [options]`
|
|
140
|
+
|
|
141
|
+
**Options:**
|
|
142
|
+
|
|
143
|
+
| Flag | Description | Default | Required |
|
|
144
|
+
|------|-------------|---------|----------|
|
|
145
|
+
| `--event-type <value>` | Filter by event type (open, click) | - | No |
|
|
146
|
+
| `--json` | Output in JSON format | - | No |
|
|
147
|
+
|
|
148
|
+
#### `emails tracking get-links`
|
|
149
|
+
|
|
150
|
+
Get tracked links for an email
|
|
151
|
+
|
|
152
|
+
**Usage:** `emails tracking get-links <id> [options]`
|
|
153
|
+
|
|
154
|
+
**Options:**
|
|
155
|
+
|
|
156
|
+
| Flag | Description | Default | Required |
|
|
157
|
+
|------|-------------|---------|----------|
|
|
158
|
+
| `--json` | Output in JSON format | - | No |
|
|
159
|
+
|
|
160
|
+
### `emails resend`
|
|
161
|
+
|
|
162
|
+
Resend a captured email
|
|
163
|
+
|
|
164
|
+
**Usage:** `emails resend <id> [options]`
|
|
165
|
+
|
|
166
|
+
**Options:**
|
|
167
|
+
|
|
168
|
+
| Flag | Description | Default | Required |
|
|
169
|
+
|------|-------------|---------|----------|
|
|
170
|
+
| `--json` | Output in JSON format | - | No |
|