@temps-sdk/cli 0.2.0-beta.1 → 0.2.0-beta.3
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 +104770 -87351
- package/dist/skills/temps/SKILL.md +6 -3
- package/dist/skills/temps/evals/evals.json +38 -0
- package/dist/skills/temps/howtos/agent-handoff.md +106 -0
- package/dist/skills/temps/howtos/install-temps.md +151 -0
- package/dist/skills/temps/references/commands/INDEX.md +7 -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 +483 -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/ingress.md +26 -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/mcp.md +14 -1
- 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 +438 -0
- package/dist/skills/temps/references/commands/platform.md +64 -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 +453 -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 +732 -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 +831 -5
- package/dist/skills/temps/references/commands/settings.md +384 -0
- package/dist/skills/temps/references/commands/shield.md +354 -0
- package/dist/skills/temps/references/commands/start.md +1 -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
|
@@ -6,9 +6,9 @@ Apply [the CLI runtime and safety contract](../cli-runtime.md) before executing
|
|
|
6
6
|
|
|
7
7
|
## Contents
|
|
8
8
|
|
|
9
|
-
- [`environments list`](#environments-list)
|
|
9
|
+
- [`environments list`](#environments-list-alias-ls)
|
|
10
10
|
- [`environments create`](#environments-create)
|
|
11
|
-
- [`environments delete`](#environments-delete)
|
|
11
|
+
- [`environments delete`](#environments-delete-alias-rm)
|
|
12
12
|
- [`environments vars`](#environments-vars)
|
|
13
13
|
- [`environments resources`](#environments-resources)
|
|
14
14
|
- [`environments timeouts`](#environments-timeouts)
|
|
@@ -18,7 +18,15 @@ Apply [the CLI runtime and safety contract](../cli-runtime.md) before executing
|
|
|
18
18
|
- [`environments isolation`](#environments-isolation)
|
|
19
19
|
- [`environments volumes`](#environments-volumes)
|
|
20
20
|
- [`environments ingress`](#environments-ingress)
|
|
21
|
+
- [`environments recording`](#environments-recording)
|
|
22
|
+
- [`environments outbound`](#environments-outbound)
|
|
21
23
|
- [`environments crons`](#environments-crons)
|
|
24
|
+
- [`environments reachability`](#environments-reachability)
|
|
25
|
+
- [`environments create-ingress-login-grant`](#environments-create-ingress-login-grant)
|
|
26
|
+
- [`environments sleep`](#environments-sleep)
|
|
27
|
+
- [`environments wake`](#environments-wake)
|
|
28
|
+
- [`environments health`](#environments-health)
|
|
29
|
+
- [`environments settings`](#environments-settings)
|
|
22
30
|
|
|
23
31
|
## `environments` (alias: `envs`, `env`)
|
|
24
32
|
|
|
@@ -38,7 +46,15 @@ Manage environments and environment variables
|
|
|
38
46
|
- `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
47
|
- `volumes` - Persistent volumes mounted into an environment's replicas; a replica that mounts one is pinned to its node
|
|
40
48
|
- `ingress` - Whether visitors must sign in to Temps to open an environment
|
|
49
|
+
- `recording` - Show or set whether the environment's deployments record their outbound connections (destination, outcome, bytes; never headers or bodies). Takes effect on the next deployment
|
|
50
|
+
- `outbound` - List the outbound connections a recording environment's deployments made, newest first
|
|
41
51
|
- `crons` - Manage cron jobs
|
|
52
|
+
- `reachability` - Reachability commands
|
|
53
|
+
- `create-ingress-login-grant` - Create ingress login grant
|
|
54
|
+
- `sleep` - Sleep an on-demand environment
|
|
55
|
+
- `wake` - Wake a sleeping on-demand environment
|
|
56
|
+
- `health` - Health commands
|
|
57
|
+
- `settings` - Change any setting of one environment (by its numeric ID); flags left out keep their value. `resources`, `timeouts` and `force-https` cover the common ones by name
|
|
42
58
|
|
|
43
59
|
### `environments list` (alias: `ls`)
|
|
44
60
|
|
|
@@ -135,6 +151,7 @@ Set an environment variable. For a secret, read the value from a file or stdin (
|
|
|
135
151
|
| `--no-preview` | Exclude from preview environments | - | No |
|
|
136
152
|
| `--update` | Update existing variable instead of creating new | - | No |
|
|
137
153
|
| `--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 |
|
|
154
|
+
| `--generate-secret [bytes\|laravel]` | Have the server generate a random secret of this many bytes (16 to 64, 32 by default, hex), stored as a secret and never shown; for a new variable, instead of a value. `laravel`, the default for APP_KEY, makes a Laravel application key (base64:, 32 bytes) | - | No |
|
|
138
155
|
| `--value-file <path>` | Read the value from a file, byte-for-byte (- reads stdin). Keeps it out of shell history | - | No |
|
|
139
156
|
| `--value-stdin` | Read the value from stdin, e.g. piped from a secret manager | - | No |
|
|
140
157
|
| `--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 |
|
|
@@ -419,6 +436,10 @@ Whether visitors must sign in to Temps to open an environment
|
|
|
419
436
|
|
|
420
437
|
- `show` - Show the login requirement and whether the proxy enforces it now
|
|
421
438
|
- `set` - Require visitors to sign in to Temps, or stop requiring it
|
|
439
|
+
- `delete-connector` - Delete a tunnel at the provider and unpublish every hostname it carries
|
|
440
|
+
- `get-connector` - Get one tunnel
|
|
441
|
+
- `retry-hostname-dns` - Retry DNS setup for a failed hostname publication on its current tunnel
|
|
442
|
+
- `list-providers` - List the tunnel providers this control plane offers
|
|
422
443
|
|
|
423
444
|
#### `environments ingress show`
|
|
424
445
|
|
|
@@ -448,6 +469,84 @@ Require visitors to sign in to Temps, or stop requiring it
|
|
|
448
469
|
| `--no-require-login` | Visitors do not need to sign in | - | No |
|
|
449
470
|
| `--json` | Output in JSON format | - | No |
|
|
450
471
|
|
|
472
|
+
#### `environments ingress delete-connector`
|
|
473
|
+
|
|
474
|
+
Delete a tunnel at the provider and unpublish every hostname it carries
|
|
475
|
+
|
|
476
|
+
**Usage:** `environments ingress delete-connector <id> [options]`
|
|
477
|
+
|
|
478
|
+
**Options:**
|
|
479
|
+
|
|
480
|
+
| Flag | Description | Default | Required |
|
|
481
|
+
|------|-------------|---------|----------|
|
|
482
|
+
| `-y, --yes` | Do not ask for confirmation | - | No |
|
|
483
|
+
| `--json` | Output in JSON format | - | No |
|
|
484
|
+
|
|
485
|
+
#### `environments ingress get-connector`
|
|
486
|
+
|
|
487
|
+
Get one tunnel
|
|
488
|
+
|
|
489
|
+
**Usage:** `environments ingress get-connector <id> [options]`
|
|
490
|
+
|
|
491
|
+
**Options:**
|
|
492
|
+
|
|
493
|
+
| Flag | Description | Default | Required |
|
|
494
|
+
|------|-------------|---------|----------|
|
|
495
|
+
| `--json` | Output in JSON format | - | No |
|
|
496
|
+
|
|
497
|
+
#### `environments ingress retry-hostname-dns`
|
|
498
|
+
|
|
499
|
+
Retry DNS setup for a failed hostname publication on its current tunnel
|
|
500
|
+
|
|
501
|
+
**Usage:** `environments ingress retry-hostname-dns <id> <hostname> [options]`
|
|
502
|
+
|
|
503
|
+
**Options:**
|
|
504
|
+
|
|
505
|
+
| Flag | Description | Default | Required |
|
|
506
|
+
|------|-------------|---------|----------|
|
|
507
|
+
| `--json` | Output in JSON format | - | No |
|
|
508
|
+
|
|
509
|
+
#### `environments ingress list-providers`
|
|
510
|
+
|
|
511
|
+
List the tunnel providers this control plane offers
|
|
512
|
+
|
|
513
|
+
**Options:**
|
|
514
|
+
|
|
515
|
+
| Flag | Description | Default | Required |
|
|
516
|
+
|------|-------------|---------|----------|
|
|
517
|
+
| `--json` | Output in JSON format | - | No |
|
|
518
|
+
|
|
519
|
+
### `environments recording`
|
|
520
|
+
|
|
521
|
+
Show or set whether the environment's deployments record their outbound connections (destination, outcome, bytes; never headers or bodies). Takes effect on the next deployment
|
|
522
|
+
|
|
523
|
+
**Usage:** `environments recording <environment> [options]`
|
|
524
|
+
|
|
525
|
+
**Options:**
|
|
526
|
+
|
|
527
|
+
| Flag | Description | Default | Required |
|
|
528
|
+
|------|-------------|---------|----------|
|
|
529
|
+
| `-p, --project <project>` | Project slug | - | No |
|
|
530
|
+
| `--on` | Record outbound connections | - | No |
|
|
531
|
+
| `--off` | Stop recording | - | No |
|
|
532
|
+
| `--json` | Output in JSON format | - | No |
|
|
533
|
+
|
|
534
|
+
### `environments outbound`
|
|
535
|
+
|
|
536
|
+
List the outbound connections a recording environment's deployments made, newest first
|
|
537
|
+
|
|
538
|
+
**Usage:** `environments outbound <environment> [options]`
|
|
539
|
+
|
|
540
|
+
**Options:**
|
|
541
|
+
|
|
542
|
+
| Flag | Description | Default | Required |
|
|
543
|
+
|------|-------------|---------|----------|
|
|
544
|
+
| `-p, --project <project>` | Project slug | - | No |
|
|
545
|
+
| `--page <n>` | Page number (default 1) | - | No |
|
|
546
|
+
| `--per-page <n>` | Records per page (default 20, max 100) | - | No |
|
|
547
|
+
| `--outcome <outcome>` | Only allowed, refused or failed connections | - | No |
|
|
548
|
+
| `--json` | Output in JSON format | - | No |
|
|
549
|
+
|
|
451
550
|
### `environments crons`
|
|
452
551
|
|
|
453
552
|
Manage cron jobs
|
|
@@ -498,3 +597,385 @@ Show cron job execution history
|
|
|
498
597
|
| `--page <page>` | Page number | `1` | No |
|
|
499
598
|
| `--per-page <count>` | Items per page | `20` | No |
|
|
500
599
|
| `--json` | Output in JSON format | - | No |
|
|
600
|
+
|
|
601
|
+
### `environments reachability`
|
|
602
|
+
|
|
603
|
+
Reachability commands
|
|
604
|
+
|
|
605
|
+
**Subcommands:**
|
|
606
|
+
|
|
607
|
+
- `get-certificate-methods` - Which ways to give a domain HTTPS work here
|
|
608
|
+
- `check-cloudflare-token` - Check which permissions a pasted Cloudflare API token has
|
|
609
|
+
- `get-connector-hosts` - What a tunnel publishes for environments, or would once turned on
|
|
610
|
+
- `set-connector-hosts` - Turn a tunnel's environment hosts on or off
|
|
611
|
+
- `get` - Whether visitors can reach each address of an environment
|
|
612
|
+
- `apply` - Carry out one option of a stored plan
|
|
613
|
+
- `get-choices` - Which audiences, and which ways in, can work for an environment
|
|
614
|
+
- `plan` - What *Make it reachable* would do for an address
|
|
615
|
+
- `list-runs` - The newest runs of an environment
|
|
616
|
+
- `get-run` - One run, with the progress of each step and what it created
|
|
617
|
+
- `decide-conflict` - Answer a conflict: a DNS record someone else changed while the run was setting it, or after it did (ADR..
|
|
618
|
+
- `resume-run` - Carry on a waiting or interrupted run from its first step not done
|
|
619
|
+
- `undo-run` - Remove exactly what a run created, newest first
|
|
620
|
+
- `get-preview-domain-status` - Whether the preview domain can be reached
|
|
621
|
+
|
|
622
|
+
#### `environments reachability get-certificate-methods`
|
|
623
|
+
|
|
624
|
+
Which ways to give a domain HTTPS work here
|
|
625
|
+
|
|
626
|
+
**Options:**
|
|
627
|
+
|
|
628
|
+
| Flag | Description | Default | Required |
|
|
629
|
+
|------|-------------|---------|----------|
|
|
630
|
+
| `--domain <value>` | The domain to judge, such as 'my-app.example.com' or '*.example.com' | - | No |
|
|
631
|
+
| `--json` | Output in JSON format | - | No |
|
|
632
|
+
|
|
633
|
+
#### `environments reachability check-cloudflare-token`
|
|
634
|
+
|
|
635
|
+
Check which permissions a pasted Cloudflare API token has
|
|
636
|
+
|
|
637
|
+
**Options:**
|
|
638
|
+
|
|
639
|
+
| Flag | Description | Default | Required |
|
|
640
|
+
|------|-------------|---------|----------|
|
|
641
|
+
| `--hostname <value>` | A hostname the token is meant to serve, when the zone is not known: the longest zone the token reaches... | - | No |
|
|
642
|
+
| `--token-stdin` | The token, as pasted [required] (read from stdin) | - | No |
|
|
643
|
+
| `--token-file <path>` | The token, as pasted [required] (read from a file) | - | No |
|
|
644
|
+
| `--zone <value>` | The zone the token is meant for | - | No |
|
|
645
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
646
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
647
|
+
| `--json` | Output in JSON format | - | No |
|
|
648
|
+
|
|
649
|
+
#### `environments reachability get-connector-hosts`
|
|
650
|
+
|
|
651
|
+
What a tunnel publishes for environments, or would once turned on
|
|
652
|
+
|
|
653
|
+
**Usage:** `environments reachability get-connector-hosts <id> [options]`
|
|
654
|
+
|
|
655
|
+
**Options:**
|
|
656
|
+
|
|
657
|
+
| Flag | Description | Default | Required |
|
|
658
|
+
|------|-------------|---------|----------|
|
|
659
|
+
| `--json` | Output in JSON format | - | No |
|
|
660
|
+
|
|
661
|
+
#### `environments reachability set-connector-hosts`
|
|
662
|
+
|
|
663
|
+
Turn a tunnel's environment hosts on or off
|
|
664
|
+
|
|
665
|
+
**Usage:** `environments reachability set-connector-hosts <id> [options]`
|
|
666
|
+
|
|
667
|
+
**Options:**
|
|
668
|
+
|
|
669
|
+
| Flag | Description | Default | Required |
|
|
670
|
+
|------|-------------|---------|----------|
|
|
671
|
+
| `--confirm <value>` | The 'confirm_token' of the list that was shown and accepted: turning on publishes every host in it,... | - | No |
|
|
672
|
+
| `--enabled` | Body field enabled [required] | - | No |
|
|
673
|
+
| `--no-enabled` | Set enabled to false | - | No |
|
|
674
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
675
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
676
|
+
| `--json` | Output in JSON format | - | No |
|
|
677
|
+
|
|
678
|
+
#### `environments reachability get`
|
|
679
|
+
|
|
680
|
+
Whether visitors can reach each address of an environment
|
|
681
|
+
|
|
682
|
+
**Usage:** `environments reachability get <environment-id> [options]`
|
|
683
|
+
|
|
684
|
+
**Options:**
|
|
685
|
+
|
|
686
|
+
| Flag | Description | Default | Required |
|
|
687
|
+
|------|-------------|---------|----------|
|
|
688
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
689
|
+
| `--json` | Output in JSON format | - | No |
|
|
690
|
+
|
|
691
|
+
#### `environments reachability apply`
|
|
692
|
+
|
|
693
|
+
Carry out one option of a stored plan
|
|
694
|
+
|
|
695
|
+
**Usage:** `environments reachability apply <environment-id> [options]`
|
|
696
|
+
|
|
697
|
+
**Options:**
|
|
698
|
+
|
|
699
|
+
| Flag | Description | Default | Required |
|
|
700
|
+
|------|-------------|---------|----------|
|
|
701
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
702
|
+
| `--answers <json>` | Answers to the option's fields by key. 'address', when given, must be the plan's; 'dns_provider_id' takes... (JSON) | - | No |
|
|
703
|
+
| `--confirmed` | The user saw and accepted the option's 'confirmation' | - | No |
|
|
704
|
+
| `--no-confirmed` | Set confirmed to false | - | No |
|
|
705
|
+
| `--option <value>` | Which option of the plan to carry out (one of: existing_tunnel, direct_managed_dns, new_tunnel, new_tunnel_with_token, direct_manual_dns, private_worker, tailscale_serve, tailscale_service, tailscale_service_with_credential, tunnel_environment_hosts) [required] | - | No |
|
|
706
|
+
| `--plan-id <value>` | The plan this acts on, from 'POST …/reachability/plan' [required] | - | No |
|
|
707
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
708
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
709
|
+
| `--json` | Output in JSON format | - | No |
|
|
710
|
+
|
|
711
|
+
#### `environments reachability get-choices`
|
|
712
|
+
|
|
713
|
+
Which audiences, and which ways in, can work for an environment
|
|
714
|
+
|
|
715
|
+
**Usage:** `environments reachability get-choices <environment-id> [options]`
|
|
716
|
+
|
|
717
|
+
**Options:**
|
|
718
|
+
|
|
719
|
+
| Flag | Description | Default | Required |
|
|
720
|
+
|------|-------------|---------|----------|
|
|
721
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
722
|
+
| `--json` | Output in JSON format | - | No |
|
|
723
|
+
|
|
724
|
+
#### `environments reachability plan`
|
|
725
|
+
|
|
726
|
+
What *Make it reachable* would do for an address
|
|
727
|
+
|
|
728
|
+
**Usage:** `environments reachability plan <environment-id> [options]`
|
|
729
|
+
|
|
730
|
+
**Options:**
|
|
731
|
+
|
|
732
|
+
| Flag | Description | Default | Required |
|
|
733
|
+
|------|-------------|---------|----------|
|
|
734
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
735
|
+
| `--address <value>` | The hostname to make reachable; Temps suggests one without it | - | No |
|
|
736
|
+
| `--audience <value>` | Who an address is for (one of: public, private, signed_in, tailnet_users, unsupported) | - | No |
|
|
737
|
+
| `--gate <value>` | Which gate an address has (D7) (one of: temps, cloudflare_access, unsupported) | - | No |
|
|
738
|
+
| `--principals <json>` | For 'tailnet_users': the tailnet logins and tags it admits (ADR 065 D6) (JSON) | - | No |
|
|
739
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
740
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
741
|
+
| `--json` | Output in JSON format | - | No |
|
|
742
|
+
|
|
743
|
+
#### `environments reachability list-runs`
|
|
744
|
+
|
|
745
|
+
The newest runs of an environment
|
|
746
|
+
|
|
747
|
+
**Usage:** `environments reachability list-runs <environment-id> [options]`
|
|
748
|
+
|
|
749
|
+
**Options:**
|
|
750
|
+
|
|
751
|
+
| Flag | Description | Default | Required |
|
|
752
|
+
|------|-------------|---------|----------|
|
|
753
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
754
|
+
| `--json` | Output in JSON format | - | No |
|
|
755
|
+
|
|
756
|
+
#### `environments reachability get-run`
|
|
757
|
+
|
|
758
|
+
One run, with the progress of each step and what it created
|
|
759
|
+
|
|
760
|
+
**Usage:** `environments reachability get-run <environment-id> <run-id> [options]`
|
|
761
|
+
|
|
762
|
+
**Options:**
|
|
763
|
+
|
|
764
|
+
| Flag | Description | Default | Required |
|
|
765
|
+
|------|-------------|---------|----------|
|
|
766
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
767
|
+
| `--json` | Output in JSON format | - | No |
|
|
768
|
+
|
|
769
|
+
#### `environments reachability decide-conflict`
|
|
770
|
+
|
|
771
|
+
Answer a conflict: a DNS record someone else changed while the run was setting it, or after it did (ADR..
|
|
772
|
+
|
|
773
|
+
**Usage:** `environments reachability decide-conflict <environment-id> <run-id> [options]`
|
|
774
|
+
|
|
775
|
+
**Options:**
|
|
776
|
+
|
|
777
|
+
| Flag | Description | Default | Required |
|
|
778
|
+
|------|-------------|---------|----------|
|
|
779
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
780
|
+
| `--decision <value>` | A user's answer to a conflict (ADR 064 D4), journaled with the entry (one of: keep, overwrite) [required] | - | No |
|
|
781
|
+
| `--key <value>` | The journal entry in conflict [required] | - | No |
|
|
782
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
783
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
784
|
+
| `--json` | Output in JSON format | - | No |
|
|
785
|
+
|
|
786
|
+
#### `environments reachability resume-run`
|
|
787
|
+
|
|
788
|
+
Carry on a waiting or interrupted run from its first step not done
|
|
789
|
+
|
|
790
|
+
**Usage:** `environments reachability resume-run <environment-id> <run-id> [options]`
|
|
791
|
+
|
|
792
|
+
**Options:**
|
|
793
|
+
|
|
794
|
+
| Flag | Description | Default | Required |
|
|
795
|
+
|------|-------------|---------|----------|
|
|
796
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
797
|
+
| `--answers <json>` | 'cloudflare_api_token', when the run had not saved the account yet (JSON) | - | No |
|
|
798
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
799
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
800
|
+
| `--json` | Output in JSON format | - | No |
|
|
801
|
+
|
|
802
|
+
#### `environments reachability undo-run`
|
|
803
|
+
|
|
804
|
+
Remove exactly what a run created, newest first
|
|
805
|
+
|
|
806
|
+
**Usage:** `environments reachability undo-run <environment-id> <run-id> [options]`
|
|
807
|
+
|
|
808
|
+
**Options:**
|
|
809
|
+
|
|
810
|
+
| Flag | Description | Default | Required |
|
|
811
|
+
|------|-------------|---------|----------|
|
|
812
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
813
|
+
| `--json` | Output in JSON format | - | No |
|
|
814
|
+
|
|
815
|
+
#### `environments reachability get-preview-domain-status`
|
|
816
|
+
|
|
817
|
+
Whether the preview domain can be reached
|
|
818
|
+
|
|
819
|
+
**Options:**
|
|
820
|
+
|
|
821
|
+
| Flag | Description | Default | Required |
|
|
822
|
+
|------|-------------|---------|----------|
|
|
823
|
+
| `--json` | Output in JSON format | - | No |
|
|
824
|
+
|
|
825
|
+
### `environments create-ingress-login-grant`
|
|
826
|
+
|
|
827
|
+
Create ingress login grant
|
|
828
|
+
|
|
829
|
+
**Options:**
|
|
830
|
+
|
|
831
|
+
| Flag | Description | Default | Required |
|
|
832
|
+
|------|-------------|---------|----------|
|
|
833
|
+
| `--host <value>` | The hostname, without a port [required] | - | No |
|
|
834
|
+
| `--next <value>` | Path on the host to return to | - | No |
|
|
835
|
+
| `--owner-id <n>` | Body field owner_id [required] | - | No |
|
|
836
|
+
| `--owner-kind <value>` | 'environment' or 'sandbox' (a sandbox preview host) [required] | - | No |
|
|
837
|
+
| `--port <n>` | The port the visitor reached the host on, when the proxy's request carries one (it leaves out the scheme's... | - | No |
|
|
838
|
+
| `--scheme <value>` | 'http' or 'https': how the visitor reached the host [required] | - | No |
|
|
839
|
+
| `--sig <value>` | Body field sig [required] | - | No |
|
|
840
|
+
| `--ts <n>` | Unix seconds the proxy signed the request at [required] | - | No |
|
|
841
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
842
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
843
|
+
| `--json` | Output in JSON format | - | No |
|
|
844
|
+
|
|
845
|
+
### `environments sleep`
|
|
846
|
+
|
|
847
|
+
Sleep an on-demand environment
|
|
848
|
+
|
|
849
|
+
**Usage:** `environments sleep <env-id> [options]`
|
|
850
|
+
|
|
851
|
+
**Options:**
|
|
852
|
+
|
|
853
|
+
| Flag | Description | Default | Required |
|
|
854
|
+
|------|-------------|---------|----------|
|
|
855
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
856
|
+
| `--json` | Output in JSON format | - | No |
|
|
857
|
+
|
|
858
|
+
### `environments wake`
|
|
859
|
+
|
|
860
|
+
Wake a sleeping on-demand environment
|
|
861
|
+
|
|
862
|
+
**Usage:** `environments wake <env-id> [options]`
|
|
863
|
+
|
|
864
|
+
**Options:**
|
|
865
|
+
|
|
866
|
+
| Flag | Description | Default | Required |
|
|
867
|
+
|------|-------------|---------|----------|
|
|
868
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
869
|
+
| `--json` | Output in JSON format | - | No |
|
|
870
|
+
|
|
871
|
+
### `environments health`
|
|
872
|
+
|
|
873
|
+
Health commands
|
|
874
|
+
|
|
875
|
+
**Subcommands:**
|
|
876
|
+
|
|
877
|
+
- `get-runtime` - Get runtime health
|
|
878
|
+
- `update-runtime` - Update runtime health
|
|
879
|
+
- `get-project-runtime-health` - Get project runtime health
|
|
880
|
+
|
|
881
|
+
#### `environments health get-runtime`
|
|
882
|
+
|
|
883
|
+
Get runtime health
|
|
884
|
+
|
|
885
|
+
**Usage:** `environments health get-runtime <environment-id> [options]`
|
|
886
|
+
|
|
887
|
+
**Options:**
|
|
888
|
+
|
|
889
|
+
| Flag | Description | Default | Required |
|
|
890
|
+
|------|-------------|---------|----------|
|
|
891
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
892
|
+
| `--json` | Output in JSON format | - | No |
|
|
893
|
+
|
|
894
|
+
#### `environments health update-runtime`
|
|
895
|
+
|
|
896
|
+
Update runtime health
|
|
897
|
+
|
|
898
|
+
**Usage:** `environments health update-runtime <environment-id> [options]`
|
|
899
|
+
|
|
900
|
+
**Options:**
|
|
901
|
+
|
|
902
|
+
| Flag | Description | Default | Required |
|
|
903
|
+
|------|-------------|---------|----------|
|
|
904
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
905
|
+
| `--enabled` | Body field enabled [required] | - | No |
|
|
906
|
+
| `--no-enabled` | Set enabled to false | - | No |
|
|
907
|
+
| `--paused` | Body field paused [required] | - | No |
|
|
908
|
+
| `--no-paused` | Set paused to false | - | No |
|
|
909
|
+
| `--required-healthy <n>` | Body field required_healthy | - | No |
|
|
910
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
911
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
912
|
+
| `--json` | Output in JSON format | - | No |
|
|
913
|
+
|
|
914
|
+
#### `environments health get-project-runtime-health`
|
|
915
|
+
|
|
916
|
+
Get project runtime health
|
|
917
|
+
|
|
918
|
+
**Options:**
|
|
919
|
+
|
|
920
|
+
| Flag | Description | Default | Required |
|
|
921
|
+
|------|-------------|---------|----------|
|
|
922
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
923
|
+
| `--json` | Output in JSON format | - | No |
|
|
924
|
+
|
|
925
|
+
### `environments settings`
|
|
926
|
+
|
|
927
|
+
Change any setting of one environment (by its numeric ID); flags left out keep their value. `resources`, `timeouts` and `force-https` cover the common ones by name
|
|
928
|
+
|
|
929
|
+
**Usage:** `environments settings <env-id> [options]`
|
|
930
|
+
|
|
931
|
+
**Options:**
|
|
932
|
+
|
|
933
|
+
| Flag | Description | Default | Required |
|
|
934
|
+
|------|-------------|---------|----------|
|
|
935
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
936
|
+
| `--branch <value>` | Branch this environment deploys | - | No |
|
|
937
|
+
| `--automatic-deploy` | Deploy automatically on push | - | No |
|
|
938
|
+
| `--no-automatic-deploy` | Set automatic_deploy to false | - | No |
|
|
939
|
+
| `--protected` | Never deploy this environment automatically from a push | - | No |
|
|
940
|
+
| `--no-protected` | Set protected to false | - | No |
|
|
941
|
+
| `--replicas <n>` | Container replicas | - | No |
|
|
942
|
+
| `--cpu-limit <n>` | CPU limit per container, in microcores | - | No |
|
|
943
|
+
| `--cpu-request <n>` | CPU reserved per container, in microcores | - | No |
|
|
944
|
+
| `--memory-limit <n>` | Memory limit per container, in MB | - | No |
|
|
945
|
+
| `--memory-request <n>` | Memory reserved per container, in MB | - | No |
|
|
946
|
+
| `--exposed-port <n>` | Port the container listens on (overrides the project's) | - | No |
|
|
947
|
+
| `--anti-affinity` | Spread replicas across different nodes | - | No |
|
|
948
|
+
| `--no-anti-affinity` | Set anti_affinity to false | - | No |
|
|
949
|
+
| `--target-nodes <n>` | Only deploy to this node ID (repeatable) (repeatable) | - | No |
|
|
950
|
+
| `--target-labels <json>` | Only deploy to nodes with these labels, as JSON, e.g. {"region":"eu"} (JSON) | - | No |
|
|
951
|
+
| `--build-location <value>` | Where a source deployment's image is built (one of: control_plane, node, ci) | - | No |
|
|
952
|
+
| `--cross-architecture-builds` | Build one image per architecture the eligible nodes run | - | No |
|
|
953
|
+
| `--no-cross-architecture-builds` | Set cross_architecture_builds to false | - | No |
|
|
954
|
+
| `--on-demand` | Start containers on the first request and stop them when idle | - | No |
|
|
955
|
+
| `--no-on-demand` | Set on_demand to false | - | No |
|
|
956
|
+
| `--idle-timeout-seconds <n>` | Idle seconds (60-86400) before an on-demand environment stops | - | No |
|
|
957
|
+
| `--wake-timeout-seconds <n>` | Seconds (5-120) to wait for an on-demand environment to wake | - | No |
|
|
958
|
+
| `--health <json>` | Health check settings as JSON, e.g. {"path":"/healthz"} (JSON) | - | No |
|
|
959
|
+
| `--health-check-timeout-seconds <n>` | Seconds (30-3600) a new deployment's containers get to become ready | - | No |
|
|
960
|
+
| `--stop-timeout-seconds <n>` | Seconds (1-3600) the previous deployment gets to finish in-flight requests | - | No |
|
|
961
|
+
| `--load-balancing <json>` | Load balancing settings as JSON (JSON) | - | No |
|
|
962
|
+
| `--max-concurrent-connections <n>` | Cap on concurrent requests to this environment's upstream (0 = unlimited) | - | No |
|
|
963
|
+
| `--request-timeout-seconds <n>` | HTTP request timeout, in seconds | - | No |
|
|
964
|
+
| `--sse-idle-timeout-seconds <n>` | Idle timeout of SSE streams, in seconds | - | No |
|
|
965
|
+
| `--websocket-idle-timeout-seconds <n>` | Idle timeout of WebSocket connections, in seconds | - | No |
|
|
966
|
+
| `--force-https` | Redirect HTTP to HTTPS | - | No |
|
|
967
|
+
| `--no-force-https` | Set force_https to false | - | No |
|
|
968
|
+
| `--password-stdin` | Password visitors must enter to open the environment (read from stdin) | - | No |
|
|
969
|
+
| `--password-file <path>` | Password visitors must enter to open the environment (read from a file) | - | No |
|
|
970
|
+
| `--security <json>` | Security settings (headers, rate limits) as JSON (JSON) | - | No |
|
|
971
|
+
| `--attack-mode` | Ask visitors to solve a CAPTCHA | - | No |
|
|
972
|
+
| `--no-attack-mode` | Set attack_mode to false | - | No |
|
|
973
|
+
| `--shield-mode <value>` | How Shield acts on its verdicts (one of: off, log, selective, attack) | - | No |
|
|
974
|
+
| `--shield-exempt-paths <value>` | Path Shield never challenges, e.g. /api/* (repeatable; replaces the list) (repeatable) | - | No |
|
|
975
|
+
| `--performance-metrics-enabled` | Collect web performance metrics | - | No |
|
|
976
|
+
| `--no-performance-metrics-enabled` | Set performance_metrics_enabled to false | - | No |
|
|
977
|
+
| `--session-recording-enabled` | Record visitor sessions | - | No |
|
|
978
|
+
| `--no-session-recording-enabled` | Set session_recording_enabled to false | - | No |
|
|
979
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
980
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
981
|
+
| `--json` | Output in JSON format | - | No |
|