@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.
Files changed (73) hide show
  1. package/dist/index.js +104770 -87351
  2. package/dist/skills/temps/SKILL.md +6 -3
  3. package/dist/skills/temps/evals/evals.json +38 -0
  4. package/dist/skills/temps/howtos/agent-handoff.md +106 -0
  5. package/dist/skills/temps/howtos/install-temps.md +151 -0
  6. package/dist/skills/temps/references/commands/INDEX.md +7 -0
  7. package/dist/skills/temps/references/commands/agents.md +731 -0
  8. package/dist/skills/temps/references/commands/ai.md +2636 -11
  9. package/dist/skills/temps/references/commands/alarms.md +125 -0
  10. package/dist/skills/temps/references/commands/analytics.md +1001 -3
  11. package/dist/skills/temps/references/commands/apikeys.md +48 -1
  12. package/dist/skills/temps/references/commands/audit.md +1 -0
  13. package/dist/skills/temps/references/commands/backups.md +306 -0
  14. package/dist/skills/temps/references/commands/blob.md +169 -0
  15. package/dist/skills/temps/references/commands/cloud.md +59 -0
  16. package/dist/skills/temps/references/commands/cluster.md +223 -0
  17. package/dist/skills/temps/references/commands/containers.md +45 -0
  18. package/dist/skills/temps/references/commands/custom-domains.md +32 -0
  19. package/dist/skills/temps/references/commands/data.md +1 -0
  20. package/dist/skills/temps/references/commands/deploy-image.md +3 -1
  21. package/dist/skills/temps/references/commands/deploy-local-image.md +3 -0
  22. package/dist/skills/temps/references/commands/deployments.md +559 -0
  23. package/dist/skills/temps/references/commands/dns-provider.md +63 -0
  24. package/dist/skills/temps/references/commands/domains.md +104 -0
  25. package/dist/skills/temps/references/commands/email-domains.md +1 -0
  26. package/dist/skills/temps/references/commands/email-providers.md +59 -1
  27. package/dist/skills/temps/references/commands/emails.md +91 -0
  28. package/dist/skills/temps/references/commands/environments.md +483 -2
  29. package/dist/skills/temps/references/commands/errors.md +563 -3
  30. package/dist/skills/temps/references/commands/flags.md +76 -0
  31. package/dist/skills/temps/references/commands/funnels.md +22 -2
  32. package/dist/skills/temps/references/commands/incidents.md +18 -0
  33. package/dist/skills/temps/references/commands/ingress.md +26 -0
  34. package/dist/skills/temps/references/commands/ip-access.md +96 -1
  35. package/dist/skills/temps/references/commands/kv.md +184 -0
  36. package/dist/skills/temps/references/commands/load-balancer.md +2 -0
  37. package/dist/skills/temps/references/commands/login.md +4 -1
  38. package/dist/skills/temps/references/commands/logs.md +272 -0
  39. package/dist/skills/temps/references/commands/mcp.md +14 -1
  40. package/dist/skills/temps/references/commands/migrate.md +17 -0
  41. package/dist/skills/temps/references/commands/monitors.md +386 -0
  42. package/dist/skills/temps/references/commands/network-policy.md +27 -0
  43. package/dist/skills/temps/references/commands/nodes.md +155 -2
  44. package/dist/skills/temps/references/commands/notifications.md +149 -0
  45. package/dist/skills/temps/references/commands/otel.md +438 -0
  46. package/dist/skills/temps/references/commands/platform.md +64 -0
  47. package/dist/skills/temps/references/commands/plugin.md +76 -0
  48. package/dist/skills/temps/references/commands/preview-gateway.md +91 -0
  49. package/dist/skills/temps/references/commands/project-groups.md +31 -0
  50. package/dist/skills/temps/references/commands/projects.md +453 -6
  51. package/dist/skills/temps/references/commands/providers.md +519 -0
  52. package/dist/skills/temps/references/commands/proxy-logs.md +111 -0
  53. package/dist/skills/temps/references/commands/revenue.md +219 -0
  54. package/dist/skills/temps/references/commands/sandbox.md +732 -9
  55. package/dist/skills/temps/references/commands/secrets.md +3 -0
  56. package/dist/skills/temps/references/commands/server.md +107 -0
  57. package/dist/skills/temps/references/commands/services.md +831 -5
  58. package/dist/skills/temps/references/commands/settings.md +384 -0
  59. package/dist/skills/temps/references/commands/shield.md +354 -0
  60. package/dist/skills/temps/references/commands/start.md +1 -0
  61. package/dist/skills/temps/references/commands/status-pages.md +103 -3
  62. package/dist/skills/temps/references/commands/teams.md +14 -0
  63. package/dist/skills/temps/references/commands/templates.md +14 -0
  64. package/dist/skills/temps/references/commands/tokens.md +106 -0
  65. package/dist/skills/temps/references/commands/traces.md +149 -0
  66. package/dist/skills/temps/references/commands/tunnels.md +2 -0
  67. package/dist/skills/temps/references/commands/users.md +111 -0
  68. package/dist/skills/temps/references/commands/vault.md +662 -0
  69. package/dist/skills/temps/references/commands/webhooks.md +4 -0
  70. package/dist/skills/temps/references/commands/workflows.md +347 -0
  71. package/dist/skills/temps/scripts/generate_command_references.py +5 -3
  72. package/dist/skills/temps/scripts/test_generate_command_references.py +3 -1
  73. package/package.json +3 -2
@@ -6,10 +6,10 @@ Apply [the CLI runtime and safety contract](../cli-runtime.md) before executing
6
6
 
7
7
  ## Contents
8
8
 
