@temps-sdk/cli 0.2.0-beta.1 → 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.
Files changed (68) hide show
  1. package/dist/index.js +68378 -53718
  2. package/dist/skills/temps/SKILL.md +1 -0
  3. package/dist/skills/temps/howtos/agent-handoff.md +106 -0
  4. package/dist/skills/temps/references/commands/INDEX.md +6 -0
  5. package/dist/skills/temps/references/commands/agents.md +731 -0
  6. package/dist/skills/temps/references/commands/ai.md +2636 -11
  7. package/dist/skills/temps/references/commands/alarms.md +125 -0
  8. package/dist/skills/temps/references/commands/analytics.md +1001 -3
  9. package/dist/skills/temps/references/commands/apikeys.md +48 -1
  10. package/dist/skills/temps/references/commands/audit.md +1 -0
  11. package/dist/skills/temps/references/commands/backups.md +306 -0
  12. package/dist/skills/temps/references/commands/blob.md +169 -0
  13. package/dist/skills/temps/references/commands/cloud.md +59 -0
  14. package/dist/skills/temps/references/commands/cluster.md +223 -0
  15. package/dist/skills/temps/references/commands/containers.md +45 -0
  16. package/dist/skills/temps/references/commands/custom-domains.md +32 -0
  17. package/dist/skills/temps/references/commands/data.md +1 -0
  18. package/dist/skills/temps/references/commands/deploy-image.md +3 -1
  19. package/dist/skills/temps/references/commands/deploy-local-image.md +3 -0
  20. package/dist/skills/temps/references/commands/deployments.md +559 -0
  21. package/dist/skills/temps/references/commands/dns-provider.md +63 -0
  22. package/dist/skills/temps/references/commands/domains.md +104 -0
  23. package/dist/skills/temps/references/commands/email-domains.md +1 -0
  24. package/dist/skills/temps/references/commands/email-providers.md +59 -1
  25. package/dist/skills/temps/references/commands/emails.md +91 -0
  26. package/dist/skills/temps/references/commands/environments.md +447 -2
  27. package/dist/skills/temps/references/commands/errors.md +563 -3
  28. package/dist/skills/temps/references/commands/flags.md +76 -0
  29. package/dist/skills/temps/references/commands/funnels.md +22 -2
  30. package/dist/skills/temps/references/commands/incidents.md +18 -0
  31. package/dist/skills/temps/references/commands/ip-access.md +96 -1
  32. package/dist/skills/temps/references/commands/kv.md +184 -0
  33. package/dist/skills/temps/references/commands/load-balancer.md +2 -0
  34. package/dist/skills/temps/references/commands/login.md +4 -1
  35. package/dist/skills/temps/references/commands/logs.md +272 -0
  36. package/dist/skills/temps/references/commands/migrate.md +17 -0
  37. package/dist/skills/temps/references/commands/monitors.md +386 -0
  38. package/dist/skills/temps/references/commands/network-policy.md +27 -0
  39. package/dist/skills/temps/references/commands/nodes.md +155 -2
  40. package/dist/skills/temps/references/commands/notifications.md +149 -0
  41. package/dist/skills/temps/references/commands/otel.md +436 -0
  42. package/dist/skills/temps/references/commands/platform.md +53 -0
  43. package/dist/skills/temps/references/commands/plugin.md +76 -0
  44. package/dist/skills/temps/references/commands/preview-gateway.md +91 -0
  45. package/dist/skills/temps/references/commands/project-groups.md +31 -0
  46. package/dist/skills/temps/references/commands/projects.md +452 -6
  47. package/dist/skills/temps/references/commands/providers.md +519 -0
  48. package/dist/skills/temps/references/commands/proxy-logs.md +111 -0
  49. package/dist/skills/temps/references/commands/revenue.md +219 -0
  50. package/dist/skills/temps/references/commands/sandbox.md +699 -9
  51. package/dist/skills/temps/references/commands/secrets.md +3 -0
  52. package/dist/skills/temps/references/commands/server.md +107 -0
  53. package/dist/skills/temps/references/commands/services.md +830 -5
  54. package/dist/skills/temps/references/commands/settings.md +346 -0
  55. package/dist/skills/temps/references/commands/shield.md +354 -0
  56. package/dist/skills/temps/references/commands/status-pages.md +103 -3
  57. package/dist/skills/temps/references/commands/teams.md +14 -0
  58. package/dist/skills/temps/references/commands/templates.md +14 -0
  59. package/dist/skills/temps/references/commands/tokens.md +106 -0
  60. package/dist/skills/temps/references/commands/traces.md +149 -0
  61. package/dist/skills/temps/references/commands/tunnels.md +2 -0
  62. package/dist/skills/temps/references/commands/users.md +111 -0
  63. package/dist/skills/temps/references/commands/vault.md +662 -0
  64. package/dist/skills/temps/references/commands/webhooks.md +4 -0
  65. package/dist/skills/temps/references/commands/workflows.md +347 -0
  66. package/dist/skills/temps/scripts/generate_command_references.py +5 -3
  67. package/dist/skills/temps/scripts/test_generate_command_references.py +3 -1
  68. package/package.json +3 -2
