@temps-sdk/cli 0.1.38 → 0.2.0-beta.1
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 +10116 -996
- package/dist/skills/temps/SKILL.md +17 -9
- package/dist/skills/temps/evals/evals.json +23 -6
- 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 +5 -0
- package/dist/skills/temps/references/commands/access.md +4 -0
- package/dist/skills/temps/references/commands/ai.md +4 -0
- package/dist/skills/temps/references/commands/alarms.md +4 -0
- package/dist/skills/temps/references/commands/analytics.md +199 -0
- package/dist/skills/temps/references/commands/apikeys.md +2 -0
- package/dist/skills/temps/references/commands/backups.md +6 -0
- package/dist/skills/temps/references/commands/cloud.md +14 -0
- package/dist/skills/temps/references/commands/configure.md +7 -0
- package/dist/skills/temps/references/commands/context.md +6 -0
- package/dist/skills/temps/references/commands/data.md +10 -13
- package/dist/skills/temps/references/commands/deploy.md +2 -0
- package/dist/skills/temps/references/commands/deployments.md +1 -0
- package/dist/skills/temps/references/commands/domains.md +1 -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-providers.md +5 -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 +250 -2
- package/dist/skills/temps/references/commands/errors.md +514 -1
- package/dist/skills/temps/references/commands/facets.md +6 -0
- package/dist/skills/temps/references/commands/flags.md +103 -0
- package/dist/skills/temps/references/commands/incidents.md +4 -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/link.md +2 -0
- package/dist/skills/temps/references/commands/login.md +5 -0
- package/dist/skills/temps/references/commands/logs.md +133 -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 +9 -0
- package/dist/skills/temps/references/commands/monitors.md +70 -0
- package/dist/skills/temps/references/commands/network-policy.md +120 -0
- package/dist/skills/temps/references/commands/nodes.md +54 -0
- package/dist/skills/temps/references/commands/notifications.md +24 -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/platform.md +4 -0
- package/dist/skills/temps/references/commands/plugin.md +30 -1
- package/dist/skills/temps/references/commands/presets.md +2 -0
- package/dist/skills/temps/references/commands/project-groups.md +41 -4
- package/dist/skills/temps/references/commands/projects.md +63 -4
- package/dist/skills/temps/references/commands/providers.md +14 -1
- package/dist/skills/temps/references/commands/revenue.md +4 -0
- package/dist/skills/temps/references/commands/rollback.md +2 -0
- package/dist/skills/temps/references/commands/sandbox.md +91 -1
- package/dist/skills/temps/references/commands/secrets.md +16 -6
- package/dist/skills/temps/references/commands/services.md +6 -0
- package/dist/skills/temps/references/commands/session-replay.md +8 -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 +276 -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 +14 -0
- package/dist/skills/temps/references/commands/templates.md +8 -2
- package/dist/skills/temps/references/commands/traces.md +58 -0
- package/dist/skills/temps/references/commands/traefik-discovery.md +10 -0
- package/dist/skills/temps/references/commands/tunnels.md +139 -0
- package/dist/skills/temps/references/commands/up.md +2 -0
- package/dist/skills/temps/references/commands/users.md +16 -0
- package/dist/skills/temps/references/commands/webhooks.md +6 -0
- package/dist/skills/temps/references/commands/workflow.md +2 -0
- package/dist/skills/temps/references/commands/workflows.md +216 -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/test_validate_skill.py +25 -66
- package/dist/skills/temps/scripts/validate_skill.py +29 -43
- package/package.json +7 -2
- 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,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 |
|
|
@@ -43,6 +43,11 @@ Create a new email provider
|
|
|
43
43
|
| `--api-key <key>` | Scaleway API key | - | No |
|
|
44
44
|
| `--project-id <id>` | Scaleway project ID | - | No |
|
|
45
45
|
| `-y, --yes` | Skip confirmation prompts (for automation) | - | No |
|
|
46
|
+
| `--secret-access-key-file <path>` | Read the AWS secret access key from a file (- reads stdin) instead of --secret-access-key | - | No |
|
|
47
|
+
| `--secret-access-key-stdin` | Read the AWS secret access key from stdin instead of --secret-access-key | - | No |
|
|
48
|
+
| `--api-key-file <path>` | Read the Scaleway API key from a file (- reads stdin) instead of --api-key | - | No |
|
|
49
|
+
| `--api-key-stdin` | Read the Scaleway API key from stdin instead of --api-key | - | No |
|
|
50
|
+
| `--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
51
|
|
|
47
52
|
### `email-providers show`
|
|
48
53
|
|
|
@@ -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
|
+
- [`environments list`](#environments-list)
|
|
10
|
+
- [`environments create`](#environments-create)
|
|
11
|
+
- [`environments delete`](#environments-delete)
|
|
12
|
+
- [`environments vars`](#environments-vars)
|
|
13
|
+
- [`environments resources`](#environments-resources)
|
|
14
|
+
- [`environments timeouts`](#environments-timeouts)
|
|
15
|
+
- [`environments force-https`](#environments-force-https)
|
|
16
|
+
- [`environments scale`](#environments-scale)
|
|
17
|
+
- [`environments placement`](#environments-placement)
|
|
18
|
+
- [`environments isolation`](#environments-isolation)
|
|
19
|
+
- [`environments volumes`](#environments-volumes)
|
|
20
|
+
- [`environments ingress`](#environments-ingress)
|
|
21
|
+
- [`environments crons`](#environments-crons)
|
|
22
|
+
|
|
7
23
|
## `environments` (alias: `envs`, `env`)
|
|
8
24
|
|
|
9
25
|
Manage environments and environment variables
|
|
@@ -18,6 +34,10 @@ Manage environments and environment variables
|
|
|
18
34
|
- `timeouts` - View or set upstream request/idle timeouts for an environment
|
|
19
35
|
- `force-https` - View or set the HTTP to HTTPS redirect override for an environment
|
|
20
36
|
- `scale` - View or set the number of replicas for an environment
|
|
37
|
+
- `placement` - Where the scheduler would run an environment's replicas, and why
|
|
38
|
+
- `isolation` - How an environment's replicas are isolated: a container (process) or a Firecracker microVM (micro_vm). Honoured only for environments whose deployments run on the workload plane
|
|
39
|
+
- `volumes` - Persistent volumes mounted into an environment's replicas; a replica that mounts one is pinned to its node
|
|
40
|
+
- `ingress` - Whether visitors must sign in to Temps to open an environment
|
|
21
41
|
- `crons` - Manage cron jobs
|
|
22
42
|
|
|
23
43
|
### `environments list` (alias: `ls`)
|
|
@@ -48,6 +68,8 @@ Create a new environment
|
|
|
48
68
|
|
|
49
69
|
Delete an environment
|
|
50
70
|
|
|
71
|
+
**Usage:** `environments delete <environment> [options]`
|
|
72
|
+
|
|
51
73
|
**Options:**
|
|
52
74
|
|
|
53
75
|
| Flag | Description | Default | Required |
|
|
@@ -69,7 +91,7 @@ Manage environment variables
|
|
|
69
91
|
|
|
70
92
|
- `list` (`ls`) - List environment variables
|
|
71
93
|
- `get` - Get a specific environment variable
|
|
72
|
-
- `set` - Set an environment variable
|
|
94
|
+
- `set` - Set an environment variable. For a secret, read the value from a file or stdin (--value-file, --value-stdin) so it stays out of shell history and `ps`; the CLI never prints it
|
|
73
95
|
- `delete` (`rm`, `unset`) - Delete an environment variable
|
|
74
96
|
- `import` - Import environment variables from a .env file
|
|
75
97
|
- `export` - Export environment variables to .env format
|
|
@@ -90,6 +112,8 @@ List environment variables
|
|
|
90
112
|
|
|
91
113
|
Get a specific environment variable
|
|
92
114
|
|
|
115
|
+
**Usage:** `environments vars get <key> [options]`
|
|
116
|
+
|
|
93
117
|
**Options:**
|
|
94
118
|
|
|
95
119
|
| Flag | Description | Default | Required |
|
|
@@ -98,7 +122,9 @@ Get a specific environment variable
|
|
|
98
122
|
|
|
99
123
|
#### `environments vars set`
|
|
100
124
|
|
|
101
|
-
Set an environment variable
|
|
125
|
+
Set an environment variable. For a secret, read the value from a file or stdin (--value-file, --value-stdin) so it stays out of shell history and `ps`; the CLI never prints it
|
|
126
|
+
|
|
127
|
+
**Usage:** `environments vars set <key> [value] [options]`
|
|
102
128
|
|
|
103
129
|
**Options:**
|
|
104
130
|
|
|
@@ -109,11 +135,16 @@ Set an environment variable
|
|
|
109
135
|
| `--no-preview` | Exclude from preview environments | - | No |
|
|
110
136
|
| `--update` | Update existing variable instead of creating new | - | No |
|
|
111
137
|
| `--secret` | Store as a secret: the value is masked in the UI and never returned by the API. One-way — to make a secret readable again you must delete the variable and create it anew | - | No |
|
|
138
|
+
| `--value-file <path>` | Read the value from a file, byte-for-byte (- reads stdin). Keeps it out of shell history | - | No |
|
|
139
|
+
| `--value-stdin` | Read the value from stdin, e.g. piped from a secret manager | - | No |
|
|
140
|
+
| `--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 |
|
|
112
141
|
|
|
113
142
|
#### `environments vars delete` (alias: `rm`, `unset`)
|
|
114
143
|
|
|
115
144
|
Delete an environment variable
|
|
116
145
|
|
|
146
|
+
**Usage:** `environments vars delete <key> [options]`
|
|
147
|
+
|
|
117
148
|
**Options:**
|
|
118
149
|
|
|
119
150
|
| Flag | Description | Default | Required |
|
|
@@ -125,6 +156,8 @@ Delete an environment variable
|
|
|
125
156
|
|
|
126
157
|
Import environment variables from a .env file
|
|
127
158
|
|
|
159
|
+
**Usage:** `environments vars import [file] [options]`
|
|
160
|
+
|
|
128
161
|
**Options:**
|
|
129
162
|
|
|
130
163
|
| Flag | Description | Default | Required |
|
|
@@ -147,6 +180,8 @@ Export environment variables to .env format
|
|
|
147
180
|
|
|
148
181
|
View or set CPU/memory resources for an environment
|
|
149
182
|
|
|
183
|
+
**Usage:** `environments resources <environment> [options]`
|
|
184
|
+
|
|
150
185
|
**Options:**
|
|
151
186
|
|
|
152
187
|
| Flag | Description | Default | Required |
|
|
@@ -162,6 +197,8 @@ View or set CPU/memory resources for an environment
|
|
|
162
197
|
|
|
163
198
|
View or set upstream request/idle timeouts for an environment
|
|
164
199
|
|
|
200
|
+
**Usage:** `environments timeouts <environment> [options]`
|
|
201
|
+
|
|
165
202
|
**Options:**
|
|
166
203
|
|
|
167
204
|
| Flag | Description | Default | Required |
|
|
@@ -177,6 +214,8 @@ View or set upstream request/idle timeouts for an environment
|
|
|
177
214
|
|
|
178
215
|
View or set the HTTP to HTTPS redirect override for an environment
|
|
179
216
|
|
|
217
|
+
**Usage:** `environments force-https <environment> [options]`
|
|
218
|
+
|
|
180
219
|
**Options:**
|
|
181
220
|
|
|
182
221
|
| Flag | Description | Default | Required |
|
|
@@ -198,6 +237,215 @@ View or set the number of replicas for an environment
|
|
|
198
237
|
| `-p, --project <project>` | Project slug or ID | - | No |
|
|
199
238
|
| `-e, --environment <env>` | Environment name or slug | `production` | No |
|
|
200
239
|
| `-r, --replicas <count>` | Number of replicas to set | - | No |
|
|
240
|
+
| `--load-balancing <json>` | Replica routing policy as JSON; null restores project inheritance | - | No |
|
|
241
|
+
| `--json` | Output in JSON format | - | No |
|
|
242
|
+
|
|
243
|
+
### `environments placement`
|
|
244
|
+
|
|
245
|
+
Where the scheduler would run an environment's replicas, and why
|
|
246
|
+
|
|
247
|
+
**Subcommands:**
|
|
248
|
+
|
|
249
|
+
- `explain` - Show the nodes each replica would run on now, the eligible nodes ranked, and the ones excluded with the reason
|
|
250
|
+
- `recommend` - Recommend target nodes from where the environment actually ran (recommended, never applied)
|
|
251
|
+
|
|
252
|
+
#### `environments placement explain`
|
|
253
|
+
|
|
254
|
+
Show the nodes each replica would run on now, the eligible nodes ranked, and the ones excluded with the reason
|
|
255
|
+
|
|
256
|
+
**Usage:** `environments placement explain <environment> [options]`
|
|
257
|
+
|
|
258
|
+
**Options:**
|
|
259
|
+
|
|
260
|
+
| Flag | Description | Default | Required |
|
|
261
|
+
|------|-------------|---------|----------|
|
|
262
|
+
| `-p, --project <project>` | Project slug | - | No |
|
|
263
|
+
| `--json` | Output in JSON format | - | No |
|
|
264
|
+
|
|
265
|
+
#### `environments placement recommend`
|
|
266
|
+
|
|
267
|
+
Recommend target nodes from where the environment actually ran (recommended, never applied)
|
|
268
|
+
|
|
269
|
+
**Usage:** `environments placement recommend <environment> [options]`
|
|
270
|
+
|
|
271
|
+
**Options:**
|
|
272
|
+
|
|
273
|
+
| Flag | Description | Default | Required |
|
|
274
|
+
|------|-------------|---------|----------|
|
|
275
|
+
| `-p, --project <project>` | Project slug | - | No |
|
|
276
|
+
| `--window-days <days>` | How many days of history to consider (1-90, default 7) | - | No |
|
|
277
|
+
| `--json` | Output in JSON format | - | No |
|
|
278
|
+
|
|
279
|
+
### `environments isolation`
|
|
280
|
+
|
|
281
|
+
How an environment's replicas are isolated: a container (process) or a Firecracker microVM (micro_vm). Honoured only for environments whose deployments run on the workload plane
|
|
282
|
+
|
|
283
|
+
**Subcommands:**
|
|
284
|
+
|
|
285
|
+
- `show` - Show the isolation and whether it takes effect
|
|
286
|
+
- `set` - Set the isolation: process or micro_vm (a microVM replica only runs on a node that provides one)
|
|
287
|
+
|
|
288
|
+
#### `environments isolation show`
|
|
289
|
+
|
|
290
|
+
Show the isolation and whether it takes effect
|
|
291
|
+
|
|
292
|
+
**Usage:** `environments isolation show <environment> [options]`
|
|
293
|
+
|
|
294
|
+
**Options:**
|
|
295
|
+
|
|
296
|
+
| Flag | Description | Default | Required |
|
|
297
|
+
|------|-------------|---------|----------|
|
|
298
|
+
| `-p, --project <project>` | Project slug | - | No |
|
|
299
|
+
| `--json` | Output in JSON format | - | No |
|
|
300
|
+
|
|
301
|
+
#### `environments isolation set`
|
|
302
|
+
|
|
303
|
+
Set the isolation: process or micro_vm (a microVM replica only runs on a node that provides one)
|
|
304
|
+
|
|
305
|
+
**Usage:** `environments isolation set <environment> <isolation> [options]`
|
|
306
|
+
|
|
307
|
+
**Options:**
|
|
308
|
+
|
|
309
|
+
| Flag | Description | Default | Required |
|
|
310
|
+
|------|-------------|---------|----------|
|
|
311
|
+
| `-p, --project <project>` | Project slug | - | No |
|
|
312
|
+
| `--json` | Output in JSON format | - | No |
|
|
313
|
+
|
|
314
|
+
### `environments volumes`
|
|
315
|
+
|
|
316
|
+
Persistent volumes mounted into an environment's replicas; a replica that mounts one is pinned to its node
|
|
317
|
+
|
|
318
|
+
**Subcommands:**
|
|
319
|
+
|
|
320
|
+
- `list` (`ls`) - List the environment's volumes, newest first
|
|
321
|
+
- `create` - Create a volume (attach it to mount it)
|
|
322
|
+
- `status` - Show whether the next deploy mounts the attached volumes, and what to fix if not
|
|
323
|
+
- `attach` - Mount a volume (id or name) into every replica at --mount-path
|
|
324
|
+
- `detach` - Stop mounting a volume (id or name); its data is kept
|
|
325
|
+
- `rm` (`delete`) - Delete a volume (id or name), and its data unless it was created with --retain
|
|
326
|
+
|
|
327
|
+
#### `environments volumes list` (alias: `ls`)
|
|
328
|
+
|
|
329
|
+
List the environment's volumes, newest first
|
|
330
|
+
|
|
331
|
+
**Usage:** `environments volumes list <environment> [options]`
|
|
332
|
+
|
|
333
|
+
**Options:**
|
|
334
|
+
|
|
335
|
+
| Flag | Description | Default | Required |
|
|
336
|
+
|------|-------------|---------|----------|
|
|
337
|
+
| `-p, --project <project>` | Project slug | - | No |
|
|
338
|
+
| `--page <page>` | Page number (default 1) | - | No |
|
|
339
|
+
| `--page-size <size>` | Results per page (default 20, max 100) | - | No |
|
|
340
|
+
| `--json` | Output in JSON format | - | No |
|
|
341
|
+
|
|
342
|
+
#### `environments volumes create`
|
|
343
|
+
|
|
344
|
+
Create a volume (attach it to mount it)
|
|
345
|
+
|
|
346
|
+
**Usage:** `environments volumes create <environment> [options]`
|
|
347
|
+
|
|
348
|
+
**Options:**
|
|
349
|
+
|
|
350
|
+
| Flag | Description | Default | Required |
|
|
351
|
+
|------|-------------|---------|----------|
|
|
352
|
+
| `-p, --project <project>` | Project slug | - | No |
|
|
353
|
+
| `-n, --name <name>` | Volume name: 2-64 characters of a-z, 0-9, "_", "." or "-" | - | Yes |
|
|
354
|
+
| `--size-mb <mb>` | Size in MB, when the backend supports a size | - | No |
|
|
355
|
+
| `--retain` | Keep the data when the volume is deleted | - | No |
|
|
356
|
+
| `--json` | Output in JSON format | - | No |
|
|
357
|
+
|
|
358
|
+
#### `environments volumes status`
|
|
359
|
+
|
|
360
|
+
Show whether the next deploy mounts the attached volumes, and what to fix if not
|
|
361
|
+
|
|
362
|
+
**Usage:** `environments volumes status <environment> [options]`
|
|
363
|
+
|
|
364
|
+
**Options:**
|
|
365
|
+
|
|
366
|
+
| Flag | Description | Default | Required |
|
|
367
|
+
|------|-------------|---------|----------|
|
|
368
|
+
| `-p, --project <project>` | Project slug | - | No |
|
|
369
|
+
| `--json` | Output in JSON format | - | No |
|
|
370
|
+
|
|
371
|
+
#### `environments volumes attach`
|
|
372
|
+
|
|
373
|
+
Mount a volume (id or name) into every replica at --mount-path
|
|
374
|
+
|
|
375
|
+
**Usage:** `environments volumes attach <environment> <volume> [options]`
|
|
376
|
+
|
|
377
|
+
**Options:**
|
|
378
|
+
|
|
379
|
+
| Flag | Description | Default | Required |
|
|
380
|
+
|------|-------------|---------|----------|
|
|
381
|
+
| `-p, --project <project>` | Project slug | - | No |
|
|
382
|
+
| `--mount-path <path>` | Absolute path inside each replica | - | Yes |
|
|
383
|
+
| `--read-only` | Mount it read-only | - | No |
|
|
384
|
+
| `--json` | Output in JSON format | - | No |
|
|
385
|
+
|
|
386
|
+
#### `environments volumes detach`
|
|
387
|
+
|
|
388
|
+
Stop mounting a volume (id or name); its data is kept
|
|
389
|
+
|
|
390
|
+
**Usage:** `environments volumes detach <environment> <volume> [options]`
|
|
391
|
+
|
|
392
|
+
**Options:**
|
|
393
|
+
|
|
394
|
+
| Flag | Description | Default | Required |
|
|
395
|
+
|------|-------------|---------|----------|
|
|
396
|
+
| `-p, --project <project>` | Project slug | - | No |
|
|
397
|
+
| `--json` | Output in JSON format | - | No |
|
|
398
|
+
|
|
399
|
+
#### `environments volumes rm` (alias: `delete`)
|
|
400
|
+
|
|
401
|
+
Delete a volume (id or name), and its data unless it was created with --retain
|
|
402
|
+
|
|
403
|
+
**Usage:** `environments volumes rm <environment> <volume> [options]`
|
|
404
|
+
|
|
405
|
+
**Options:**
|
|
406
|
+
|
|
407
|
+
| Flag | Description | Default | Required |
|
|
408
|
+
|------|-------------|---------|----------|
|
|
409
|
+
| `-p, --project <project>` | Project slug | - | No |
|
|
410
|
+
| `-f, --force` | Skip confirmation | - | No |
|
|
411
|
+
| `-y, --yes` | Skip confirmation (alias for --force) | - | No |
|
|
412
|
+
| `--json` | Output in JSON format | - | No |
|
|
413
|
+
|
|
414
|
+
### `environments ingress`
|
|
415
|
+
|
|
416
|
+
Whether visitors must sign in to Temps to open an environment
|
|
417
|
+
|
|
418
|
+
**Subcommands:**
|
|
419
|
+
|
|
420
|
+
- `show` - Show the login requirement and whether the proxy enforces it now
|
|
421
|
+
- `set` - Require visitors to sign in to Temps, or stop requiring it
|
|
422
|
+
|
|
423
|
+
#### `environments ingress show`
|
|
424
|
+
|
|
425
|
+
Show the login requirement and whether the proxy enforces it now
|
|
426
|
+
|
|
427
|
+
**Usage:** `environments ingress show <environment> [options]`
|
|
428
|
+
|
|
429
|
+
**Options:**
|
|
430
|
+
|
|
431
|
+
| Flag | Description | Default | Required |
|
|
432
|
+
|------|-------------|---------|----------|
|
|
433
|
+
| `-p, --project <project>` | Project slug | - | No |
|
|
434
|
+
| `--json` | Output in JSON format | - | No |
|
|
435
|
+
|
|
436
|
+
#### `environments ingress set`
|
|
437
|
+
|
|
438
|
+
Require visitors to sign in to Temps, or stop requiring it
|
|
439
|
+
|
|
440
|
+
**Usage:** `environments ingress set <environment> [options]`
|
|
441
|
+
|
|
442
|
+
**Options:**
|
|
443
|
+
|
|
444
|
+
| Flag | Description | Default | Required |
|
|
445
|
+
|------|-------------|---------|----------|
|
|
446
|
+
| `-p, --project <project>` | Project slug | - | No |
|
|
447
|
+
| `--require-login` | Require sign-in only when ingress mode is enforce. Check login_enforced in JSON output or Enforced now in text output | - | No |
|
|
448
|
+
| `--no-require-login` | Visitors do not need to sign in | - | No |
|
|
201
449
|
| `--json` | Output in JSON format | - | No |
|
|
202
450
|
|
|
203
451
|
### `environments crons`
|