@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.
- package/dist/index.js +68378 -53718
- package/dist/skills/temps/SKILL.md +1 -0
- package/dist/skills/temps/howtos/agent-handoff.md +106 -0
- package/dist/skills/temps/references/commands/INDEX.md +6 -0
- package/dist/skills/temps/references/commands/agents.md +731 -0
- package/dist/skills/temps/references/commands/ai.md +2636 -11
- package/dist/skills/temps/references/commands/alarms.md +125 -0
- package/dist/skills/temps/references/commands/analytics.md +1001 -3
- package/dist/skills/temps/references/commands/apikeys.md +48 -1
- package/dist/skills/temps/references/commands/audit.md +1 -0
- package/dist/skills/temps/references/commands/backups.md +306 -0
- package/dist/skills/temps/references/commands/blob.md +169 -0
- package/dist/skills/temps/references/commands/cloud.md +59 -0
- package/dist/skills/temps/references/commands/cluster.md +223 -0
- package/dist/skills/temps/references/commands/containers.md +45 -0
- package/dist/skills/temps/references/commands/custom-domains.md +32 -0
- package/dist/skills/temps/references/commands/data.md +1 -0
- 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/deployments.md +559 -0
- package/dist/skills/temps/references/commands/dns-provider.md +63 -0
- package/dist/skills/temps/references/commands/domains.md +104 -0
- package/dist/skills/temps/references/commands/email-domains.md +1 -0
- package/dist/skills/temps/references/commands/email-providers.md +59 -1
- package/dist/skills/temps/references/commands/emails.md +91 -0
- package/dist/skills/temps/references/commands/environments.md +447 -2
- package/dist/skills/temps/references/commands/errors.md +563 -3
- package/dist/skills/temps/references/commands/flags.md +76 -0
- package/dist/skills/temps/references/commands/funnels.md +22 -2
- package/dist/skills/temps/references/commands/incidents.md +18 -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/load-balancer.md +2 -0
- package/dist/skills/temps/references/commands/login.md +4 -1
- package/dist/skills/temps/references/commands/logs.md +272 -0
- package/dist/skills/temps/references/commands/migrate.md +17 -0
- package/dist/skills/temps/references/commands/monitors.md +386 -0
- package/dist/skills/temps/references/commands/network-policy.md +27 -0
- package/dist/skills/temps/references/commands/nodes.md +155 -2
- package/dist/skills/temps/references/commands/notifications.md +149 -0
- package/dist/skills/temps/references/commands/otel.md +436 -0
- package/dist/skills/temps/references/commands/platform.md +53 -0
- package/dist/skills/temps/references/commands/plugin.md +76 -0
- package/dist/skills/temps/references/commands/preview-gateway.md +91 -0
- package/dist/skills/temps/references/commands/project-groups.md +31 -0
- package/dist/skills/temps/references/commands/projects.md +452 -6
- package/dist/skills/temps/references/commands/providers.md +519 -0
- package/dist/skills/temps/references/commands/proxy-logs.md +111 -0
- package/dist/skills/temps/references/commands/revenue.md +219 -0
- package/dist/skills/temps/references/commands/sandbox.md +699 -9
- package/dist/skills/temps/references/commands/secrets.md +3 -0
- package/dist/skills/temps/references/commands/server.md +107 -0
- package/dist/skills/temps/references/commands/services.md +830 -5
- 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/status-pages.md +103 -3
- package/dist/skills/temps/references/commands/teams.md +14 -0
- package/dist/skills/temps/references/commands/templates.md +14 -0
- package/dist/skills/temps/references/commands/tokens.md +106 -0
- package/dist/skills/temps/references/commands/traces.md +149 -0
- package/dist/skills/temps/references/commands/tunnels.md +2 -0
- package/dist/skills/temps/references/commands/users.md +111 -0
- package/dist/skills/temps/references/commands/vault.md +662 -0
- package/dist/skills/temps/references/commands/webhooks.md +4 -0
- package/dist/skills/temps/references/commands/workflows.md +347 -0
- package/dist/skills/temps/scripts/generate_command_references.py +5 -3
- package/dist/skills/temps/scripts/test_generate_command_references.py +3 -1
- package/package.json +3 -2
|
@@ -10,6 +10,10 @@ View platform and server information
|
|
|
10
10
|
|
|
11
11
|
**Subcommands:**
|
|
12
12
|
|
|
13
|
+
- `operations` (`ops`) - List recent and in-flight operations: deployments, rollbacks, promotions, restores, backups, autofixes
|
|
14
|
+
- `maturity` - Show the compatibility promise (stable, beta, experimental) for every feature
|
|
15
|
+
- `geo` - Look up the location of an IP address in the server's geolocation database
|
|
16
|
+
- `file` - Print a file from the server's static directory (or save it with -o)
|
|
13
17
|
- `info` - Get platform information
|
|
14
18
|
- `features` - Show which capabilities the server process actually provides
|
|
15
19
|
- `access` - Get access and networking information
|
|
@@ -18,6 +22,55 @@ View platform and server information
|
|
|
18
22
|
- `update` - Check for and apply temps releases on the server
|
|
19
23
|
- `alert-rules` - Inspect and retune the control-plane's own monitoring alert rules
|
|
20
24
|
|
|
25
|
+
### `platform operations` (alias: `ops`)
|
|
26
|
+
|
|
27
|
+
List recent and in-flight operations: deployments, rollbacks, promotions, restores, backups, autofixes
|
|
28
|
+
|
|
29
|
+
**Options:**
|
|
30
|
+
|
|
31
|
+
| Flag | Description | Default | Required |
|
|
32
|
+
|------|-------------|---------|----------|
|
|
33
|
+
| `--status <status>` | Which ones: running, waiting, finished, all (default: the server's) | - | No |
|
|
34
|
+
| `--kind <kind>` | Only one kind: deployment, rollback, promotion, restore, backup, autofix | - | No |
|
|
35
|
+
| `--project <id>` | Only this project ID | - | No |
|
|
36
|
+
| `--page <n>` | Page (default 1) | - | No |
|
|
37
|
+
| `--page-size <n>` | Operations per page (max 100) | - | No |
|
|
38
|
+
| `--json` | Output in JSON format | - | No |
|
|
39
|
+
|
|
40
|
+
### `platform maturity`
|
|
41
|
+
|
|
42
|
+
Show the compatibility promise (stable, beta, experimental) for every feature
|
|
43
|
+
|
|
44
|
+
**Options:**
|
|
45
|
+
|
|
46
|
+
| Flag | Description | Default | Required |
|
|
47
|
+
|------|-------------|---------|----------|
|
|
48
|
+
| `--json` | Output in JSON format | - | No |
|
|
49
|
+
|
|
50
|
+
### `platform geo`
|
|
51
|
+
|
|
52
|
+
Look up the location of an IP address in the server's geolocation database
|
|
53
|
+
|
|
54
|
+
**Usage:** `platform geo <ip> [options]`
|
|
55
|
+
|
|
56
|
+
**Options:**
|
|
57
|
+
|
|
58
|
+
| Flag | Description | Default | Required |
|
|
59
|
+
|------|-------------|---------|----------|
|
|
60
|
+
| `--json` | Output in JSON format | - | No |
|
|
61
|
+
|
|
62
|
+
### `platform file`
|
|
63
|
+
|
|
64
|
+
Print a file from the server's static directory (or save it with -o)
|
|
65
|
+
|
|
66
|
+
**Usage:** `platform file <path> [options]`
|
|
67
|
+
|
|
68
|
+
**Options:**
|
|
69
|
+
|
|
70
|
+
| Flag | Description | Default | Required |
|
|
71
|
+
|------|-------------|---------|----------|
|
|
72
|
+
| `-o, --output <file>` | Write it to a file instead of stdout | - | No |
|
|
73
|
+
|
|
21
74
|
### `platform info`
|
|
22
75
|
|
|
23
76
|
Get platform information
|
|
@@ -18,6 +18,7 @@ Create and build TypeScript plugins, or install and manage external plugins
|
|
|
18
18
|
- `init` - Create a TypeScript plugin project
|
|
19
19
|
- `build` - Build every platform selected in package.json; --all selects all six supported targets
|
|
20
20
|
- `publish` - Build, publish native npm packages, verify ownership and submit for review; resumes interrupted releases
|
|
21
|
+
- `api` - Api commands
|
|
21
22
|
|
|
22
23
|
### `plugin install`
|
|
23
24
|
|
|
@@ -220,3 +221,78 @@ Build, publish native npm packages, verify ownership and submit for review; resu
|
|
|
220
221
|
| Flag | Description | Default | Required |
|
|
221
222
|
|------|-------------|---------|----------|
|
|
222
223
|
| `-y, --yes` | Confirm public npm publication non-interactively | - | No |
|
|
224
|
+
|
|
225
|
+
### `plugin api`
|
|
226
|
+
|
|
227
|
+
Api commands
|
|
228
|
+
|
|
229
|
+
**Subcommands:**
|
|
230
|
+
|
|
231
|
+
- `list-chat-watches` - List chat plugin watches
|
|
232
|
+
- `change-chat-watch` - Change chat plugin watch
|
|
233
|
+
- `get-ai-tools` - Get plugin ai tools
|
|
234
|
+
- `put-ai-tools` - Put plugin ai tools
|
|
235
|
+
|
|
236
|
+
#### `plugin api list-chat-watches`
|
|
237
|
+
|
|
238
|
+
List chat plugin watches
|
|
239
|
+
|
|
240
|
+
**Usage:** `plugin api list-chat-watches <chat> [options]`
|
|
241
|
+
|
|
242
|
+
**Options:**
|
|
243
|
+
|
|
244
|
+
| Flag | Description | Default | Required |
|
|
245
|
+
|------|-------------|---------|----------|
|
|
246
|
+
| `--json` | Output in JSON format | - | No |
|
|
247
|
+
|
|
248
|
+
#### `plugin api change-chat-watch`
|
|
249
|
+
|
|
250
|
+
Change chat plugin watch
|
|
251
|
+
|
|
252
|
+
**Usage:** `plugin api change-chat-watch <chat> [options]`
|
|
253
|
+
|
|
254
|
+
**Options:**
|
|
255
|
+
|
|
256
|
+
| Flag | Description | Default | Required |
|
|
257
|
+
|------|-------------|---------|----------|
|
|
258
|
+
| `--action <value>` | Body field action (one of: create, pause, resume, remove) [required] | - | No |
|
|
259
|
+
| `--digest <value>` | Body field digest | - | No |
|
|
260
|
+
| `--mode <value>` | Body field mode (one of: notify, wake) | - | No |
|
|
261
|
+
| `--plugin <value>` | Body field plugin | - | No |
|
|
262
|
+
| `--source <value>` | Body field source | - | No |
|
|
263
|
+
| `--subject <value>` | Body field subject | - | No |
|
|
264
|
+
| `--where <json>` | Body field where (JSON) | - | No |
|
|
265
|
+
| `--id <value>` | Body field id | - | No |
|
|
266
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
267
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
268
|
+
| `--json` | Output in JSON format | - | No |
|
|
269
|
+
|
|
270
|
+
#### `plugin api get-ai-tools`
|
|
271
|
+
|
|
272
|
+
Get plugin ai tools
|
|
273
|
+
|
|
274
|
+
**Usage:** `plugin api get-ai-tools <name> [options]`
|
|
275
|
+
|
|
276
|
+
**Options:**
|
|
277
|
+
|
|
278
|
+
| Flag | Description | Default | Required |
|
|
279
|
+
|------|-------------|---------|----------|
|
|
280
|
+
| `--json` | Output in JSON format | - | No |
|
|
281
|
+
|
|
282
|
+
#### `plugin api put-ai-tools`
|
|
283
|
+
|
|
284
|
+
Put plugin ai tools
|
|
285
|
+
|
|
286
|
+
**Usage:** `plugin api put-ai-tools <name> [options]`
|
|
287
|
+
|
|
288
|
+
**Options:**
|
|
289
|
+
|
|
290
|
+
| Flag | Description | Default | Required |
|
|
291
|
+
|------|-------------|---------|----------|
|
|
292
|
+
| `--actor-id <value>` | Current actor_id returned by GET; replacing the installation requires fresh consent [required] | - | No |
|
|
293
|
+
| `--enabled` | Body field enabled [required] | - | No |
|
|
294
|
+
| `--no-enabled` | Set enabled to false | - | No |
|
|
295
|
+
| `--installation-revision <value>` | Binary revision returned by GET; a changed binary requires fresh consent [required] | - | No |
|
|
296
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
297
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
298
|
+
| `--json` | Output in JSON format | - | No |
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
<!-- Generated from skills/temps-cli/references/COMMANDS.md. Do not edit manually. -->
|
|
2
|
+
|
|
3
|
+
# `preview-gateway` command reference
|
|
4
|
+
|
|
5
|
+
Apply [the CLI runtime and safety contract](../cli-runtime.md) before executing a command. Runtime `--help` is authoritative.
|
|
6
|
+
|
|
7
|
+
## `preview-gateway` (alias: `pgw`)
|
|
8
|
+
|
|
9
|
+
Manage the preview gateway that serves workspace preview URLs (status, settings, logs, restart, upgrade)
|
|
10
|
+
|
|
11
|
+
**Subcommands:**
|
|
12
|
+
|
|
13
|
+
- `status` - Show the gateway container's health, image and last setup error
|
|
14
|
+
- `settings` (`show`) - Show the gateway settings: enabled, image, host port, auto-upgrade, container name, and their defaults
|
|
15
|
+
- `configure` (`set`) - Change gateway settings; only the flags you pass are changed
|
|
16
|
+
- `logs` - Print the latest gateway container log lines
|
|
17
|
+
- `restart` - Restart the gateway container (previews are briefly unavailable)
|
|
18
|
+
- `upgrade` - Pull an image and recreate the gateway with it (previews are briefly unavailable)
|
|
19
|
+
|
|
20
|
+
### `preview-gateway status`
|
|
21
|
+
|
|
22
|
+
Show the gateway container's health, image and last setup error
|
|
23
|
+
|
|
24
|
+
**Options:**
|
|
25
|
+
|
|
26
|
+
| Flag | Description | Default | Required |
|
|
27
|
+
|------|-------------|---------|----------|
|
|
28
|
+
| `--json` | Output in JSON format | - | No |
|
|
29
|
+
|
|
30
|
+
### `preview-gateway settings` (alias: `show`)
|
|
31
|
+
|
|
32
|
+
Show the gateway settings: enabled, image, host port, auto-upgrade, container name, and their defaults
|
|
33
|
+
|
|
34
|
+
**Options:**
|
|
35
|
+
|
|
36
|
+
| Flag | Description | Default | Required |
|
|
37
|
+
|------|-------------|---------|----------|
|
|
38
|
+
| `--json` | Output in JSON format | - | No |
|
|
39
|
+
|
|
40
|
+
### `preview-gateway configure` (alias: `set`)
|
|
41
|
+
|
|
42
|
+
Change gateway settings; only the flags you pass are changed
|
|
43
|
+
|
|
44
|
+
**Options:**
|
|
45
|
+
|
|
46
|
+
| Flag | Description | Default | Required |
|
|
47
|
+
|------|-------------|---------|----------|
|
|
48
|
+
| `--enable` | Run the gateway (creates its containers) | - | No |
|
|
49
|
+
| `--disable` | Stop running the gateway (removes its containers; preview URLs stop being served) | - | No |
|
|
50
|
+
| `--image <ref>` | Gateway image to run, ideally an immutable @sha256 reference | - | No |
|
|
51
|
+
| `--reset-image` | Go back to the image pinned in this Temps build | - | No |
|
|
52
|
+
| `--host-port <port>` | Host port the ingress relay's :8080 is published on | - | No |
|
|
53
|
+
| `--auto-upgrade` | Apply the pinned image on every Temps startup (default) | - | No |
|
|
54
|
+
| `--no-auto-upgrade` | Leave the running image alone on startup; upgrade by hand | - | No |
|
|
55
|
+
| `--container-name <name>` | Docker container name; change only when several Temps instances share one Docker daemon | - | No |
|
|
56
|
+
| `--reset-container-name` | Go back to the default container name | - | No |
|
|
57
|
+
| `-y, --yes` | Do not ask before a change that interrupts previews (--disable, a new container name) | - | No |
|
|
58
|
+
| `--json` | Print the saved settings as JSON | - | No |
|
|
59
|
+
|
|
60
|
+
### `preview-gateway logs`
|
|
61
|
+
|
|
62
|
+
Print the latest gateway container log lines
|
|
63
|
+
|
|
64
|
+
**Options:**
|
|
65
|
+
|
|
66
|
+
| Flag | Description | Default | Required |
|
|
67
|
+
|------|-------------|---------|----------|
|
|
68
|
+
| `--tail <lines>` | Lines to print, 1 to 2000 (default 200) | - | No |
|
|
69
|
+
| `--json` | Output in JSON format | - | No |
|
|
70
|
+
|
|
71
|
+
### `preview-gateway restart`
|
|
72
|
+
|
|
73
|
+
Restart the gateway container (previews are briefly unavailable)
|
|
74
|
+
|
|
75
|
+
**Options:**
|
|
76
|
+
|
|
77
|
+
| Flag | Description | Default | Required |
|
|
78
|
+
|------|-------------|---------|----------|
|
|
79
|
+
| `-y, --yes` | Do not ask for confirmation | - | No |
|
|
80
|
+
|
|
81
|
+
### `preview-gateway upgrade`
|
|
82
|
+
|
|
83
|
+
Pull an image and recreate the gateway with it (previews are briefly unavailable)
|
|
84
|
+
|
|
85
|
+
**Options:**
|
|
86
|
+
|
|
87
|
+
| Flag | Description | Default | Required |
|
|
88
|
+
|------|-------------|---------|----------|
|
|
89
|
+
| `--image <ref>` | Image to pull and run, ideally an immutable @sha256 reference | - | No |
|
|
90
|
+
| `--default` | Use the image pinned in this Temps build | - | No |
|
|
91
|
+
| `-y, --yes` | Do not ask for confirmation | - | No |
|
|
@@ -4,6 +4,22 @@
|
|
|
4
4
|
|
|
5
5
|
Apply [the CLI runtime and safety contract](../cli-runtime.md) before executing a command. Runtime `--help` is authoritative.
|
|
6
6
|
|
|
7
|
+
## Contents
|
|
8
|
+
|
|
9
|
+
- [`project-groups list`](#project-groups-list-alias-ls)
|
|
10
|
+
- [`project-groups show`](#project-groups-show-alias-get)
|
|
11
|
+
- [`project-groups create`](#project-groups-create-alias-new)
|
|
12
|
+
- [`project-groups update`](#project-groups-update-alias-edit)
|
|
13
|
+
- [`project-groups delete`](#project-groups-delete-alias-rm)
|
|
14
|
+
- [`project-groups add`](#project-groups-add)
|
|
15
|
+
- [`project-groups remove`](#project-groups-remove)
|
|
16
|
+
- [`project-groups repo`](#project-groups-repo)
|
|
17
|
+
- [`project-groups import`](#project-groups-import)
|
|
18
|
+
- [`project-groups follow`](#project-groups-follow)
|
|
19
|
+
- [`project-groups unfollow`](#project-groups-unfollow)
|
|
20
|
+
- [`project-groups routes`](#project-groups-routes)
|
|
21
|
+
- [`project-groups vars`](#project-groups-vars)
|
|
22
|
+
|
|
7
23
|
## `project-groups` (alias: `pg`)
|
|
8
24
|
|
|
9
25
|
Manage Projects (what the console calls a Project): groups of services that ship together and share a repository, variables and path routes. A service is what the `projects` command manages; the `services` command manages databases and caches, not these.
|
|
@@ -164,6 +180,8 @@ Scan the project's repository and add its apps as services that follow it
|
|
|
164
180
|
| `-p, --path <dir...>` | Only these app directories (default: every app without a service) | - | No |
|
|
165
181
|
| `--dry-run` | List what would be created without creating anything | - | No |
|
|
166
182
|
| `--timeout <minutes>` | Stop waiting after this long (default 30); the import keeps running on the server | - | No |
|
|
183
|
+
| `--fresh` | Scan a public repository again instead of using the cached scan | - | No |
|
|
184
|
+
| `--base-url <url>` | HTTPS origin of the self-hosted GitLab a public repository lives on | - | No |
|
|
167
185
|
| `--json` | Output in JSON format | - | No |
|
|
168
186
|
|
|
169
187
|
### `project-groups follow`
|
|
@@ -231,11 +249,24 @@ Variables shared by every service in a project (group)
|
|
|
231
249
|
|
|
232
250
|
**Subcommands:**
|
|
233
251
|
|
|
252
|
+
- `get` - Show one shared variable (a secret value is never shown)
|
|
234
253
|
- `list` (`ls`) - List shared variables (secret values are never shown)
|
|
235
254
|
- `set` - Create or update a shared variable; a service's own variable still wins. Omit the value to type it at a hidden prompt, or read it with --value-file or --value-stdin (keeps secrets out of shell history)
|
|
236
255
|
- `inherited` - Show the shared variables a service (slug or id) receives from its project, and which of them the service's own variables override
|
|
237
256
|
- `unset` - Remove a shared variable
|
|
238
257
|
|
|
258
|
+
#### `project-groups vars get`
|
|
259
|
+
|
|
260
|
+
Show one shared variable (a secret value is never shown)
|
|
261
|
+
|
|
262
|
+
**Usage:** `project-groups vars get <group-id> <var-id> [options]`
|
|
263
|
+
|
|
264
|
+
**Options:**
|
|
265
|
+
|
|
266
|
+
| Flag | Description | Default | Required |
|
|
267
|
+
|------|-------------|---------|----------|
|
|
268
|
+
| `--json` | Output in JSON format | - | No |
|
|
269
|
+
|
|
239
270
|
#### `project-groups vars list` (alias: `ls`)
|
|
240
271
|
|
|
241
272
|
List shared variables (secret values are never shown)
|