@@ -11,6 +11,10 @@ Cluster-wide multi-node operations
11
11
  **Subcommands:**
12
12
 
13
13
  - `dns` - Cluster DNS resolver (ADR-024) operations
14
+ - `network` - The compute network workloads get their addresses from
15
+ - `join-token` - The shared token worker nodes join with
16
+ - `enrollment-tokens` - Short-lived, single-use tokens a new node enrolls with
17
+ - `rotate-ca` - Replace a compromised cluster CA: every node re-enrolls and outstanding enrollment tokens are revoked
14
18
 
15
19
  ### `cluster dns`
16
20
 
@@ -19,6 +23,11 @@ Cluster DNS resolver (ADR-024) operations
19
23
  **Subcommands:**
20
24
 
21
25
  - `status` - Show whether cluster DNS is healthy across every node — resolver status, last sync, and errors — without SSHing into a node to read logs
26
+ - `resolvers` - Each node's resolver: health, version, records served and last sync
27
+ - `records` - The internal zone's records and who owns them, newest first
28
+ - `queries` - Recent queries the internal resolvers answered, newest first
29
+ - `traffic` - Queries per outcome over time for one node's resolver
30
+ - `resolve` - Resolve a name from one node's resolver, optionally as a project or sandbox would see it
22
31
 
23
32
  #### `cluster dns status`
24
33
 
@@ -29,3 +38,217 @@ Show whether cluster DNS is healthy across every node — resolver status, last
29
38
  | Flag | Description | Default | Required |
30
39
  |------|-------------|---------|----------|
31
40
  | `--json` | Output in JSON format | - | No |