9
- - [`services list`](#services-list)
10
- - [`services create`](#services-create)
9
+ - [`services list`](#services-list-alias-ls)
10
+ - [`services create`](#services-create-alias-add)
11
11
  - [`services show`](#services-show)
12
- - [`services remove`](#services-remove)
12
+ - [`services remove`](#services-remove-alias-rm)
13
13
  - [`services start`](#services-start)
14
14
  - [`services stop`](#services-stop)
15
15
  - [`services types`](#services-types)
@@ -39,6 +39,49 @@ Apply [the CLI runtime and safety contract](../cli-runtime.md) before executing
39
39
  - [`services import-data-run`](#services-import-data-run)
40
40
  - [`services import-data-cancel`](#services-import-data-cancel)
41
41
  - [`services wal-health`](#services-wal-health)
42
+ - [`services list-available-containers`](#services-list-available-containers)
43
+ - [`services list-health-statuses`](#services-list-health-statuses)
44
+ - [`services get-healthcheck-defaults`](#services-get-healthcheck-defaults)
45
+ - [`services update-healthcheck-defaults`](#services-update-healthcheck-defaults)
46
+ - [`services list-project-services`](#services-list-project-services)
47
+ - [`services get-environment-variables`](#services-get-environment-variables)
48
+ - [`services get-providers-metadata`](#services-get-providers-metadata)
49
+ - [`services get-provider-metadata`](#services-get-provider-metadata)
50
+ - [`services get-cluster-health`](#services-get-cluster-health)
51
+ - [`services reveal-environment-variables`](#services-reveal-environment-variables)
52
+ - [`services trigger-health-check`](#services-trigger-health-check)
53
+ - [`services get-health-status`](#services-get-health-status)
54
+ - [`services get-healthcheck`](#services-get-healthcheck)
55
+ - [`services update-healthcheck`](#services-update-healthcheck)
56
+ - [`services apply-healthcheck`](#services-apply-healthcheck)
57
+ - [`services get-log-ingestion`](#services-get-log-ingestion)
58
+ - [`services update-log-ingestion`](#services-update-log-ingestion)
59
+ - [`services add-cluster-member`](#services-add-cluster-member)
60
+ - [`services remove-cluster-member`](#services-remove-cluster-member)
61
+ - [`services get-cluster-member`](#services-get-cluster-member)
62
+ - [`services promote-cluster-member`](#services-promote-cluster-member)
63
+ - [`services migrate-s3`](#services-migrate-s3)
64
+ - [`services reveal-parameter`](#services-reveal-parameter)
65
+ - [`services get-preview-environment-variables-masked`](#services-get-preview-environment-variables-masked)
66
+ - [`services get-preview-environment-variable-names`](#services-get-preview-environment-variable-names)
67
+ - [`services issue-runtime-credentials`](#services-issue-runtime-credentials)
68
+ - [`services update-resources`](#services-update-resources)
69
+ - [`services retry-cluster`](#services-retry-cluster)
70
+ - [`services get-runtime`](#services-get-runtime)
71
+ - [`services get-stats`](#services-get-stats)
72
+ - [`services get-tls`](#services-get-tls)
73
+ - [`services restored-databases`](#services-restored-databases)
74
+ - [`services set-link-database`](#services-set-link-database)
75
+ - [`services update-tls`](#services-update-tls)
76
+ - [`services get-managed-ca-certificate`](#services-get-managed-ca-certificate)
77
+ - [`services test-wal-archive-target`](#services-test-wal-archive-target)
78
+ - [`services get-workload-mode`](#services-get-workload-mode)
79
+ - [`services update-workload-mode`](#services-update-workload-mode)
80
+ - [`services get-workload-pending-changes`](#services-get-workload-pending-changes)
81
+ - [`services recreate-from-workload-spec`](#services-recreate-from-workload-spec)
82
+ - [`services external-reset-pg-stat-statements`](#services-external-reset-pg-stat-statements)
83
+ - [`services query`](#services-query)
84
+ - [`services pg-upgrade`](#services-pg-upgrade)
42
85
 
43
86
  ## `services` (alias: `svc`)
44
87
 
@@ -79,6 +122,49 @@ Manage external services (databases, caches, storage)
79
122
  - `import-data-run` - Show one data import: outcome, phase, timings, who started it and the transfer output
80
123
  - `import-data-cancel` - Cancel a running data import (refused once the data has been copied)
81
124
  - `wal-health` - Probe a PostgreSQL service's WAL / archive_command health right now (archiver failures, backlog, stale replication slots) — diagnoses "Cloud backup mirror unavailable ... check that PostgreSQL's archive_command is succeeding" warnings
125
+ - `list-available-containers` - List available Docker containers that can be imported as services
126
+ - `list-health-statuses` - Current health status for many services at once
127
+ - `get-healthcheck-defaults` - Get the instance-wide default healthcheck of managed service containers
128
+ - `update-healthcheck-defaults` - Replace the instance-wide default healthcheck of managed service containers
129
+ - `list-project-services` - List services linked to a project
130
+ - `get-environment-variables` - Get all environment variables for all services linked to a project
131
+ - `get-providers-metadata` - Get provider metadata (display names, icons, descriptions)
132
+ - `get-provider-metadata` - Get metadata for a specific provider
133
+ - `get-cluster-health` - Per-member health for a Postgres HA cluster
134
+ - `reveal-environment-variables` - Reveal a service's basic environment variables in plaintext, before it is linked to any project
135
+ - `trigger-health-check` - Run a health check for one service right now
136
+ - `get-health-status` - Persisted health status for an external service
137
+ - `get-healthcheck` - Get a managed service's healthcheck
138
+ - `update-healthcheck` - Replace a managed service's healthcheck overrides
139
+ - `apply-healthcheck` - Recreate a managed service's container to apply its healthcheck now
140
+ - `get-log-ingestion` - Get this service's own container log ingestion budget
141
+ - `update-log-ingestion` - Replace this service's container log ingestion budget
142
+ - `add-cluster-member` - Begin adding a single new member to a running cluster
143
+ - `remove-cluster-member` - Remove a single member from a running cluster
144
+ - `get-cluster-member` - Get a single cluster member's current state
145
+ - `promote-cluster-member` - Promote a replica to primary by triggering a pg_auto_failover failover
146
+ - `migrate-s3` - Copy every bucket of another managed S3 service into this one
147
+ - `reveal-parameter` - Reveal one sensitive service parameter
148
+ - `get-preview-environment-variables-masked` - Get environment variables preview with masked sensitive values
149
+ - `get-preview-environment-variable-names` - Get environment variable names preview (safe - no sensitive values)
150
+ - `issue-runtime-credentials` - Issue live connection credentials for a service in an environment
151
+ - `update-resources` - Update a service's resource limits (memory, CPU caps)
152
+ - `retry-cluster` - Retry a failed cluster service initialization
153
+ - `get-runtime` - Inspect a service's container(s): status, restart count, OOM-killed flag, exit code, and the cgroup limits..
154
+ - `get-stats` - Sample current CPU/memory usage from each of a service's containers
155
+ - `get-tls` - Get service tls
156
+ - `restored-databases` - What the latest PostgreSQL restore brought back: its databases and users, which linked project reads each, and linked databases the backup does not have
157
+ - `set-link-database` - Change which database a linked project reads from this service, for example one a restore brought back. Its apps read it from their next deployment
158
+ - `update-tls` - Update service tls
159
+ - `get-managed-ca-certificate` - Get managed ca certificate
160
+ - `test-wal-archive-target` - Test wal archive target
161
+ - `get-workload-mode` - Get a database's workload mode (internal, operator-only)
162
+ - `update-workload-mode` - Change a database's workload mode (internal, operator-only)
163
+ - `get-workload-pending-changes` - List what a recreate from the workload spec would change (internal, operator-only)
164
+ - `recreate-from-workload-spec` - Recreate a database's container from its workload spec (internal, operator-only)
165
+ - `external-reset-pg-stat-statements` - Reset all statistics accumulated by 'pg_stat_statements' for a Postgres service
166
+ - `query` - Query commands
167
+ - `pg-upgrade` - Pg upgrade commands
82
168
 
83
169
  ### `services list` (alias: `ls`)
84
170
 
@@ -103,6 +189,9 @@ Create a new external service
103
189
  | `-s, --set <key=value>` | Set a parameter (repeatable) | `` | No |
104
190
  | `--backend <backend>` | S3 storage engine: rustfs (default) or garage (s3/blob only) | - | No |
105
191
  | `--bucket <name>` | Bucket to create (repeatable, s3/blob only; the first is S3_BUCKET) | `` | No |
192
+ | `--node <id>` | Worker node to run the service on (default: the control plane) | - | No |
193
+ | `--topology <topology>` | standalone (default) or cluster (highly available, several members) | - | No |
194
+ | `--member <role[@node]>` | With --topology cluster: a member, monitor, primary or replica, optionally on a node id (repeatable; exactly one monitor) | `` | No |
106
195
  | `-y, --yes` | Skip confirmation prompts (for automation) | - | No |
107
196
 
108
197
  ### `services show`
@@ -244,6 +333,9 @@ Link a service to a project
244
333
  |------|-------------|---------|----------|
245
334
  | `--id <id>` | Service ID | - | Yes |
246
335
  | `-p, --project <slug>` | Project slug (auto-detected from .temps/config.json) | - | No |
336
+ | `--database-mode <mode>` | Which database deployments get: project (one per project), project_environment (one per environment) or custom | - | No |
337
+ | `--database-name <name>` | With --database-mode custom: the exact database name | - | No |
338
+ | `--env-alias <APP_NAME=INJECTED_NAME>` | Also inject a variable under the name the app reads, e.g. DATABASE_URL=POSTGRES_URL (repeatable) | - | No |
247
339
 
248
340
  ### `services unlink`
249
341
 
@@ -374,7 +466,6 @@ Show a time-series range for a single metric
374
466
  | `--id <id>` | Service ID | - | Yes |
375
467
  | `-m, --metric <name>` | Metric name, e.g. "pg.connections_active" | - | Yes |
376
468
  | `-r, --range <window>` | Time window: 1h, 6h, 24h, 7d (default: 24h) | - | No |
377
- | `-p, --percentile <n>` | Histogram percentile (0-100) instead of a plain average | - | No |
378
469
  | `--json` | Output raw JSON instead of a formatted table | - | No |
379
470
 
380
471
  #### `services metrics status`
@@ -522,7 +613,10 @@ Restore a service from a backup (in-place, new service, or PITR)
522
613
  | Flag | Description | Default | Required |
523
614
  |------|-------------|---------|----------|
524
615
  | `--id <id>` | Source service ID (the service the backup came from) | - | Yes |
525
- | `--backup-id <id>` | Backup ID to restore from (see `list-backups`) | - | Yes |
616
+ | `--backup-id <id>` | Backup ID to restore from (see `list-backups`) | - | No |
617
+ | `--backup-location <s3-key>` | Instead of --backup-id: the S3 key of a backup this instance did not record (one found by an S3 scan, made by another Temps instance) | - | No |
618
+ | `--backup-engine <engine>` | With --backup-location: postgres, redis, mongodb or s3 | - | No |
619
+ | `--s3-source <id>` | With --backup-location: the S3 source the backup is in | - | No |
526
620
  | `--new-service [name]` | Clone into a new service. Omit the value or pass "auto" to accept the auto-suggested name. | - | No |
527
621
  | `--pitr <iso>` | Point-in-time recovery target, ISO 8601 timestamp (requires a PITR-capable backup). Combine with --new-service to route PITR into a new service. | - | No |
528
622
  | `--confirm-cross-service` | Confirm an in-place (or PITR in-place) restore of a backup produced by a different service. Required by the server for such restores; recorded in the audit log. | - | No |
@@ -530,6 +624,37 @@ Restore a service from a backup (in-place, new service, or PITR)
530
624
  | `--no-wait` | Return immediately without polling run status | - | No |
531
625
  | `--json` | Output in JSON format | - | No |
532
626
 
627
+ **Subcommands:**
628
+
629
+ - `plan` - Plan restore
630
+
631
+ #### `services restore plan`
632
+
633
+ Plan restore
634
+
635
+ **Usage:** `services restore plan <id> [options]`
636
+
637
+ **Options:**
638
+
639
+ | Flag | Description | Default | Required |
640
+ |------|-------------|---------|----------|
641
+ | `--mode <value>` | Body field mode (one of: in_place, new_service, pitr) [required] | - | No |
642
+ | `--name <value>` | Name for the new service | - | No |
643
+ | `--parameter-overrides <json>` | Optional parameter overrides (port, docker_image, database) (JSON) | - | No |
644
+ | `--new-service-name <value>` | Required when 'to_new_service' is true | - | No |
645
+ | `--target <json>` | Recovery target kind + value (JSON) | - | No |
646
+ | `--to-new-service` | Whether PITR restores in place or creates a new service | - | No |
647
+ | `--no-to-new-service` | Set to_new_service to false | - | No |
648
+ | `--backup-engine <value>` | Engine of the backup when specified by 'backup_location' ("postgres", "redis", "mongodb", "s3") | - | No |
649
+ | `--backup-id <n>` | DB id of the backup to restore from | - | No |
650
+ | `--backup-location <value>` | Raw S3 URL / key of the backup — used when restoring a backup discovered by S3 scan (i.e., produced by... | - | No |
651
+ | `--confirm-cross-service` | Explicit confirmation for a destructive cross-service restore | - | No |
652
+ | `--no-confirm-cross-service` | Set confirm_cross_service to false | - | No |
653
+ | `--s3-source-id <n>` | S3 source the 'backup_location' lives in | - | No |
654
+ | `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
655
+ | `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
656
+ | `--json` | Output in JSON format | - | No |
657
+
533
658
  ### `services restore-runs`
534
659
 
535
660
  List recent restore runs for a service
@@ -640,3 +765,704 @@ Probe a PostgreSQL service's WAL / archive_command health right now (archiver fa
640
765
  |------|-------------|---------|----------|
641
766
  | `--id <id>` | Service ID | - | Yes |
642
767
  | `--json` | Output in JSON format | - | No |
768
+
769
+ ### `services list-available-containers`
770
+
771
+ List available Docker containers that can be imported as services
772
+
773
+ **Options:**
774
+
775
+ | Flag | Description | Default | Required |
776
+ |------|-------------|---------|----------|
777
+ | `--json` | Output in JSON format | - | No |
778
+
779
+ ### `services list-health-statuses`
780
+
781
+ Current health status for many services at once
782
+
783
+ **Options:**
784
+
785
+ | Flag | Description | Default | Required |
786
+ |------|-------------|---------|----------|
787
+ | `--ids <value>` | Comma-separated service IDs | - | No |
788
+ | `--json` | Output in JSON format | - | No |
789
+
790
+ ### `services get-healthcheck-defaults`
791
+
792
+ Get the instance-wide default healthcheck of managed service containers
793
+
794
+ **Options:**
795
+
796
+ | Flag | Description | Default | Required |
797
+ |------|-------------|---------|----------|
798
+ | `--json` | Output in JSON format | - | No |
799
+
800
+ ### `services update-healthcheck-defaults`
801
+
802
+ Replace the instance-wide default healthcheck of managed service containers
803
+
804
+ **Options:**
805
+
806
+ | Flag | Description | Default | Required |
807
+ |------|-------------|---------|----------|
808
+ | `--interval-secs <n>` | Seconds between checks once healthy (5–3600) | - | No |
809
+ | `--retries <n>` | Consecutive failures that make the container unhealthy (1–10) | - | No |
810
+ | `--start-interval-secs <n>` | Seconds between checks while starting (1–60) | - | No |
811
+ | `--start-period-secs <n>` | Seconds after start during which failures do not count (0–600) | - | No |
812
+ | `--timeout-secs <n>` | Seconds one check may run (1–60, and shorter than the interval) | - | No |
813
+ | `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
814
+ | `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
815
+ | `--json` | Output in JSON format | - | No |
816
+
817
+ ### `services list-project-services`
818
+
819
+ List services linked to a project
820
+
821
+ **Options:**
822
+
823
+ | Flag | Description | Default | Required |
824
+ |------|-------------|---------|----------|
825
+ | `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
826
+ | `--page <n>` | Page number (1-indexed) | - | No |
827
+ | `--page-size <n>` | Number of items per page (max 100) | - | No |
828
+ | `--sort-by <value>` | Query parameter sort_by | - | No |
829
+ | `--sort-order <value>` | Query parameter sort_order | - | No |
830
+ | `--json` | Output in JSON format | - | No |
831
+
832
+ ### `services get-environment-variables`
833
+
834
+ Get all environment variables for all services linked to a project
835
+
836
+ **Options:**
837
+
838
+ | Flag | Description | Default | Required |
839
+ |------|-------------|---------|----------|
840
+ | `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
841
+ | `--json` | Output in JSON format | - | No |
842
+
843
+ ### `services get-providers-metadata`
844
+
845
+ Get provider metadata (display names, icons, descriptions)
846
+
847
+ **Options:**
848
+
849
+ | Flag | Description | Default | Required |
850
+ |------|-------------|---------|----------|
851
+ | `--json` | Output in JSON format | - | No |
852
+
853
+ ### `services get-provider-metadata`
854
+
855
+ Get metadata for a specific provider
856
+
857
+ **Usage:** `services get-provider-metadata <service-type> [options]`
858
+
859
+ **Options:**
860
+
861
+ | Flag | Description | Default | Required |
862
+ |------|-------------|---------|----------|
863
+ | `--json` | Output in JSON format | - | No |
864
+
865
+ ### `services get-cluster-health`
866
+
867
+ Per-member health for a Postgres HA cluster
868
+
869
+ **Usage:** `services get-cluster-health <id> [options]`
870
+
871
+ **Options:**
872
+
873
+ | Flag | Description | Default | Required |
874
+ |------|-------------|---------|----------|
875
+ | `--json` | Output in JSON format | - | No |
876
+
877
+ ### `services reveal-environment-variables`
878
+
879
+ Reveal a service's basic environment variables in plaintext, before it is linked to any project
880
+
881
+ **Usage:** `services reveal-environment-variables <id> [options]`
882
+
883
+ **Options:**
884
+
885
+ | Flag | Description | Default | Required |
886
+ |------|-------------|---------|----------|
887
+ | `--json` | Output in JSON format | - | No |
888
+
889
+ ### `services trigger-health-check`
890
+
891
+ Run a health check for one service right now
892
+
893
+ **Usage:** `services trigger-health-check <id> [options]`
894
+
895
+ **Options:**
896
+
897
+ | Flag | Description | Default | Required |
898
+ |------|-------------|---------|----------|
899
+ | `--json` | Output in JSON format | - | No |
900
+
901
+ ### `services get-health-status`
902
+
903
+ Persisted health status for an external service
904
+
905
+ **Usage:** `services get-health-status <id> [options]`
906
+
907
+ **Options:**
908
+
909
+ | Flag | Description | Default | Required |
910
+ |------|-------------|---------|----------|
911
+ | `--limit <n>` | Max number of recent checks (default 50, max 200) | - | No |
912
+ | `--json` | Output in JSON format | - | No |
913
+
914
+ ### `services get-healthcheck`
915
+
916
+ Get a managed service's healthcheck
917
+
918
+ **Usage:** `services get-healthcheck <id> [options]`
919
+
920
+ **Options:**
921
+
922
+ | Flag | Description | Default | Required |
923
+ |------|-------------|---------|----------|
924
+ | `--json` | Output in JSON format | - | No |
925
+
926
+ ### `services update-healthcheck`
927
+
928
+ Replace a managed service's healthcheck overrides
929
+
930
+ **Usage:** `services update-healthcheck <id> [options]`
931
+
932
+ **Options:**
933
+
934
+ | Flag | Description | Default | Required |
935
+ |------|-------------|---------|----------|
936
+ | `--interval-secs <n>` | Seconds between checks once healthy (5–3600) | - | No |
937
+ | `--retries <n>` | Consecutive failures that make the container unhealthy (1–10) | - | No |
938
+ | `--start-interval-secs <n>` | Seconds between checks while starting (1–60) | - | No |
939
+ | `--start-period-secs <n>` | Seconds after start during which failures do not count (0–600) | - | No |
940
+ | `--timeout-secs <n>` | Seconds one check may run (1–60, and shorter than the interval) | - | No |
941
+ | `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
942
+ | `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
943
+ | `--json` | Output in JSON format | - | No |
944
+
945
+ ### `services apply-healthcheck`
946
+
947
+ Recreate a managed service's container to apply its healthcheck now
948
+
949
+ **Usage:** `services apply-healthcheck <id> [options]`
950
+
951
+ **Options:**
952
+
953
+ | Flag | Description | Default | Required |
954
+ |------|-------------|---------|----------|
955
+ | `--json` | Output in JSON format | - | No |
956
+
957
+ ### `services get-log-ingestion`
958
+
959
+ Get this service's own container log ingestion budget
960
+
961
+ **Usage:** `services get-log-ingestion <id> [options]`
962
+
963
+ **Options:**
964
+
965
+ | Flag | Description | Default | Required |
966
+ |------|-------------|---------|----------|
967
+ | `--json` | Output in JSON format | - | No |
968
+
969
+ ### `services update-log-ingestion`
970
+
971
+ Replace this service's container log ingestion budget
972
+
973
+ **Usage:** `services update-log-ingestion <id> [options]`
974
+
975
+ **Options:**
976
+
977
+ | Flag | Description | Default | Required |
978
+ |------|-------------|---------|----------|
979
+ | `--log-ingest-kib-per-sec <n>` | KiB of log text per second per container (0–1,048,576). null = platform default | - | No |
980
+ | `--log-ingest-lines-per-sec <n>` | Lines per second per container (0–1,000,000). null = platform default | - | No |
981
+ | `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
982
+ | `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
983
+ | `--json` | Output in JSON format | - | No |
984
+
985
+ ### `services add-cluster-member`
986
+
987
+ Begin adding a single new member to a running cluster
988
+
989
+ **Usage:** `services add-cluster-member <id> [options]`
990
+
991
+ **Options:**
992
+
993
+ | Flag | Description | Default | Required |
994
+ |------|-------------|---------|----------|
995
+ | `--node-id <n>` | Target worker node ID | - | No |
996
+ | `--role <value>` | Member role [required] | - | No |
997
+ | `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
998
+ | `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
999
+ | `--json` | Output in JSON format | - | No |
1000
+
1001
+ ### `services remove-cluster-member`
1002
+
1003
+ Remove a single member from a running cluster
1004
+
1005
+ **Usage:** `services remove-cluster-member <id> <member-id> [options]`
1006
+
1007
+ **Options:**
1008
+
1009
+ | Flag | Description | Default | Required |
1010
+ |------|-------------|---------|----------|
1011
+ | `-y, --yes` | Do not ask for confirmation | - | No |
1012
+ | `--json` | Output in JSON format | - | No |
1013
+
1014
+ ### `services get-cluster-member`
1015
+
1016
+ Get a single cluster member's current state
1017
+
1018
+ **Usage:** `services get-cluster-member <id> <member-id> [options]`
1019
+
1020
+ **Options:**
1021
+
1022
+ | Flag | Description | Default | Required |
1023
+ |------|-------------|---------|----------|
1024
+ | `--json` | Output in JSON format | - | No |
1025
+
1026
+ ### `services promote-cluster-member`
1027
+
1028
+ Promote a replica to primary by triggering a pg_auto_failover failover
1029
+
1030
+ **Usage:** `services promote-cluster-member <id> <member-id> [options]`
1031
+
1032
+ **Options:**
1033
+
1034
+ | Flag | Description | Default | Required |
1035
+ |------|-------------|---------|----------|
1036
+ | `--json` | Output in JSON format | - | No |
1037
+
1038
+ ### `services migrate-s3`
1039
+
1040
+ Copy every bucket of another managed S3 service into this one
1041
+
1042
+ **Usage:** `services migrate-s3 <id> [options]`
1043
+
1044
+ **Options:**
1045
+
1046
+ | Flag | Description | Default | Required |
1047
+ |------|-------------|---------|----------|
1048
+ | `--source-service-id <n>` | Managed S3 service to copy from (RustFS or Garage) [required] | - | No |
1049
+ | `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
1050
+ | `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
1051
+ | `--json` | Output in JSON format | - | No |
1052
+
1053
+ ### `services reveal-parameter`
1054
+
1055
+ Reveal one sensitive service parameter
1056
+
1057
+ **Usage:** `services reveal-parameter <id> <param-name> [options]`
1058
+
1059
+ **Options:**
1060
+
1061
+ | Flag | Description | Default | Required |
1062
+ |------|-------------|---------|----------|
1063
+ | `--json` | Output in JSON format | - | No |
1064
+
1065
+ ### `services get-preview-environment-variables-masked`
1066
+
1067
+ Get environment variables preview with masked sensitive values
1068
+
1069
+ **Usage:** `services get-preview-environment-variables-masked <id> [options]`
1070
+
1071
+ **Options:**
1072
+
1073
+ | Flag | Description | Default | Required |
1074
+ |------|-------------|---------|----------|
1075
+ | `--json` | Output in JSON format | - | No |
1076
+
1077
+ ### `services get-preview-environment-variable-names`
1078
+
1079
+ Get environment variable names preview (safe - no sensitive values)
1080
+
1081
+ **Usage:** `services get-preview-environment-variable-names <id> [options]`
1082
+
1083
+ **Options:**
1084
+
1085
+ | Flag | Description | Default | Required |
1086
+ |------|-------------|---------|----------|
1087
+ | `--json` | Output in JSON format | - | No |
1088
+
1089
+ ### `services issue-runtime-credentials`
1090
+
1091
+ Issue live connection credentials for a service in an environment
1092
+
1093
+ **Usage:** `services issue-runtime-credentials <id> <environment-id> [options]`
1094
+
1095
+ **Options:**
1096
+
1097
+ | Flag | Description | Default | Required |
1098
+ |------|-------------|---------|----------|
1099
+ | `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
1100
+ | `--json` | Output in JSON format | - | No |
1101
+
1102
+ ### `services update-resources`
1103
+
1104
+ Update a service's resource limits (memory, CPU caps)
1105
+
1106
+ **Usage:** `services update-resources <id> [options]`
1107
+
1108
+ **Options:**
1109
+
1110
+ | Flag | Description | Default | Required |
1111
+ |------|-------------|---------|----------|
1112
+ | `--cpu-shares <n>` | Relative CPU weight (default 1024) | - | No |
1113
+ | `--memory-mb <n>` | Hard memory limit in MiB | - | No |
1114
+ | `--memory-swap-mb <n>` | Memory + swap limit in MiB | - | No |
1115
+ | `--nano-cpus <n>` | CPU quota in nano-cpus. 1_000_000_000 = 1 full CPU core | - | No |
1116
+ | `--shm-size-mb <n>` | Shared memory (/dev/shm) size in MiB | - | No |
1117
+ | `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
1118
+ | `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
1119
+ | `--json` | Output in JSON format | - | No |
1120
+
1121
+ ### `services retry-cluster`
1122
+
1123
+ Retry a failed cluster service initialization
1124
+
1125
+ **Usage:** `services retry-cluster <id> [options]`
1126
+
1127
+ **Options:**
1128
+
1129
+ | Flag | Description | Default | Required |
1130
+ |------|-------------|---------|----------|
1131
+ | `--members <json>` | Cluster member specifications (same format as create) (JSON) | - | No |
1132
+ | `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
1133
+ | `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
1134
+ | `--json` | Output in JSON format | - | No |
1135
+
1136
+ ### `services get-runtime`
1137
+
1138
+ Inspect a service's container(s): status, restart count, OOM-killed flag, exit code, and the cgroup limits..
1139
+
1140
+ **Usage:** `services get-runtime <id> [options]`
1141
+
1142
+ **Options:**
1143
+
1144
+ | Flag | Description | Default | Required |
1145
+ |------|-------------|---------|----------|
1146
+ | `--json` | Output in JSON format | - | No |
1147
+
1148
+ ### `services get-stats`
1149
+
1150
+ Sample current CPU/memory usage from each of a service's containers
1151
+
1152
+ **Usage:** `services get-stats <id> [options]`
1153
+
1154
+ **Options:**
1155
+
1156
+ | Flag | Description | Default | Required |
1157
+ |------|-------------|---------|----------|
1158
+ | `--json` | Output in JSON format | - | No |
1159
+
1160
+ ### `services get-tls`
1161
+
1162
+ Get service tls
1163
+
1164
+ **Usage:** `services get-tls <id> [options]`
1165
+
1166
+ **Options:**
1167
+
1168
+ | Flag | Description | Default | Required |
1169
+ |------|-------------|---------|----------|
1170
+ | `--json` | Output in JSON format | - | No |
1171
+
1172
+ ### `services restored-databases`
1173
+
1174
+ What the latest PostgreSQL restore brought back: its databases and users, which linked project reads each, and linked databases the backup does not have
1175
+
1176
+ **Usage:** `services restored-databases <id> [options]`
1177
+
1178
+ **Options:**
1179
+
1180
+ | Flag | Description | Default | Required |
1181
+ |------|-------------|---------|----------|
1182
+ | `--json` | Output in JSON format | - | No |
1183
+
1184
+ ### `services set-link-database`
1185
+
1186
+ Change which database a linked project reads from this service, for example one a restore brought back. Its apps read it from their next deployment
1187
+
1188
+ **Usage:** `services set-link-database <id> [options]`
1189
+
1190
+ **Options:**
1191
+
1192
+ | Flag | Description | Default | Required |
1193
+ |------|-------------|---------|----------|
1194
+ | `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
1195
+ | `--database-provisioning-mode <value>` | project_environment (one database per environment), project (one for the whole project) or custom (the name in --custom-database-name) (one of: project_environment, project, custom) [required] | - | No |
1196
+ | `--custom-database-name <value>` | The database every environment reads, in custom mode: lowercase letters, digits and _ | - | No |
1197
+ | `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
1198
+ | `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
1199
+ | `--json` | Output in JSON format | - | No |
1200
+
1201
+ ### `services update-tls`
1202
+
1203
+ Update service tls
1204
+
1205
+ **Usage:** `services update-tls <id> [options]`
1206
+
1207
+ **Options:**
1208
+
1209
+ | Flag | Description | Default | Required |
1210
+ |------|-------------|---------|----------|
1211
+ | `--mode <value>` | The new mode. 'required' is rejected until it is supported (one of: off, available, required) [required] | - | No |
1212
+ | `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
1213
+ | `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
1214
+ | `--json` | Output in JSON format | - | No |
1215
+
1216
+ ### `services get-managed-ca-certificate`
1217
+
1218
+ Get managed ca certificate
1219
+
1220
+ **Usage:** `services get-managed-ca-certificate <id> [options]`
1221
+
1222
+ **Options:**
1223
+
1224
+ | Flag | Description | Default | Required |
1225
+ |------|-------------|---------|----------|
1226
+ | `--json` | Output in JSON format | - | No |
1227
+
1228
+ ### `services test-wal-archive-target`
1229
+
1230
+ Test wal archive target
1231
+
1232
+ **Usage:** `services test-wal-archive-target <id> [options]`
1233
+
1234
+ **Options:**
1235
+
1236
+ | Flag | Description | Default | Required |
1237
+ |------|-------------|---------|----------|
1238
+ | `--json` | Output in JSON format | - | No |
1239
+
1240
+ ### `services get-workload-mode`
1241
+
1242
+ Get a database's workload mode (internal, operator-only)
1243
+
1244
+ **Usage:** `services get-workload-mode <id> [options]`
1245
+
1246
+ **Options:**
1247
+
1248
+ | Flag | Description | Default | Required |
1249
+ |------|-------------|---------|----------|
1250
+ | `--json` | Output in JSON format | - | No |
1251
+
1252
+ ### `services update-workload-mode`
1253
+
1254
+ Change a database's workload mode (internal, operator-only)
1255
+
1256
+ **Usage:** `services update-workload-mode <id> [options]`
1257
+
1258
+ **Options:**
1259
+
1260
+ | Flag | Description | Default | Required |
1261
+ |------|-------------|---------|----------|
1262
+ | `--mode <value>` | Body field mode (one of: legacy, shadow, enforce) [required] | - | No |
1263
+ | `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
1264
+ | `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
1265
+ | `--json` | Output in JSON format | - | No |
1266
+
1267
+ ### `services get-workload-pending-changes`
1268
+
1269
+ List what a recreate from the workload spec would change (internal, operator-only)
1270
+
1271
+ **Usage:** `services get-workload-pending-changes <id> [options]`
1272
+
1273
+ **Options:**
1274
+
1275
+ | Flag | Description | Default | Required |
1276
+ |------|-------------|---------|----------|
1277
+ | `--json` | Output in JSON format | - | No |
1278
+
1279
+ ### `services recreate-from-workload-spec`
1280
+
1281
+ Recreate a database's container from its workload spec (internal, operator-only)
1282
+
1283
+ **Usage:** `services recreate-from-workload-spec <id> [options]`
1284
+
1285
+ **Options:**
1286
+
1287
+ | Flag | Description | Default | Required |
1288
+ |------|-------------|---------|----------|
1289
+ | `--confirmed-fingerprint <value>` | The 'fingerprint' of the pending changes being confirmed | - | No |
1290
+ | `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
1291
+ | `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
1292
+ | `--json` | Output in JSON format | - | No |
1293
+
1294
+ ### `services external-reset-pg-stat-statements`
1295
+
1296
+ Reset all statistics accumulated by 'pg_stat_statements' for a Postgres service
1297
+
1298
+ **Usage:** `services external-reset-pg-stat-statements <service-id> [options]`
1299
+
1300
+ **Options:**
1301
+
1302
+ | Flag | Description | Default | Required |
1303
+ |------|-------------|---------|----------|
1304
+ | `--confirm` | Must be 'true' to acknowledge the global, irreversible reset [required] | - | No |
1305
+ | `--no-confirm` | Set confirm to false | - | No |
1306
+ | `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
1307
+ | `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
1308
+ | `--json` | Output in JSON format | - | No |
1309
+
1310
+ ### `services query`
1311
+
1312
+ Query commands
1313
+
1314
+ **Subcommands:**
1315
+
1316
+ - `data` - Query data from an entity with optional filters, pagination, and sorting
1317
+ - `download-object` - Download an object (S3 only) as a streaming response
1318
+ - `get-container-info` - Get information about a specific container
1319
+
1320
+ #### `services query data`
1321
+
1322
+ Query data from an entity with optional filters, pagination, and sorting
1323
+
1324
+ **Usage:** `services query data <service-id> <path> <entity> [options]`
1325
+
1326
+ **Options:**
1327
+
1328
+ | Flag | Description | Default | Required |
1329
+ |------|-------------|---------|----------|
1330
+ | `--filters <json>` | JSON filters (backend-specific format) (JSON) | - | No |
1331
+ | `--limit <n>` | Maximum number of rows to return | - | No |
1332
+ | `--offset <n>` | Number of rows to skip | - | No |
1333
+ | `--sort-by <value>` | Sort by field name | - | No |
1334
+ | `--sort-order <value>` | Sort order (asc/desc) | - | No |
1335
+ | `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
1336
+ | `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
1337
+ | `--json` | Output in JSON format | - | No |
1338
+
1339
+ #### `services query download-object`
1340
+
1341
+ Download an object (S3 only) as a streaming response
1342
+
1343
+ **Usage:** `services query download-object <service-id> <path> <entity> [options]`
1344
+
1345
+ **Options:**
1346
+
1347
+ | Flag | Description | Default | Required |
1348
+ |------|-------------|---------|----------|
1349
+ | `-o, --output <path>` | Where to write the reply (default: stdout) | `-` | No |
1350
+ | `--json` | Output in JSON format | - | No |
1351
+
1352
+ #### `services query get-container-info`
1353
+
1354
+ Get information about a specific container
1355
+
1356
+ **Usage:** `services query get-container-info <service-id> <path> [options]`
1357
+
1358
+ **Options:**
1359
+
1360
+ | Flag | Description | Default | Required |
1361
+ |------|-------------|---------|----------|
1362
+ | `--json` | Output in JSON format | - | No |
1363
+
1364
+ ### `services pg-upgrade`
1365
+
1366
+ Pg upgrade commands
1367
+
1368
+ **Subcommands:**
1369
+
1370
+ - `list` - List recent upgrades for a single service (newest first, page size 50)
1371
+ - `start` - Start a new PostgreSQL major-version upgrade for a service
1372
+ - `get` - Get a single upgrade by id, scoped to a service
1373
+ - `cancel` - Cancel an in-flight upgrade
1374
+ - `get-logs` - Get the accumulated JSONL log content for an upgrade (for dashboard display)
1375
+ - `retry` - Retry a failed upgrade
1376
+ - `rollback` - Roll a completed upgrade back to its pre-upgrade PGDATA volume and old image
1377
+
1378
+ #### `services pg-upgrade list`
1379
+
1380
+ List recent upgrades for a single service (newest first, page size 50)
1381
+
1382
+ **Usage:** `services pg-upgrade list <service-id> [options]`
1383
+
1384
+ **Options:**
1385
+
1386
+ | Flag | Description | Default | Required |
1387
+ |------|-------------|---------|----------|
1388
+ | `--json` | Output in JSON format | - | No |
1389
+
1390
+ #### `services pg-upgrade start`
1391
+
1392
+ Start a new PostgreSQL major-version upgrade for a service
1393
+
1394
+ **Usage:** `services pg-upgrade start <service-id> [options]`
1395
+
1396
+ **Options:**
1397
+
1398
+ | Flag | Description | Default | Required |
1399
+ |------|-------------|---------|----------|
1400
+ | `--from-image <value>` | Body field from_image [required] | - | No |
1401
+ | `--from-version <value>` | Body field from_version [required] | - | No |
1402
+ | `--to-image <value>` | Body field to_image [required] | - | No |
1403
+ | `--to-version <value>` | Body field to_version [required] | - | No |
1404
+ | `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
1405
+ | `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
1406
+ | `--json` | Output in JSON format | - | No |
1407
+
1408
+ #### `services pg-upgrade get`
1409
+
1410
+ Get a single upgrade by id, scoped to a service
1411
+
1412
+ **Usage:** `services pg-upgrade get <service-id> <id> [options]`
1413
+
1414
+ **Options:**
1415
+
1416
+ | Flag | Description | Default | Required |
1417
+ |------|-------------|---------|----------|
1418
+ | `--json` | Output in JSON format | - | No |
1419
+
1420
+ #### `services pg-upgrade cancel`
1421
+
1422
+ Cancel an in-flight upgrade
1423
+
1424
+ **Usage:** `services pg-upgrade cancel <service-id> <id> [options]`
1425
+
1426
+ **Options:**
1427
+
1428
+ | Flag | Description | Default | Required |
1429
+ |------|-------------|---------|----------|
1430
+ | `-y, --yes` | Do not ask for confirmation | - | No |
1431
+ | `--json` | Output in JSON format | - | No |
1432
+
1433
+ #### `services pg-upgrade get-logs`
1434
+
1435
+ Get the accumulated JSONL log content for an upgrade (for dashboard display)
1436
+
1437
+ **Usage:** `services pg-upgrade get-logs <service-id> <id> [options]`
1438
+
1439
+ **Options:**
1440
+
1441
+ | Flag | Description | Default | Required |
1442
+ |------|-------------|---------|----------|
1443
+ | `--json` | Output in JSON format | - | No |
1444
+
1445
+ #### `services pg-upgrade retry`
1446
+
1447
+ Retry a failed upgrade
1448
+
1449
+ **Usage:** `services pg-upgrade retry <service-id> <id> [options]`
1450
+
1451
+ **Options:**
1452
+
1453
+ | Flag | Description | Default | Required |
1454
+ |------|-------------|---------|----------|
1455
+ | `--json` | Output in JSON format | - | No |
1456
+
1457
+ #### `services pg-upgrade rollback`
1458
+
1459
+ Roll a completed upgrade back to its pre-upgrade PGDATA volume and old image
1460
+
1461
+ **Usage:** `services pg-upgrade rollback <service-id> <id> [options]`
1462
+
1463
+ **Options:**
1464
+
1465
+ | Flag | Description | Default | Required |
1466
+ |------|-------------|---------|----------|
1467
+ | `-y, --yes` | Do not ask for confirmation | - | No |
1468
+ | `--json` | Output in JSON format | - | No |