@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
|
@@ -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)
|
|
@@ -19,6 +19,12 @@ Apply [the CLI runtime and safety contract](../cli-runtime.md) before executing
|
|
|
19
19
|
- [`environments volumes`](#environments-volumes)
|
|
20
20
|
- [`environments ingress`](#environments-ingress)
|
|
21
21
|
- [`environments crons`](#environments-crons)
|
|
22
|
+
- [`environments reachability`](#environments-reachability)
|
|
23
|
+
- [`environments create-ingress-login-grant`](#environments-create-ingress-login-grant)
|
|
24
|
+
- [`environments sleep`](#environments-sleep)
|
|
25
|
+
- [`environments wake`](#environments-wake)
|
|
26
|
+
- [`environments health`](#environments-health)
|
|
27
|
+
- [`environments settings`](#environments-settings)
|
|
22
28
|
|
|
23
29
|
## `environments` (alias: `envs`, `env`)
|
|
24
30
|
|
|
@@ -39,6 +45,12 @@ Manage environments and environment variables
|
|
|
39
45
|
- `volumes` - Persistent volumes mounted into an environment's replicas; a replica that mounts one is pinned to its node
|
|
40
46
|
- `ingress` - Whether visitors must sign in to Temps to open an environment
|
|
41
47
|
- `crons` - Manage cron jobs
|
|
48
|
+
- `reachability` - Reachability commands
|
|
49
|
+
- `create-ingress-login-grant` - Create ingress login grant
|
|
50
|
+
- `sleep` - Sleep an on-demand environment
|
|
51
|
+
- `wake` - Wake a sleeping on-demand environment
|
|
52
|
+
- `health` - Health commands
|
|
53
|
+
- `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
54
|
|
|
43
55
|
### `environments list` (alias: `ls`)
|
|
44
56
|
|
|
@@ -419,6 +431,10 @@ Whether visitors must sign in to Temps to open an environment
|
|
|
419
431
|
|
|
420
432
|
- `show` - Show the login requirement and whether the proxy enforces it now
|
|
421
433
|
- `set` - Require visitors to sign in to Temps, or stop requiring it
|
|
434
|
+
- `delete-connector` - Delete a tunnel at the provider and unpublish every hostname it carries
|
|
435
|
+
- `get-connector` - Get one tunnel
|
|
436
|
+
- `retry-hostname-dns` - Retry DNS setup for a failed hostname publication on its current tunnel
|
|
437
|
+
- `list-providers` - List the tunnel providers this control plane offers
|
|
422
438
|
|
|
423
439
|
#### `environments ingress show`
|
|
424
440
|
|
|
@@ -448,6 +464,53 @@ Require visitors to sign in to Temps, or stop requiring it
|
|
|
448
464
|
| `--no-require-login` | Visitors do not need to sign in | - | No |
|
|
449
465
|
| `--json` | Output in JSON format | - | No |
|
|
450
466
|
|
|
467
|
+
#### `environments ingress delete-connector`
|
|
468
|
+
|
|
469
|
+
Delete a tunnel at the provider and unpublish every hostname it carries
|
|
470
|
+
|
|
471
|
+
**Usage:** `environments ingress delete-connector <id> [options]`
|
|
472
|
+
|
|
473
|
+
**Options:**
|
|
474
|
+
|
|
475
|
+
| Flag | Description | Default | Required |
|
|
476
|
+
|------|-------------|---------|----------|
|
|
477
|
+
| `-y, --yes` | Do not ask for confirmation | - | No |
|
|
478
|
+
| `--json` | Output in JSON format | - | No |
|
|
479
|
+
|
|
480
|
+
#### `environments ingress get-connector`
|
|
481
|
+
|
|
482
|
+
Get one tunnel
|
|
483
|
+
|
|
484
|
+
**Usage:** `environments ingress get-connector <id> [options]`
|
|
485
|
+
|
|
486
|
+
**Options:**
|
|
487
|
+
|
|
488
|
+
| Flag | Description | Default | Required |
|
|
489
|
+
|------|-------------|---------|----------|
|
|
490
|
+
| `--json` | Output in JSON format | - | No |
|
|
491
|
+
|
|
492
|
+
#### `environments ingress retry-hostname-dns`
|
|
493
|
+
|
|
494
|
+
Retry DNS setup for a failed hostname publication on its current tunnel
|
|
495
|
+
|
|
496
|
+
**Usage:** `environments ingress retry-hostname-dns <id> <hostname> [options]`
|
|
497
|
+
|
|
498
|
+
**Options:**
|
|
499
|
+
|
|
500
|
+
| Flag | Description | Default | Required |
|
|
501
|
+
|------|-------------|---------|----------|
|
|
502
|
+
| `--json` | Output in JSON format | - | No |
|
|
503
|
+
|
|
504
|
+
#### `environments ingress list-providers`
|
|
505
|
+
|
|
506
|
+
List the tunnel providers this control plane offers
|
|
507
|
+
|
|
508
|
+
**Options:**
|
|
509
|
+
|
|
510
|
+
| Flag | Description | Default | Required |
|
|
511
|
+
|------|-------------|---------|----------|
|
|
512
|
+
| `--json` | Output in JSON format | - | No |
|
|
513
|
+
|
|
451
514
|
### `environments crons`
|
|
452
515
|
|
|
453
516
|
Manage cron jobs
|
|
@@ -498,3 +561,385 @@ Show cron job execution history
|
|
|
498
561
|
| `--page <page>` | Page number | `1` | No |
|
|
499
562
|
| `--per-page <count>` | Items per page | `20` | No |
|
|
500
563
|
| `--json` | Output in JSON format | - | No |
|
|
564
|
+
|
|
565
|
+
### `environments reachability`
|
|
566
|
+
|
|
567
|
+
Reachability commands
|
|
568
|
+
|
|
569
|
+
**Subcommands:**
|
|
570
|
+
|
|
571
|
+
- `get-certificate-methods` - Which ways to give a domain HTTPS work here
|
|
572
|
+
- `check-cloudflare-token` - Check which permissions a pasted Cloudflare API token has
|
|
573
|
+
- `get-connector-hosts` - What a tunnel publishes for environments, or would once turned on
|
|
574
|
+
- `set-connector-hosts` - Turn a tunnel's environment hosts on or off
|
|
575
|
+
- `get` - Whether visitors can reach each address of an environment
|
|
576
|
+
- `apply` - Carry out one option of a stored plan
|
|
577
|
+
- `get-choices` - Which audiences, and which ways in, can work for an environment
|
|
578
|
+
- `plan` - What *Make it reachable* would do for an address
|
|
579
|
+
- `list-runs` - The newest runs of an environment
|
|
580
|
+
- `get-run` - One run, with the progress of each step and what it created
|
|
581
|
+
- `decide-conflict` - Answer a conflict: a DNS record someone else changed while the run was setting it, or after it did (ADR..
|
|
582
|
+
- `resume-run` - Carry on a waiting or interrupted run from its first step not done
|
|
583
|
+
- `undo-run` - Remove exactly what a run created, newest first
|
|
584
|
+
- `get-preview-domain-status` - Whether the preview domain can be reached
|
|
585
|
+
|
|
586
|
+
#### `environments reachability get-certificate-methods`
|
|
587
|
+
|
|
588
|
+
Which ways to give a domain HTTPS work here
|
|
589
|
+
|
|
590
|
+
**Options:**
|
|
591
|
+
|
|
592
|
+
| Flag | Description | Default | Required |
|
|
593
|
+
|------|-------------|---------|----------|
|
|
594
|
+
| `--domain <value>` | The domain to judge, such as 'my-app.example.com' or '*.example.com' | - | No |
|
|
595
|
+
| `--json` | Output in JSON format | - | No |
|
|
596
|
+
|
|
597
|
+
#### `environments reachability check-cloudflare-token`
|
|
598
|
+
|
|
599
|
+
Check which permissions a pasted Cloudflare API token has
|
|
600
|
+
|
|
601
|
+
**Options:**
|
|
602
|
+
|
|
603
|
+
| Flag | Description | Default | Required |
|
|
604
|
+
|------|-------------|---------|----------|
|
|
605
|
+
| `--hostname <value>` | A hostname the token is meant to serve, when the zone is not known: the longest zone the token reaches... | - | No |
|
|
606
|
+
| `--token-stdin` | The token, as pasted [required] (read from stdin) | - | No |
|
|
607
|
+
| `--token-file <path>` | The token, as pasted [required] (read from a file) | - | No |
|
|
608
|
+
| `--zone <value>` | The zone the token is meant for | - | No |
|
|
609
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
610
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
611
|
+
| `--json` | Output in JSON format | - | No |
|
|
612
|
+
|
|
613
|
+
#### `environments reachability get-connector-hosts`
|
|
614
|
+
|
|
615
|
+
What a tunnel publishes for environments, or would once turned on
|
|
616
|
+
|
|
617
|
+
**Usage:** `environments reachability get-connector-hosts <id> [options]`
|
|
618
|
+
|
|
619
|
+
**Options:**
|
|
620
|
+
|
|
621
|
+
| Flag | Description | Default | Required |
|
|
622
|
+
|------|-------------|---------|----------|
|
|
623
|
+
| `--json` | Output in JSON format | - | No |
|
|
624
|
+
|
|
625
|
+
#### `environments reachability set-connector-hosts`
|
|
626
|
+
|
|
627
|
+
Turn a tunnel's environment hosts on or off
|
|
628
|
+
|
|
629
|
+
**Usage:** `environments reachability set-connector-hosts <id> [options]`
|
|
630
|
+
|
|
631
|
+
**Options:**
|
|
632
|
+
|
|
633
|
+
| Flag | Description | Default | Required |
|
|
634
|
+
|------|-------------|---------|----------|
|
|
635
|
+
| `--confirm <value>` | The 'confirm_token' of the list that was shown and accepted: turning on publishes every host in it,... | - | No |
|
|
636
|
+
| `--enabled` | Body field enabled [required] | - | No |
|
|
637
|
+
| `--no-enabled` | Set enabled to false | - | No |
|
|
638
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
639
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
640
|
+
| `--json` | Output in JSON format | - | No |
|
|
641
|
+
|
|
642
|
+
#### `environments reachability get`
|
|
643
|
+
|
|
644
|
+
Whether visitors can reach each address of an environment
|
|
645
|
+
|
|
646
|
+
**Usage:** `environments reachability get <environment-id> [options]`
|
|
647
|
+
|
|
648
|
+
**Options:**
|
|
649
|
+
|
|
650
|
+
| Flag | Description | Default | Required |
|
|
651
|
+
|------|-------------|---------|----------|
|
|
652
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
653
|
+
| `--json` | Output in JSON format | - | No |
|
|
654
|
+
|
|
655
|
+
#### `environments reachability apply`
|
|
656
|
+
|
|
657
|
+
Carry out one option of a stored plan
|
|
658
|
+
|
|
659
|
+
**Usage:** `environments reachability apply <environment-id> [options]`
|
|
660
|
+
|
|
661
|
+
**Options:**
|
|
662
|
+
|
|
663
|
+
| Flag | Description | Default | Required |
|
|
664
|
+
|------|-------------|---------|----------|
|
|
665
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
666
|
+
| `--answers <json>` | Answers to the option's fields by key. 'address', when given, must be the plan's; 'dns_provider_id' takes... (JSON) | - | No |
|
|
667
|
+
| `--confirmed` | The user saw and accepted the option's 'confirmation' | - | No |
|
|
668
|
+
| `--no-confirmed` | Set confirmed to false | - | No |
|
|
669
|
+
| `--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 |
|
|
670
|
+
| `--plan-id <value>` | The plan this acts on, from 'POST …/reachability/plan' [required] | - | No |
|
|
671
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
672
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
673
|
+
| `--json` | Output in JSON format | - | No |
|
|
674
|
+
|
|
675
|
+
#### `environments reachability get-choices`
|
|
676
|
+
|
|
677
|
+
Which audiences, and which ways in, can work for an environment
|
|
678
|
+
|
|
679
|
+
**Usage:** `environments reachability get-choices <environment-id> [options]`
|
|
680
|
+
|
|
681
|
+
**Options:**
|
|
682
|
+
|
|
683
|
+
| Flag | Description | Default | Required |
|
|
684
|
+
|------|-------------|---------|----------|
|
|
685
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
686
|
+
| `--json` | Output in JSON format | - | No |
|
|
687
|
+
|
|
688
|
+
#### `environments reachability plan`
|
|
689
|
+
|
|
690
|
+
What *Make it reachable* would do for an address
|
|
691
|
+
|
|
692
|
+
**Usage:** `environments reachability plan <environment-id> [options]`
|
|
693
|
+
|
|
694
|
+
**Options:**
|
|
695
|
+
|
|
696
|
+
| Flag | Description | Default | Required |
|
|
697
|
+
|------|-------------|---------|----------|
|
|
698
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
699
|
+
| `--address <value>` | The hostname to make reachable; Temps suggests one without it | - | No |
|
|
700
|
+
| `--audience <value>` | Who an address is for (one of: public, private, signed_in, tailnet_users, unsupported) | - | No |
|
|
701
|
+
| `--gate <value>` | Which gate an address has (D7) (one of: temps, cloudflare_access, unsupported) | - | No |
|
|
702
|
+
| `--principals <json>` | For 'tailnet_users': the tailnet logins and tags it admits (ADR 065 D6) (JSON) | - | No |
|
|
703
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
704
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
705
|
+
| `--json` | Output in JSON format | - | No |
|
|
706
|
+
|
|
707
|
+
#### `environments reachability list-runs`
|
|
708
|
+
|
|
709
|
+
The newest runs of an environment
|
|
710
|
+
|
|
711
|
+
**Usage:** `environments reachability list-runs <environment-id> [options]`
|
|
712
|
+
|
|
713
|
+
**Options:**
|
|
714
|
+
|
|
715
|
+
| Flag | Description | Default | Required |
|
|
716
|
+
|------|-------------|---------|----------|
|
|
717
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
718
|
+
| `--json` | Output in JSON format | - | No |
|
|
719
|
+
|
|
720
|
+
#### `environments reachability get-run`
|
|
721
|
+
|
|
722
|
+
One run, with the progress of each step and what it created
|
|
723
|
+
|
|
724
|
+
**Usage:** `environments reachability get-run <environment-id> <run-id> [options]`
|
|
725
|
+
|
|
726
|
+
**Options:**
|
|
727
|
+
|
|
728
|
+
| Flag | Description | Default | Required |
|
|
729
|
+
|------|-------------|---------|----------|
|
|
730
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
731
|
+
| `--json` | Output in JSON format | - | No |
|
|
732
|
+
|
|
733
|
+
#### `environments reachability decide-conflict`
|
|
734
|
+
|
|
735
|
+
Answer a conflict: a DNS record someone else changed while the run was setting it, or after it did (ADR..
|
|
736
|
+
|
|
737
|
+
**Usage:** `environments reachability decide-conflict <environment-id> <run-id> [options]`
|
|
738
|
+
|
|
739
|
+
**Options:**
|
|
740
|
+
|
|
741
|
+
| Flag | Description | Default | Required |
|
|
742
|
+
|------|-------------|---------|----------|
|
|
743
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
744
|
+
| `--decision <value>` | A user's answer to a conflict (ADR 064 D4), journaled with the entry (one of: keep, overwrite) [required] | - | No |
|
|
745
|
+
| `--key <value>` | The journal entry in conflict [required] | - | No |
|
|
746
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
747
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
748
|
+
| `--json` | Output in JSON format | - | No |
|
|
749
|
+
|
|
750
|
+
#### `environments reachability resume-run`
|
|
751
|
+
|
|
752
|
+
Carry on a waiting or interrupted run from its first step not done
|
|
753
|
+
|
|
754
|
+
**Usage:** `environments reachability resume-run <environment-id> <run-id> [options]`
|
|
755
|
+
|
|
756
|
+
**Options:**
|
|
757
|
+
|
|
758
|
+
| Flag | Description | Default | Required |
|
|
759
|
+
|------|-------------|---------|----------|
|
|
760
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
761
|
+
| `--answers <json>` | 'cloudflare_api_token', when the run had not saved the account yet (JSON) | - | No |
|
|
762
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
763
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
764
|
+
| `--json` | Output in JSON format | - | No |
|
|
765
|
+
|
|
766
|
+
#### `environments reachability undo-run`
|
|
767
|
+
|
|
768
|
+
Remove exactly what a run created, newest first
|
|
769
|
+
|
|
770
|
+
**Usage:** `environments reachability undo-run <environment-id> <run-id> [options]`
|
|
771
|
+
|
|
772
|
+
**Options:**
|
|
773
|
+
|
|
774
|
+
| Flag | Description | Default | Required |
|
|
775
|
+
|------|-------------|---------|----------|
|
|
776
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
777
|
+
| `--json` | Output in JSON format | - | No |
|
|
778
|
+
|
|
779
|
+
#### `environments reachability get-preview-domain-status`
|
|
780
|
+
|
|
781
|
+
Whether the preview domain can be reached
|
|
782
|
+
|
|
783
|
+
**Options:**
|
|
784
|
+
|
|
785
|
+
| Flag | Description | Default | Required |
|
|
786
|
+
|------|-------------|---------|----------|
|
|
787
|
+
| `--json` | Output in JSON format | - | No |
|
|
788
|
+
|
|
789
|
+
### `environments create-ingress-login-grant`
|
|
790
|
+
|
|
791
|
+
Create ingress login grant
|
|
792
|
+
|
|
793
|
+
**Options:**
|
|
794
|
+
|
|
795
|
+
| Flag | Description | Default | Required |
|
|
796
|
+
|------|-------------|---------|----------|
|
|
797
|
+
| `--host <value>` | The hostname, without a port [required] | - | No |
|
|
798
|
+
| `--next <value>` | Path on the host to return to | - | No |
|
|
799
|
+
| `--owner-id <n>` | Body field owner_id [required] | - | No |
|
|
800
|
+
| `--owner-kind <value>` | 'environment' or 'sandbox' (a sandbox preview host) [required] | - | No |
|
|
801
|
+
| `--port <n>` | The port the visitor reached the host on, when the proxy's request carries one (it leaves out the scheme's... | - | No |
|
|
802
|
+
| `--scheme <value>` | 'http' or 'https': how the visitor reached the host [required] | - | No |
|
|
803
|
+
| `--sig <value>` | Body field sig [required] | - | No |
|
|
804
|
+
| `--ts <n>` | Unix seconds the proxy signed the request at [required] | - | No |
|
|
805
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
806
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
807
|
+
| `--json` | Output in JSON format | - | No |
|
|
808
|
+
|
|
809
|
+
### `environments sleep`
|
|
810
|
+
|
|
811
|
+
Sleep an on-demand environment
|
|
812
|
+
|
|
813
|
+
**Usage:** `environments sleep <env-id> [options]`
|
|
814
|
+
|
|
815
|
+
**Options:**
|
|
816
|
+
|
|
817
|
+
| Flag | Description | Default | Required |
|
|
818
|
+
|------|-------------|---------|----------|
|
|
819
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
820
|
+
| `--json` | Output in JSON format | - | No |
|
|
821
|
+
|
|
822
|
+
### `environments wake`
|
|
823
|
+
|
|
824
|
+
Wake a sleeping on-demand environment
|
|
825
|
+
|
|
826
|
+
**Usage:** `environments wake <env-id> [options]`
|
|
827
|
+
|
|
828
|
+
**Options:**
|
|
829
|
+
|
|
830
|
+
| Flag | Description | Default | Required |
|
|
831
|
+
|------|-------------|---------|----------|
|
|
832
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
833
|
+
| `--json` | Output in JSON format | - | No |
|
|
834
|
+
|
|
835
|
+
### `environments health`
|
|
836
|
+
|
|
837
|
+
Health commands
|
|
838
|
+
|
|
839
|
+
**Subcommands:**
|
|
840
|
+
|
|
841
|
+
- `get-runtime` - Get runtime health
|
|
842
|
+
- `update-runtime` - Update runtime health
|
|
843
|
+
- `get-project-runtime-health` - Get project runtime health
|
|
844
|
+
|
|
845
|
+
#### `environments health get-runtime`
|
|
846
|
+
|
|
847
|
+
Get runtime health
|
|
848
|
+
|
|
849
|
+
**Usage:** `environments health get-runtime <environment-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 health update-runtime`
|
|
859
|
+
|
|
860
|
+
Update runtime health
|
|
861
|
+
|
|
862
|
+
**Usage:** `environments health update-runtime <environment-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
|
+
| `--enabled` | Body field enabled [required] | - | No |
|
|
870
|
+
| `--no-enabled` | Set enabled to false | - | No |
|
|
871
|
+
| `--paused` | Body field paused [required] | - | No |
|
|
872
|
+
| `--no-paused` | Set paused to false | - | No |
|
|
873
|
+
| `--required-healthy <n>` | Body field required_healthy | - | No |
|
|
874
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
875
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
876
|
+
| `--json` | Output in JSON format | - | No |
|
|
877
|
+
|
|
878
|
+
#### `environments health get-project-runtime-health`
|
|
879
|
+
|
|
880
|
+
Get project runtime health
|
|
881
|
+
|
|
882
|
+
**Options:**
|
|
883
|
+
|
|
884
|
+
| Flag | Description | Default | Required |
|
|
885
|
+
|------|-------------|---------|----------|
|
|
886
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
887
|
+
| `--json` | Output in JSON format | - | No |
|
|
888
|
+
|
|
889
|
+
### `environments settings`
|
|
890
|
+
|
|
891
|
+
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
|
|
892
|
+
|
|
893
|
+
**Usage:** `environments settings <env-id> [options]`
|
|
894
|
+
|
|
895
|
+
**Options:**
|
|
896
|
+
|
|
897
|
+
| Flag | Description | Default | Required |
|
|
898
|
+
|------|-------------|---------|----------|
|
|
899
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
900
|
+
| `--branch <value>` | Branch this environment deploys | - | No |
|
|
901
|
+
| `--automatic-deploy` | Deploy automatically on push | - | No |
|
|
902
|
+
| `--no-automatic-deploy` | Set automatic_deploy to false | - | No |
|
|
903
|
+
| `--protected` | Never deploy this environment automatically from a push | - | No |
|
|
904
|
+
| `--no-protected` | Set protected to false | - | No |
|
|
905
|
+
| `--replicas <n>` | Container replicas | - | No |
|
|
906
|
+
| `--cpu-limit <n>` | CPU limit per container, in microcores | - | No |
|
|
907
|
+
| `--cpu-request <n>` | CPU reserved per container, in microcores | - | No |
|
|
908
|
+
| `--memory-limit <n>` | Memory limit per container, in MB | - | No |
|
|
909
|
+
| `--memory-request <n>` | Memory reserved per container, in MB | - | No |
|
|
910
|
+
| `--exposed-port <n>` | Port the container listens on (overrides the project's) | - | No |
|
|
911
|
+
| `--anti-affinity` | Spread replicas across different nodes | - | No |
|
|
912
|
+
| `--no-anti-affinity` | Set anti_affinity to false | - | No |
|
|
913
|
+
| `--target-nodes <n>` | Only deploy to this node ID (repeatable) (repeatable) | - | No |
|
|
914
|
+
| `--target-labels <json>` | Only deploy to nodes with these labels, as JSON, e.g. {"region":"eu"} (JSON) | - | No |
|
|
915
|
+
| `--build-location <value>` | Where a source deployment's image is built (one of: control_plane, node, ci) | - | No |
|
|
916
|
+
| `--cross-architecture-builds` | Build one image per architecture the eligible nodes run | - | No |
|
|
917
|
+
| `--no-cross-architecture-builds` | Set cross_architecture_builds to false | - | No |
|
|
918
|
+
| `--on-demand` | Start containers on the first request and stop them when idle | - | No |
|
|
919
|
+
| `--no-on-demand` | Set on_demand to false | - | No |
|
|
920
|
+
| `--idle-timeout-seconds <n>` | Idle seconds (60-86400) before an on-demand environment stops | - | No |
|
|
921
|
+
| `--wake-timeout-seconds <n>` | Seconds (5-120) to wait for an on-demand environment to wake | - | No |
|
|
922
|
+
| `--health <json>` | Health check settings as JSON, e.g. {"path":"/healthz"} (JSON) | - | No |
|
|
923
|
+
| `--health-check-timeout-seconds <n>` | Seconds (30-3600) a new deployment's containers get to become ready | - | No |
|
|
924
|
+
| `--stop-timeout-seconds <n>` | Seconds (1-3600) the previous deployment gets to finish in-flight requests | - | No |
|
|
925
|
+
| `--load-balancing <json>` | Load balancing settings as JSON (JSON) | - | No |
|
|
926
|
+
| `--max-concurrent-connections <n>` | Cap on concurrent requests to this environment's upstream (0 = unlimited) | - | No |
|
|
927
|
+
| `--request-timeout-seconds <n>` | HTTP request timeout, in seconds | - | No |
|
|
928
|
+
| `--sse-idle-timeout-seconds <n>` | Idle timeout of SSE streams, in seconds | - | No |
|
|
929
|
+
| `--websocket-idle-timeout-seconds <n>` | Idle timeout of WebSocket connections, in seconds | - | No |
|
|
930
|
+
| `--force-https` | Redirect HTTP to HTTPS | - | No |
|
|
931
|
+
| `--no-force-https` | Set force_https to false | - | No |
|
|
932
|
+
| `--password-stdin` | Password visitors must enter to open the environment (read from stdin) | - | No |
|
|
933
|
+
| `--password-file <path>` | Password visitors must enter to open the environment (read from a file) | - | No |
|
|
934
|
+
| `--security <json>` | Security settings (headers, rate limits) as JSON (JSON) | - | No |
|
|
935
|
+
| `--attack-mode` | Ask visitors to solve a CAPTCHA | - | No |
|
|
936
|
+
| `--no-attack-mode` | Set attack_mode to false | - | No |
|
|
937
|
+
| `--shield-mode <value>` | How Shield acts on its verdicts (one of: off, log, selective, attack) | - | No |
|
|
938
|
+
| `--shield-exempt-paths <value>` | Path Shield never challenges, e.g. /api/* (repeatable; replaces the list) (repeatable) | - | No |
|
|
939
|
+
| `--performance-metrics-enabled` | Collect web performance metrics | - | No |
|
|
940
|
+
| `--no-performance-metrics-enabled` | Set performance_metrics_enabled to false | - | No |
|
|
941
|
+
| `--session-recording-enabled` | Record visitor sessions | - | No |
|
|
942
|
+
| `--no-session-recording-enabled` | Set session_recording_enabled to false | - | No |
|
|
943
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
944
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
945
|
+
| `--json` | Output in JSON format | - | No |
|