41
+
42
+ #### `cluster dns resolvers`
43
+
44
+ Each node's resolver: health, version, records served and last sync
45
+
46
+ **Options:**
47
+
48
+ | Flag | Description | Default | Required |
49
+ |------|-------------|---------|----------|
50
+ | `--json` | Output in JSON format | - | No |
51
+
52
+ #### `cluster dns records`
53
+
54
+ The internal zone's records and who owns them, newest first
55
+
56
+ **Options:**
57
+
58
+ | Flag | Description | Default | Required |
59
+ |------|-------------|---------|----------|
60
+ | `--search <text>` | Only records whose name contains this | - | No |
61
+ | `--node <id>` | Only records served by this node | - | No |
62
+ | `--owner-kind <kind>` | Only records owned by this kind (e.g. environment, service, sandbox) | - | No |
63
+ | `--page <n>` | Page (default 1) | - | No |
64
+ | `--page-size <n>` | Records per page (max 100) | - | No |
65
+ | `--json` | Output in JSON format | - | No |
66
+
67
+ #### `cluster dns queries`
68
+
69
+ Recent queries the internal resolvers answered, newest first
70
+
71
+ **Options:**
72
+
73
+ | Flag | Description | Default | Required |
74
+ |------|-------------|---------|----------|
75
+ | `--node <id>` | Only this node | - | No |
76
+ | `--outcome <outcome>` | Only this outcome (e.g. answered, nxdomain, refused) | - | No |
77
+ | `--zone <zone>` | Only this zone | - | No |
78
+ | `--name <name>` | Only this queried name | - | No |
79
+ | `--project <id>` | Only queries from this project ID | - | No |
80
+ | `--page <n>` | Page (default 1) | - | No |
81
+ | `--page-size <n>` | Queries per page (max 100) | - | No |
82
+ | `--json` | Output in JSON format | - | No |
83
+
84
+ #### `cluster dns traffic`
85
+
86
+ Queries per outcome over time for one node's resolver
87
+
88
+ **Options:**
89
+
90
+ | Flag | Description | Default | Required |
91
+ |------|-------------|---------|----------|
92
+ | `--node <id>` | Node (default: the control plane) | - | No |
93
+ | `--range <range>` | Time range, e.g. 1h, 24h, 7d | - | No |
94
+ | `--json` | Output in JSON format | - | No |
95
+
96
+ #### `cluster dns resolve`
97
+
98
+ Resolve a name from one node's resolver, optionally as a project or sandbox would see it
99
+
100
+ **Usage:** `cluster dns resolve <name> [options]`
101
+
102
+ **Options:**
103
+
104
+ | Flag | Description | Default | Required |
105
+ |------|-------------|---------|----------|
106
+ | `--node <id>` | Node whose resolver answers | - | Yes |
107
+ | `--type <type>` | Record type (A, AAAA, CNAME, SRV, TXT) | - | No |
108
+ | `--project <id>` | Ask as this project ID | - | No |
109
+ | `--sandbox <id>` | Ask as this sandbox | - | No |
110
+ | `--json` | Output in JSON format | - | No |
111
+
112
+ ### `cluster network`
113
+
114
+ The compute network workloads get their addresses from
115
+
116
+ **Subcommands:**
117
+
118
+ - `show` - Show the compute pool, whether it can change, and each node's allocation
119
+ - `set` - Change the compute pool (only while no allocation uses it)
120
+ - `new-network-id` - Give this cluster its own VXLAN network ID, so it cannot collide with another cluster on the same network
121
+
122
+ #### `cluster network show`
123
+
124
+ Show the compute pool, whether it can change, and each node's allocation
125
+
126
+ **Options:**
127
+
128
+ | Flag | Description | Default | Required |
129
+ |------|-------------|---------|----------|
130
+ | `--json` | Output in JSON format | - | No |
131
+
132
+ #### `cluster network set`
133
+
134
+ Change the compute pool (only while no allocation uses it)
135
+
136
+ **Options:**
137
+
138
+ | Flag | Description | Default | Required |
139
+ |------|-------------|---------|----------|
140
+ | `--compute-pool <cidr>` | CIDR workloads get addresses from | - | Yes |
141
+ | `--overlay-network <name>` | Docker overlay network name | - | No |
142
+ | `--subnet-prefix <len>` | Per-node subnet prefix length | - | No |
143
+ | `-y, --yes` | Do not ask for confirmation | - | No |
144
+ | `--json` | Output in JSON format | - | No |
145
+
146
+ #### `cluster network new-network-id`
147
+
148
+ Give this cluster its own VXLAN network ID, so it cannot collide with another cluster on the same network
149
+
150
+ **Options:**
151
+
152
+ | Flag | Description | Default | Required |
153
+ |------|-------------|---------|----------|
154
+ | `-y, --yes` | Do not ask for confirmation | - | No |
155
+ | `--json` | Output in JSON format | - | No |
156
+
157
+ ### `cluster join-token`
158
+
159
+ The shared token worker nodes join with
160
+
161
+ **Subcommands:**
162
+
163
+ - `status` - Show whether a join token is configured
164
+ - `generate` - Generate a new join token (replaces the current one; shown once)
165
+ - `revoke` - Revoke the join token; no new node can join with it
166
+
167
+ #### `cluster join-token status`
168
+
169
+ Show whether a join token is configured
170
+
171
+ **Options:**
172
+
173
+ | Flag | Description | Default | Required |
174
+ |------|-------------|---------|----------|
175
+ | `--json` | Output in JSON format | - | No |
176
+
177
+ #### `cluster join-token generate`
178
+
179
+ Generate a new join token (replaces the current one; shown once)
180
+
181
+ **Options:**
182
+
183
+ | Flag | Description | Default | Required |
184
+ |------|-------------|---------|----------|
185
+ | `-y, --yes` | Do not ask before replacing an existing token | - | No |
186
+ | `--json` | Output in JSON format | - | No |
187
+
188
+ #### `cluster join-token revoke`
189
+
190
+ Revoke the join token; no new node can join with it
191
+
192
+ **Options:**
193
+
194
+ | Flag | Description | Default | Required |
195
+ |------|-------------|---------|----------|
196
+ | `-y, --yes` | Do not ask for confirmation | - | No |
197
+ | `--json` | Output in JSON format | - | No |
198
+
199
+ ### `cluster enrollment-tokens`
200
+
201
+ Short-lived, single-use tokens a new node enrolls with
202
+
203
+ **Subcommands:**
204
+
205
+ - `list` (`ls`) - List valid enrollment tokens (the tokens themselves are never returned)
206
+ - `create` (`mint`) - Mint an enrollment token (shown once)
207
+ - `revoke` - Revoke an enrollment token
208
+
209
+ #### `cluster enrollment-tokens list` (alias: `ls`)
210
+
211
+ List valid enrollment tokens (the tokens themselves are never returned)
212
+
213
+ **Options:**
214
+
215
+ | Flag | Description | Default | Required |
216
+ |------|-------------|---------|----------|
217
+ | `--json` | Output in JSON format | - | No |
218
+
219
+ #### `cluster enrollment-tokens create` (alias: `mint`)
220
+
221
+ Mint an enrollment token (shown once)
222
+
223
+ **Options:**
224
+
225
+ | Flag | Description | Default | Required |
226
+ |------|-------------|---------|----------|
227
+ | `--ttl <seconds>` | How long it is valid | - | No |
228
+ | `--max-uses <n>` | How many nodes may enroll with it | - | No |
229
+ | `--node <name>` | Only a node with this name may use it | - | No |
230
+ | `--json` | Output in JSON format | - | No |
231
+
232
+ #### `cluster enrollment-tokens revoke`
233
+
234
+ Revoke an enrollment token
235
+
236
+ **Usage:** `cluster enrollment-tokens revoke <id> [options]`
237
+
238
+ **Options:**
239
+
240
+ | Flag | Description | Default | Required |
241
+ |------|-------------|---------|----------|
242
+ | `--json` | Output in JSON format | - | No |
243
+
244
+ ### `cluster rotate-ca`
245
+
246
+ Replace a compromised cluster CA: every node re-enrolls and outstanding enrollment tokens are revoked
247
+
248
+ **Options:**
249
+
250
+ | Flag | Description | Default | Required |
251
+ |------|-------------|---------|----------|
252
+ | `--expected-fingerprint <sha256>` | Fingerprint of the current CA, read through a trusted channel just before | - | Yes |
253
+ | `-y, --yes` | Do not ask; sends the confirmation "ROTATE CLUSTER CA" for you | - | No |
254
+ | `--json` | Output in JSON format | - | No |
@@ -17,6 +17,9 @@ Manage project containers in environments
17
17
  - `restart` - Restart a container
