@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
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
<!-- Generated from skills/temps-cli/references/COMMANDS.md. Do not edit manually. -->
|
|
2
|
+
|
|
3
|
+
# `kv` command reference
|
|
4
|
+
|
|
5
|
+
Apply [the CLI runtime and safety contract](../cli-runtime.md) before executing a command. Runtime `--help` is authoritative.
|
|
6
|
+
|
|
7
|
+
## `kv`
|
|
8
|
+
|
|
9
|
+
Read and write a project's keys in the KV store, and manage the KV service
|
|
10
|
+
|
|
11
|
+
**Subcommands:**
|
|
12
|
+
|
|
13
|
+
- `get` - Get the value of a key
|
|
14
|
+
- `set` - Set a key; the value is a string unless --json-value
|
|
15
|
+
- `del` (`delete`) - Delete one or more keys
|
|
16
|
+
- `keys` (`ls`) - List keys matching a pattern (* and ? wildcards; default *)
|
|
17
|
+
- `ttl` - Show how long until a key expires
|
|
18
|
+
- `expire` - Expire a key after a number of seconds
|
|
19
|
+
- `incr` - Increment a numeric key (creating it at 0 first)
|
|
20
|
+
- `status` - Show whether the KV service is enabled and healthy on this instance
|
|
21
|
+
- `enable` - Enable the KV service on this instance (starts its Redis container)
|
|
22
|
+
- `update` - Change the Docker image the KV service runs (recreates its container)
|
|
23
|
+
- `disable` - Disable the KV service on this instance (stops its container; every project loses KV access)
|
|
24
|
+
- `container-name` - Show, or set with --container-name/--reset, the Docker container name of the KV service
|
|
25
|
+
|
|
26
|
+
### `kv get`
|
|
27
|
+
|
|
28
|
+
Get the value of a key
|
|
29
|
+
|
|
30
|
+
**Usage:** `kv get <key> [options]`
|
|
31
|
+
|
|
32
|
+
**Options:**
|
|
33
|
+
|
|
34
|
+
| Flag | Description | Default | Required |
|
|
35
|
+
|------|-------------|---------|----------|
|
|
36
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (defaults to the linked project) | - | No |
|
|
37
|
+
| `--json` | Output in JSON format | - | No |
|
|
38
|
+
|
|
39
|
+
### `kv set`
|
|
40
|
+
|
|
41
|
+
Set a key; the value is a string unless --json-value
|
|
42
|
+
|
|
43
|
+
**Usage:** `kv set <key> [value] [options]`
|
|
44
|
+
|
|
45
|
+
**Options:**
|
|
46
|
+
|
|
47
|
+
| Flag | Description | Default | Required |
|
|
48
|
+
|------|-------------|---------|----------|
|
|
49
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (defaults to the linked project) | - | No |
|
|
50
|
+
| `--json-value` | Parse the value as JSON (a number, object, array, true/false or null) | - | No |
|
|
51
|
+
| `--ex <seconds>` | Expire the key after this many seconds | - | No |
|
|
52
|
+
| `--px <milliseconds>` | Expire the key after this many milliseconds | - | No |
|
|
53
|
+
| `--nx` | Only set the key if it does not exist | - | No |
|
|
54
|
+
| `--xx` | Only set the key if it already exists | - | No |
|
|
55
|
+
| `--json` | Output in JSON format | - | No |
|
|
56
|
+
| `--value-file <path>` | Read the value from a file, byte-for-byte (- reads stdin). Keeps it out of shell history | - | No |
|
|
57
|
+
| `--value-stdin` | Read the value from stdin, e.g. piped from a secret manager | - | No |
|
|
58
|
+
| `--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 |
|
|
59
|
+
|
|
60
|
+
### `kv del` (alias: `delete`)
|
|
61
|
+
|
|
62
|
+
Delete one or more keys
|
|
63
|
+
|
|
64
|
+
**Usage:** `kv del <keys...> [options]`
|
|
65
|
+
|
|
66
|
+
**Options:**
|
|
67
|
+
|
|
68
|
+
| Flag | Description | Default | Required |
|
|
69
|
+
|------|-------------|---------|----------|
|
|
70
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (defaults to the linked project) | - | No |
|
|
71
|
+
| `-y, --yes` | Do not ask for confirmation | - | No |
|
|
72
|
+
| `--json` | Output in JSON format | - | No |
|
|
73
|
+
|
|
74
|
+
### `kv keys` (alias: `ls`)
|
|
75
|
+
|
|
76
|
+
List keys matching a pattern (* and ? wildcards; default *)
|
|
77
|
+
|
|
78
|
+
**Usage:** `kv keys [pattern] [options]`
|
|
79
|
+
|
|
80
|
+
**Options:**
|
|
81
|
+
|
|
82
|
+
| Flag | Description | Default | Required |
|
|
83
|
+
|------|-------------|---------|----------|
|
|
84
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (defaults to the linked project) | - | No |
|
|
85
|
+
| `--json` | Output in JSON format | - | No |
|
|
86
|
+
|
|
87
|
+
### `kv ttl`
|
|
88
|
+
|
|
89
|
+
Show how long until a key expires
|
|
90
|
+
|
|
91
|
+
**Usage:** `kv ttl <key> [options]`
|
|
92
|
+
|
|
93
|
+
**Options:**
|
|
94
|
+
|
|
95
|
+
| Flag | Description | Default | Required |
|
|
96
|
+
|------|-------------|---------|----------|
|
|
97
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (defaults to the linked project) | - | No |
|
|
98
|
+
| `--json` | Output in JSON format | - | No |
|
|
99
|
+
|
|
100
|
+
### `kv expire`
|
|
101
|
+
|
|
102
|
+
Expire a key after a number of seconds
|
|
103
|
+
|
|
104
|
+
**Usage:** `kv expire <key> <seconds> [options]`
|
|
105
|
+
|
|
106
|
+
**Options:**
|
|
107
|
+
|
|
108
|
+
| Flag | Description | Default | Required |
|
|
109
|
+
|------|-------------|---------|----------|
|
|
110
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (defaults to the linked project) | - | No |
|
|
111
|
+
| `--json` | Output in JSON format | - | No |
|
|
112
|
+
|
|
113
|
+
### `kv incr`
|
|
114
|
+
|
|
115
|
+
Increment a numeric key (creating it at 0 first)
|
|
116
|
+
|
|
117
|
+
**Usage:** `kv incr <key> [options]`
|
|
118
|
+
|
|
119
|
+
**Options:**
|
|
120
|
+
|
|
121
|
+
| Flag | Description | Default | Required |
|
|
122
|
+
|------|-------------|---------|----------|
|
|
123
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (defaults to the linked project) | - | No |
|
|
124
|
+
| `--by <amount>` | Amount to add, may be negative (default 1) | - | No |
|
|
125
|
+
| `--json` | Output in JSON format | - | No |
|
|
126
|
+
|
|
127
|
+
### `kv status`
|
|
128
|
+
|
|
129
|
+
Show whether the KV service is enabled and healthy on this instance
|
|
130
|
+
|
|
131
|
+
**Options:**
|
|
132
|
+
|
|
133
|
+
| Flag | Description | Default | Required |
|
|
134
|
+
|------|-------------|---------|----------|
|
|
135
|
+
| `--json` | Output in JSON format | - | No |
|
|
136
|
+
|
|
137
|
+
### `kv enable`
|
|
138
|
+
|
|
139
|
+
Enable the KV service on this instance (starts its Redis container)
|
|
140
|
+
|
|
141
|
+
**Options:**
|
|
142
|
+
|
|
143
|
+
| Flag | Description | Default | Required |
|
|
144
|
+
|------|-------------|---------|----------|
|
|
145
|
+
| `--image <ref>` | Docker image to run (default: the one this Temps release pins) | - | No |
|
|
146
|
+
| `--max-memory <size>` | Memory limit, e.g. 256mb or 1gb | - | No |
|
|
147
|
+
| `--persistence` | Persist data to disk | - | No |
|
|
148
|
+
| `--no-persistence` | Keep data in memory only | - | No |
|
|
149
|
+
| `--json` | Output in JSON format | - | No |
|
|
150
|
+
|
|
151
|
+
### `kv update`
|
|
152
|
+
|
|
153
|
+
Change the Docker image the KV service runs (recreates its container)
|
|
154
|
+
|
|
155
|
+
**Options:**
|
|
156
|
+
|
|
157
|
+
| Flag | Description | Default | Required |
|
|
158
|
+
|------|-------------|---------|----------|
|
|
159
|
+
| `--image <ref>` | Docker image to run | - | Yes |
|
|
160
|
+
| `-y, --yes` | Do not ask for confirmation | - | No |
|
|
161
|
+
| `--json` | Output in JSON format | - | No |
|
|
162
|
+
|
|
163
|
+
### `kv disable`
|
|
164
|
+
|
|
165
|
+
Disable the KV service on this instance (stops its container; every project loses KV access)
|
|
166
|
+
|
|
167
|
+
**Options:**
|
|
168
|
+
|
|
169
|
+
| Flag | Description | Default | Required |
|
|
170
|
+
|------|-------------|---------|----------|
|
|
171
|
+
| `-y, --yes` | Do not ask for confirmation | - | No |
|
|
172
|
+
| `--json` | Output in JSON format | - | No |
|
|
173
|
+
|
|
174
|
+
### `kv container-name`
|
|
175
|
+
|
|
176
|
+
Show, or set with --container-name/--reset, the Docker container name of the KV service
|
|
177
|
+
|
|
178
|
+
**Options:**
|
|
179
|
+
|
|
180
|
+
| Flag | Description | Default | Required |
|
|
181
|
+
|------|-------------|---------|----------|
|
|
182
|
+
| `--container-name <name>` | New container name (must keep the required prefix) | - | No |
|
|
183
|
+
| `--reset` | Go back to the default container name | - | No |
|
|
184
|
+
| `--json` | Output in JSON format | - | No |
|
|
@@ -36,6 +36,7 @@ Create a load balancer route
|
|
|
36
36
|
|------|-------------|---------|----------|
|
|
37
37
|
| `-d, --domain <domain>` | Domain for the route | - | No |
|
|
38
38
|
| `-t, --target <target>` | Target upstream URL | - | No |
|
|
39
|
+
| `--type <type>` | http (default: match the Host header) or tls (match the SNI name, pass TCP through) | - | No |
|
|
39
40
|
| `-y, --yes` | Skip confirmation prompts (for automation) | - | No |
|
|
40
41
|
|
|
41
42
|
### `load-balancer show`
|
|
@@ -59,6 +60,7 @@ Update a load balancer route
|
|
|
59
60
|
|------|-------------|---------|----------|
|
|
60
61
|
| `-d, --domain <domain>` | Domain of the route | - | Yes |
|
|
61
62
|
| `-t, --target <target>` | New target upstream URL | - | No |
|
|
63
|
+
| `--type <type>` | http (match the Host header) or tls (match the SNI name, pass TCP through) | - | No |
|
|
62
64
|
|
|
63
65
|
### `load-balancer remove` (alias: `rm`)
|
|
64
66
|
|
|
@@ -6,7 +6,9 @@ Apply [the CLI runtime and safety contract](../cli-runtime.md) before executing
|
|
|
6
6
|
|
|
7
7
|
## `login`
|
|
8
8
|
|
|
9
|
-
Authenticate with a Temps server. Opens the browser for interactive logins; use --api-key for headless / CI.
|
|
9
|
+
Authenticate with a Temps server. Opens the browser for interactive logins; use --no-wait then --resume when a person approves but the caller cannot keep a command open, and --api-key for headless / CI.
|
|
10
|
+
|
|
11
|
+
**Usage:** `login [url] [options]`
|
|
10
12
|
|
|
11
13
|
**Options:**
|
|
12
14
|
|
|
@@ -14,4 +16,10 @@ Authenticate with a Temps server. Opens the browser for interactive logins; use
|
|
|
14
16
|
|------|-------------|---------|----------|
|
|
15
17
|
| `-k, --api-key <key>` | Use a pre-minted API key (Settings → API Keys) instead of opening the browser. Required for headless / CI. | - | No |
|
|
16
18
|
| `--context <name>` | Save the credentials under this context name (defaults to URL host) | - | No |
|
|
19
|
+
| `--no-wait` | Print the browser approval link and exit instead of waiting for it. For agents and scripts whose shell returns output only when a command exits; finish with --resume. | - | No |
|
|
20
|
+
| `--resume` | Finish a sign-in started with --no-wait: wait for the browser approval, then save the credentials. Exits with code 2 if it is not approved yet; run it again. | - | No |
|
|
21
|
+
| `--wait-secs <seconds>` | With --resume: how long to wait for the approval before exiting with code 2 (default: 90) | - | No |
|
|
17
22
|
| `--debug` | Print every request/response (URL, status, headers, raw body) to stderr. Also enabled via TEMPS_DEBUG=1. | - | No |
|
|
23
|
+
| `--api-key-file <path>` | Read the API key from a file (- reads stdin) instead of --api-key | - | No |
|
|
24
|
+
| `--api-key-stdin` | Read the API key from stdin instead of --api-key | - | No |
|
|
25
|
+
| `--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 |
|