18
18
  - `history` - List containers that have run in an environment, including ones replaced by a later redeploy; every currently-running container is always included
19
19
  - `metrics` - Get container resource metrics (all containers if no container ID specified)
20
+ - `get-environment-variable` - Get container environment variable
21
+ - `metrics-get-history` - Fetch a time-series range for a single container resource metric (recorded by the container health monitor..
22
+ - `stream-metrics` - Stream container metrics via Server-Sent Events (SSE)
20
23
 
21
24
  ### `containers list` (alias: `ls`)
22
25
 
@@ -108,3 +111,45 @@ Get container resource metrics (all containers if no container ID specified)
108
111
  | `--json` | Output in JSON format | - | No |
109
112
  | `-w, --watch` | Watch mode - continuously update metrics | - | No |
110
113
  | `-i, --interval <seconds>` | Refresh interval in seconds (default: 2) | `2` | No |
114
+
115
+ ### `containers get-environment-variable`
116
+
117
+ Get container environment variable
118
+
119
+ **Usage:** `containers get-environment-variable <environment-id> <container-id> <variable-name> [options]`
120
+
121
+ **Options:**
122
+
123
+ | Flag | Description | Default | Required |
124
+ |------|-------------|---------|----------|
125
+ | `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
126
+ | `--json` | Output in JSON format | - | No |
127
+
128
+ ### `containers metrics-get-history`
129
+
130
+ Fetch a time-series range for a single container resource metric (recorded by the container health monitor..
131
+
132
+ **Usage:** `containers metrics-get-history <environment-id> <container-id> [options]`
133
+
134
+ **Options:**
135
+
136
+ | Flag | Description | Default | Required |
137
+ |------|-------------|---------|----------|
138
+ | `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
139
+ | `--metric <value>` | Dotted metric name, e.g. 'container.cpu_percent' or 'container.memory_used_bytes' [required] | - | No |
140
+ | `--range <value>` | Time window: '1h', '6h', '24h', or '7d' (defaults to '1h') | - | No |
141
+ | `--json` | Output in JSON format | - | No |
142
+
143
+ ### `containers stream-metrics`
144
+
145
+ Stream container metrics via Server-Sent Events (SSE)
146
+
147
+ **Usage:** `containers stream-metrics <environment-id> <container-id> [options]`
148
+
149
+ **Options:**
150
+
151
+ | Flag | Description | Default | Required |
152
+ |------|-------------|---------|----------|
153
+ | `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
154
+ | `--interval <n>` | Update interval in milliseconds (default: 1000) | - | No |
155
+ | `--json` | Output in JSON format | - | No |
@@ -16,6 +16,8 @@ Manage project custom domains
16
16
  - `update` - Update a custom domain
17
17
  - `remove` (`rm`) - Remove a custom domain
18
18
  - `link-cert` - Link a custom domain to a certificate
19
+ - `get-visible-by-hostname` - Find the project assignment for a certificate hostname
20
+ - `reassign` - Move a domain between projects without deleting its route or certificate
19
21
 
20
22
  ### `custom-domains list` (alias: `ls`)
21
23
 
@@ -42,6 +44,7 @@ Create a custom domain for a project
42
44
  | `--branch <branch>` | Branch name | - | No |
43
45
  | `--redirect-to <url>` | Redirect target URL | - | No |
44
46
  | `--status-code <code>` | HTTP status code for redirects | - | No |
47
+ | `--service <name>` | Docker Compose service the domain routes to (compose projects only) | - | No |
45
48
  | `-y, --yes` | Skip confirmation prompts (for automation) | - | No |
46
49
 
47
50
  ### `custom-domains show`
@@ -71,6 +74,7 @@ Update a custom domain
71
74
  | `--branch <branch>` | New branch name | - | No |
72
75
  | `--redirect-to <url>` | New redirect target URL | - | No |
73
76
  | `--status-code <code>` | New HTTP status code for redirects | - | No |
77
+ | `--service <name>` | Docker Compose service the domain routes to ("" routes to the default service) | - | No |
74
78
 
75
79
  ### `custom-domains remove` (alias: `rm`)
76
80
 
@@ -96,3 +100,31 @@ Link a custom domain to a certificate
96
100
  | `--project-id <id>` | Project ID | - | Yes |
97
101
  | `--domain-id <id>` | Custom domain ID | - | Yes |
98
102
  | `--certificate-id <id>` | Certificate ID | - | Yes |
103
+
104
+ ### `custom-domains get-visible-by-hostname`
105
+
106
+ Find the project assignment for a certificate hostname
107
+
108
+ **Usage:** `custom-domains get-visible-by-hostname <hostname> [options]`
109
+
110
+ **Options:**
111
+
112
+ | Flag | Description | Default | Required |
113
+ |------|-------------|---------|----------|
114
+ | `--json` | Output in JSON format | - | No |
115
+
116
+ ### `custom-domains reassign`
117
+
118
+ Move a domain between projects without deleting its route or certificate
119
+
120
+ **Usage:** `custom-domains reassign <source-project-id> <domain-id> [options]`
121
+
122
+ **Options:**
123
+
124
+ | Flag | Description | Default | Required |
125
+ |------|-------------|---------|----------|
126
+ | `--target-environment-id <n>` | Body field target_environment_id [required] | - | No |
127
+ | `--target-project-id <n>` | Body field target_project_id [required] | - | 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 |
@@ -53,6 +53,7 @@ List tables, collections, keys or objects in a container
53
53
  |------|-------------|---------|----------|
54
54
  | `--path <path>` | Container path, slash-separated (e.g. mydb/public) | - | Yes |
55
55
  | `--limit <n>` | Maximum entities to return (default: 100) | - | No |
56
+ | `--next-token <token>` | Continue from the next_token of a previous page | - | No |
56
57
  | `--json` | Output in JSON format | - | No |
57
58
 
58
59
  ### `data schema` (alias: `columns`)
@@ -12,7 +12,9 @@ Deploy a pre-built Docker image
12
12
 
13
13
  | Flag | Description | Default | Required |
14
14
  |------|-------------|---------|----------|
15
- | `--image <image>` | Docker image reference (e.g., ghcr.io/org/app:v1.0) | - | Yes |
15
+ | `--image <image>` | Docker image reference (e.g., ghcr.io/org/app:v1.0) | - | No |
16
+ | `--external-image-id <id>` | Deploy an image already registered with Temps instead of --image | - | No |
17
+ | `--claim-local` | --image is on the platform host's Docker daemon, not in a registry: claim it | - | No |
16
18
  | `-p, --project <project>` | Project slug or ID | - | No |
17
19
  | `-e, --environment <env>` | Target environment name | `production` | No |
18
20
  | `--environment-id <id>` | Target environment ID | - | No |
@@ -16,6 +16,9 @@ Build and deploy a local Docker image (or deploy existing image with --image)
16
16
  | `-f, --dockerfile <path>` | Path to Dockerfile | `Dockerfile` | No |
17
17
  | `-c, --context <path>` | Build context directory | `.` | No |
18
18
  | `--build-arg <arg...>` | Build arguments (can be specified multiple times) | - | No |
19
+ | `--build-command <cmd>` | With no Dockerfile: the build command in the one generated from the project's preset | - | No |
20
+ | `--install-command <cmd>` | With no Dockerfile: the install command in the generated one | - | No |
21
+ | `--output-dir <dir>` | With no Dockerfile: the static output directory in the generated one | - | No |
19
22
  | `--no-build` | Skip building, requires --image | - | No |
20
23
  | `-p, --project <project>` | Project slug or ID | - | No |
21
24
  | `-e, --environment <env>` | Target environment name | `production` | No |