@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,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,8 @@ 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 |
|
|
247
338
|
|
|
248
339
|
### `services unlink`
|
|
249
340
|
|
|
@@ -374,7 +465,6 @@ Show a time-series range for a single metric
|
|
|
374
465
|
| `--id <id>` | Service ID | - | Yes |
|
|
375
466
|
| `-m, --metric <name>` | Metric name, e.g. "pg.connections_active" | - | Yes |
|
|
376
467
|
| `-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
468
|
| `--json` | Output raw JSON instead of a formatted table | - | No |
|
|
379
469
|
|
|
380
470
|
#### `services metrics status`
|
|
@@ -522,7 +612,10 @@ Restore a service from a backup (in-place, new service, or PITR)
|
|
|
522
612
|
| Flag | Description | Default | Required |
|
|
523
613
|
|------|-------------|---------|----------|
|
|
524
614
|
| `--id <id>` | Source service ID (the service the backup came from) | - | Yes |
|
|
525
|
-
| `--backup-id <id>` | Backup ID to restore from (see `list-backups`) | - |
|
|
615
|
+
| `--backup-id <id>` | Backup ID to restore from (see `list-backups`) | - | No |
|
|
616
|
+
| `--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 |
|
|
617
|
+
| `--backup-engine <engine>` | With --backup-location: postgres, redis, mongodb or s3 | - | No |
|
|
618
|
+
| `--s3-source <id>` | With --backup-location: the S3 source the backup is in | - | No |
|
|
526
619
|
| `--new-service [name]` | Clone into a new service. Omit the value or pass "auto" to accept the auto-suggested name. | - | No |
|
|
527
620
|
| `--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
621
|
| `--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 +623,37 @@ Restore a service from a backup (in-place, new service, or PITR)
|
|
|
530
623
|
| `--no-wait` | Return immediately without polling run status | - | No |
|
|
531
624
|
| `--json` | Output in JSON format | - | No |
|
|
532
625
|
|
|
626
|
+
**Subcommands:**
|
|
627
|
+
|
|
628
|
+
- `plan` - Plan restore
|
|
629
|
+
|
|
630
|
+
#### `services restore plan`
|
|
631
|
+
|
|
632
|
+
Plan restore
|
|
633
|
+
|
|
634
|
+
**Usage:** `services restore plan <id> [options]`
|
|
635
|
+
|
|
636
|
+
**Options:**
|
|
637
|
+
|
|
638
|
+
| Flag | Description | Default | Required |
|
|
639
|
+
|------|-------------|---------|----------|
|
|
640
|
+
| `--mode <value>` | Body field mode (one of: in_place, new_service, pitr) [required] | - | No |
|
|
641
|
+
| `--name <value>` | Name for the new service | - | No |
|
|
642
|
+
| `--parameter-overrides <json>` | Optional parameter overrides (port, docker_image, database) (JSON) | - | No |
|
|
643
|
+
| `--new-service-name <value>` | Required when 'to_new_service' is true | - | No |
|
|
644
|
+
| `--target <json>` | Recovery target kind + value (JSON) | - | No |
|
|
645
|
+
| `--to-new-service` | Whether PITR restores in place or creates a new service | - | No |
|
|
646
|
+
| `--no-to-new-service` | Set to_new_service to false | - | No |
|
|
647
|
+
| `--backup-engine <value>` | Engine of the backup when specified by 'backup_location' ("postgres", "redis", "mongodb", "s3") | - | No |
|
|
648
|
+
| `--backup-id <n>` | DB id of the backup to restore from | - | No |
|
|
649
|
+
| `--backup-location <value>` | Raw S3 URL / key of the backup — used when restoring a backup discovered by S3 scan (i.e., produced by... | - | No |
|
|
650
|
+
| `--confirm-cross-service` | Explicit confirmation for a destructive cross-service restore | - | No |
|
|
651
|
+
| `--no-confirm-cross-service` | Set confirm_cross_service to false | - | No |
|
|
652
|
+
| `--s3-source-id <n>` | S3 source the 'backup_location' lives in | - | No |
|
|
653
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
654
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
655
|
+
| `--json` | Output in JSON format | - | No |
|
|
656
|
+
|
|
533
657
|
### `services restore-runs`
|
|
534
658
|
|
|
535
659
|
List recent restore runs for a service
|
|
@@ -640,3 +764,704 @@ Probe a PostgreSQL service's WAL / archive_command health right now (archiver fa
|
|
|
640
764
|
|------|-------------|---------|----------|
|
|
641
765
|
| `--id <id>` | Service ID | - | Yes |
|
|
642
766
|
| `--json` | Output in JSON format | - | No |
|
|
767
|
+
|
|
768
|
+
### `services list-available-containers`
|
|
769
|
+
|
|
770
|
+
List available Docker containers that can be imported as services
|
|
771
|
+
|
|
772
|
+
**Options:**
|
|
773
|
+
|
|
774
|
+
| Flag | Description | Default | Required |
|
|
775
|
+
|------|-------------|---------|----------|
|
|
776
|
+
| `--json` | Output in JSON format | - | No |
|
|
777
|
+
|
|
778
|
+
### `services list-health-statuses`
|
|
779
|
+
|
|
780
|
+
Current health status for many services at once
|
|
781
|
+
|
|
782
|
+
**Options:**
|
|
783
|
+
|
|
784
|
+
| Flag | Description | Default | Required |
|
|
785
|
+
|------|-------------|---------|----------|
|
|
786
|
+
| `--ids <value>` | Comma-separated service IDs | - | No |
|
|
787
|
+
| `--json` | Output in JSON format | - | No |
|
|
788
|
+
|
|
789
|
+
### `services get-healthcheck-defaults`
|
|
790
|
+
|
|
791
|
+
Get the instance-wide default healthcheck of managed service containers
|
|
792
|
+
|
|
793
|
+
**Options:**
|
|
794
|
+
|
|
795
|
+
| Flag | Description | Default | Required |
|
|
796
|
+
|------|-------------|---------|----------|
|
|
797
|
+
| `--json` | Output in JSON format | - | No |
|
|
798
|
+
|
|
799
|
+
### `services update-healthcheck-defaults`
|
|
800
|
+
|
|
801
|
+
Replace the instance-wide default healthcheck of managed service containers
|
|
802
|
+
|
|
803
|
+
**Options:**
|
|
804
|
+
|
|
805
|
+
| Flag | Description | Default | Required |
|
|
806
|
+
|------|-------------|---------|----------|
|
|
807
|
+
| `--interval-secs <n>` | Seconds between checks once healthy (5–3600) | - | No |
|
|
808
|
+
| `--retries <n>` | Consecutive failures that make the container unhealthy (1–10) | - | No |
|
|
809
|
+
| `--start-interval-secs <n>` | Seconds between checks while starting (1–60) | - | No |
|
|
810
|
+
| `--start-period-secs <n>` | Seconds after start during which failures do not count (0–600) | - | No |
|
|
811
|
+
| `--timeout-secs <n>` | Seconds one check may run (1–60, and shorter than the interval) | - | No |
|
|
812
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
813
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
814
|
+
| `--json` | Output in JSON format | - | No |
|
|
815
|
+
|
|
816
|
+
### `services list-project-services`
|
|
817
|
+
|
|
818
|
+
List services linked to a project
|
|
819
|
+
|
|
820
|
+
**Options:**
|
|
821
|
+
|
|
822
|
+
| Flag | Description | Default | Required |
|
|
823
|
+
|------|-------------|---------|----------|
|
|
824
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
825
|
+
| `--page <n>` | Page number (1-indexed) | - | No |
|
|
826
|
+
| `--page-size <n>` | Number of items per page (max 100) | - | No |
|
|
827
|
+
| `--sort-by <value>` | Query parameter sort_by | - | No |
|
|
828
|
+
| `--sort-order <value>` | Query parameter sort_order | - | No |
|
|
829
|
+
| `--json` | Output in JSON format | - | No |
|
|
830
|
+
|
|
831
|
+
### `services get-environment-variables`
|
|
832
|
+
|
|
833
|
+
Get all environment variables for all services linked to a project
|
|
834
|
+
|
|
835
|
+
**Options:**
|
|
836
|
+
|
|
837
|
+
| Flag | Description | Default | Required |
|
|
838
|
+
|------|-------------|---------|----------|
|
|
839
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
840
|
+
| `--json` | Output in JSON format | - | No |
|
|
841
|
+
|
|
842
|
+
### `services get-providers-metadata`
|
|
843
|
+
|
|
844
|
+
Get provider metadata (display names, icons, descriptions)
|
|
845
|
+
|
|
846
|
+
**Options:**
|
|
847
|
+
|
|
848
|
+
| Flag | Description | Default | Required |
|
|
849
|
+
|------|-------------|---------|----------|
|
|
850
|
+
| `--json` | Output in JSON format | - | No |
|
|
851
|
+
|
|
852
|
+
### `services get-provider-metadata`
|
|
853
|
+
|
|
854
|
+
Get metadata for a specific provider
|
|
855
|
+
|
|
856
|
+
**Usage:** `services get-provider-metadata <service-type> [options]`
|
|
857
|
+
|
|
858
|
+
**Options:**
|
|
859
|
+
|
|
860
|
+
| Flag | Description | Default | Required |
|
|
861
|
+
|------|-------------|---------|----------|
|
|
862
|
+
| `--json` | Output in JSON format | - | No |
|
|
863
|
+
|
|
864
|
+
### `services get-cluster-health`
|
|
865
|
+
|
|
866
|
+
Per-member health for a Postgres HA cluster
|
|
867
|
+
|
|
868
|
+
**Usage:** `services get-cluster-health <id> [options]`
|
|
869
|
+
|
|
870
|
+
**Options:**
|
|
871
|
+
|
|
872
|
+
| Flag | Description | Default | Required |
|
|
873
|
+
|------|-------------|---------|----------|
|
|
874
|
+
| `--json` | Output in JSON format | - | No |
|
|
875
|
+
|
|
876
|
+
### `services reveal-environment-variables`
|
|
877
|
+
|
|
878
|
+
Reveal a service's basic environment variables in plaintext, before it is linked to any project
|
|
879
|
+
|
|
880
|
+
**Usage:** `services reveal-environment-variables <id> [options]`
|
|
881
|
+
|
|
882
|
+
**Options:**
|
|
883
|
+
|
|
884
|
+
| Flag | Description | Default | Required |
|
|
885
|
+
|------|-------------|---------|----------|
|
|
886
|
+
| `--json` | Output in JSON format | - | No |
|
|
887
|
+
|
|
888
|
+
### `services trigger-health-check`
|
|
889
|
+
|
|
890
|
+
Run a health check for one service right now
|
|
891
|
+
|
|
892
|
+
**Usage:** `services trigger-health-check <id> [options]`
|
|
893
|
+
|
|
894
|
+
**Options:**
|
|
895
|
+
|
|
896
|
+
| Flag | Description | Default | Required |
|
|
897
|
+
|------|-------------|---------|----------|
|
|
898
|
+
| `--json` | Output in JSON format | - | No |
|
|
899
|
+
|
|
900
|
+
### `services get-health-status`
|
|
901
|
+
|
|
902
|
+
Persisted health status for an external service
|
|
903
|
+
|
|
904
|
+
**Usage:** `services get-health-status <id> [options]`
|
|
905
|
+
|
|
906
|
+
**Options:**
|
|
907
|
+
|
|
908
|
+
| Flag | Description | Default | Required |
|
|
909
|
+
|------|-------------|---------|----------|
|
|
910
|
+
| `--limit <n>` | Max number of recent checks (default 50, max 200) | - | No |
|
|
911
|
+
| `--json` | Output in JSON format | - | No |
|
|
912
|
+
|
|
913
|
+
### `services get-healthcheck`
|
|
914
|
+
|
|
915
|
+
Get a managed service's healthcheck
|
|
916
|
+
|
|
917
|
+
**Usage:** `services get-healthcheck <id> [options]`
|
|
918
|
+
|
|
919
|
+
**Options:**
|
|
920
|
+
|
|
921
|
+
| Flag | Description | Default | Required |
|
|
922
|
+
|------|-------------|---------|----------|
|
|
923
|
+
| `--json` | Output in JSON format | - | No |
|
|
924
|
+
|
|
925
|
+
### `services update-healthcheck`
|
|
926
|
+
|
|
927
|
+
Replace a managed service's healthcheck overrides
|
|
928
|
+
|
|
929
|
+
**Usage:** `services update-healthcheck <id> [options]`
|
|
930
|
+
|
|
931
|
+
**Options:**
|
|
932
|
+
|
|
933
|
+
| Flag | Description | Default | Required |
|
|
934
|
+
|------|-------------|---------|----------|
|
|
935
|
+
| `--interval-secs <n>` | Seconds between checks once healthy (5–3600) | - | No |
|
|
936
|
+
| `--retries <n>` | Consecutive failures that make the container unhealthy (1–10) | - | No |
|
|
937
|
+
| `--start-interval-secs <n>` | Seconds between checks while starting (1–60) | - | No |
|
|
938
|
+
| `--start-period-secs <n>` | Seconds after start during which failures do not count (0–600) | - | No |
|
|
939
|
+
| `--timeout-secs <n>` | Seconds one check may run (1–60, and shorter than the interval) | - | No |
|
|
940
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
941
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
942
|
+
| `--json` | Output in JSON format | - | No |
|
|
943
|
+
|
|
944
|
+
### `services apply-healthcheck`
|
|
945
|
+
|
|
946
|
+
Recreate a managed service's container to apply its healthcheck now
|
|
947
|
+
|
|
948
|
+
**Usage:** `services apply-healthcheck <id> [options]`
|
|
949
|
+
|
|
950
|
+
**Options:**
|
|
951
|
+
|
|
952
|
+
| Flag | Description | Default | Required |
|
|
953
|
+
|------|-------------|---------|----------|
|
|
954
|
+
| `--json` | Output in JSON format | - | No |
|
|
955
|
+
|
|
956
|
+
### `services get-log-ingestion`
|
|
957
|
+
|
|
958
|
+
Get this service's own container log ingestion budget
|
|
959
|
+
|
|
960
|
+
**Usage:** `services get-log-ingestion <id> [options]`
|
|
961
|
+
|
|
962
|
+
**Options:**
|
|
963
|
+
|
|
964
|
+
| Flag | Description | Default | Required |
|
|
965
|
+
|------|-------------|---------|----------|
|
|
966
|
+
| `--json` | Output in JSON format | - | No |
|
|
967
|
+
|
|
968
|
+
### `services update-log-ingestion`
|
|
969
|
+
|
|
970
|
+
Replace this service's container log ingestion budget
|
|
971
|
+
|
|
972
|
+
**Usage:** `services update-log-ingestion <id> [options]`
|
|
973
|
+
|
|
974
|
+
**Options:**
|
|
975
|
+
|
|
976
|
+
| Flag | Description | Default | Required |
|
|
977
|
+
|------|-------------|---------|----------|
|
|
978
|
+
| `--log-ingest-kib-per-sec <n>` | KiB of log text per second per container (0–1,048,576). null = platform default | - | No |
|
|
979
|
+
| `--log-ingest-lines-per-sec <n>` | Lines per second per container (0–1,000,000). null = platform default | - | No |
|
|
980
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
981
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
982
|
+
| `--json` | Output in JSON format | - | No |
|
|
983
|
+
|
|
984
|
+
### `services add-cluster-member`
|
|
985
|
+
|
|
986
|
+
Begin adding a single new member to a running cluster
|
|
987
|
+
|
|
988
|
+
**Usage:** `services add-cluster-member <id> [options]`
|
|
989
|
+
|
|
990
|
+
**Options:**
|
|
991
|
+
|
|
992
|
+
| Flag | Description | Default | Required |
|
|
993
|
+
|------|-------------|---------|----------|
|
|
994
|
+
| `--node-id <n>` | Target worker node ID | - | No |
|
|
995
|
+
| `--role <value>` | Member role [required] | - | No |
|
|
996
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
997
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
998
|
+
| `--json` | Output in JSON format | - | No |
|
|
999
|
+
|
|
1000
|
+
### `services remove-cluster-member`
|
|
1001
|
+
|
|
1002
|
+
Remove a single member from a running cluster
|
|
1003
|
+
|
|
1004
|
+
**Usage:** `services remove-cluster-member <id> <member-id> [options]`
|
|
1005
|
+
|
|
1006
|
+
**Options:**
|
|
1007
|
+
|
|
1008
|
+
| Flag | Description | Default | Required |
|
|
1009
|
+
|------|-------------|---------|----------|
|
|
1010
|
+
| `-y, --yes` | Do not ask for confirmation | - | No |
|
|
1011
|
+
| `--json` | Output in JSON format | - | No |
|
|
1012
|
+
|
|
1013
|
+
### `services get-cluster-member`
|
|
1014
|
+
|
|
1015
|
+
Get a single cluster member's current state
|
|
1016
|
+
|
|
1017
|
+
**Usage:** `services get-cluster-member <id> <member-id> [options]`
|
|
1018
|
+
|
|
1019
|
+
**Options:**
|
|
1020
|
+
|
|
1021
|
+
| Flag | Description | Default | Required |
|
|
1022
|
+
|------|-------------|---------|----------|
|
|
1023
|
+
| `--json` | Output in JSON format | - | No |
|
|
1024
|
+
|
|
1025
|
+
### `services promote-cluster-member`
|
|
1026
|
+
|
|
1027
|
+
Promote a replica to primary by triggering a pg_auto_failover failover
|
|
1028
|
+
|
|
1029
|
+
**Usage:** `services promote-cluster-member <id> <member-id> [options]`
|
|
1030
|
+
|
|
1031
|
+
**Options:**
|
|
1032
|
+
|
|
1033
|
+
| Flag | Description | Default | Required |
|
|
1034
|
+
|------|-------------|---------|----------|
|
|
1035
|
+
| `--json` | Output in JSON format | - | No |
|
|
1036
|
+
|
|
1037
|
+
### `services migrate-s3`
|
|
1038
|
+
|
|
1039
|
+
Copy every bucket of another managed S3 service into this one
|
|
1040
|
+
|
|
1041
|
+
**Usage:** `services migrate-s3 <id> [options]`
|
|
1042
|
+
|
|
1043
|
+
**Options:**
|
|
1044
|
+
|
|
1045
|
+
| Flag | Description | Default | Required |
|
|
1046
|
+
|------|-------------|---------|----------|
|
|
1047
|
+
| `--source-service-id <n>` | Managed S3 service to copy from (RustFS or Garage) [required] | - | No |
|
|
1048
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
1049
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
1050
|
+
| `--json` | Output in JSON format | - | No |
|
|
1051
|
+
|
|
1052
|
+
### `services reveal-parameter`
|
|
1053
|
+
|
|
1054
|
+
Reveal one sensitive service parameter
|
|
1055
|
+
|
|
1056
|
+
**Usage:** `services reveal-parameter <id> <param-name> [options]`
|
|
1057
|
+
|
|
1058
|
+
**Options:**
|
|
1059
|
+
|
|
1060
|
+
| Flag | Description | Default | Required |
|
|
1061
|
+
|------|-------------|---------|----------|
|
|
1062
|
+
| `--json` | Output in JSON format | - | No |
|
|
1063
|
+
|
|
1064
|
+
### `services get-preview-environment-variables-masked`
|
|
1065
|
+
|
|
1066
|
+
Get environment variables preview with masked sensitive values
|
|
1067
|
+
|
|
1068
|
+
**Usage:** `services get-preview-environment-variables-masked <id> [options]`
|
|
1069
|
+
|
|
1070
|
+
**Options:**
|
|
1071
|
+
|
|
1072
|
+
| Flag | Description | Default | Required |
|
|
1073
|
+
|------|-------------|---------|----------|
|
|
1074
|
+
| `--json` | Output in JSON format | - | No |
|
|
1075
|
+
|
|
1076
|
+
### `services get-preview-environment-variable-names`
|
|
1077
|
+
|
|
1078
|
+
Get environment variable names preview (safe - no sensitive values)
|
|
1079
|
+
|
|
1080
|
+
**Usage:** `services get-preview-environment-variable-names <id> [options]`
|
|
1081
|
+
|
|
1082
|
+
**Options:**
|
|
1083
|
+
|
|
1084
|
+
| Flag | Description | Default | Required |
|
|
1085
|
+
|------|-------------|---------|----------|
|
|
1086
|
+
| `--json` | Output in JSON format | - | No |
|
|
1087
|
+
|
|
1088
|
+
### `services issue-runtime-credentials`
|
|
1089
|
+
|
|
1090
|
+
Issue live connection credentials for a service in an environment
|
|
1091
|
+
|
|
1092
|
+
**Usage:** `services issue-runtime-credentials <id> <environment-id> [options]`
|
|
1093
|
+
|
|
1094
|
+
**Options:**
|
|
1095
|
+
|
|
1096
|
+
| Flag | Description | Default | Required |
|
|
1097
|
+
|------|-------------|---------|----------|
|
|
1098
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
1099
|
+
| `--json` | Output in JSON format | - | No |
|
|
1100
|
+
|
|
1101
|
+
### `services update-resources`
|
|
1102
|
+
|
|
1103
|
+
Update a service's resource limits (memory, CPU caps)
|
|
1104
|
+
|
|
1105
|
+
**Usage:** `services update-resources <id> [options]`
|
|
1106
|
+
|
|
1107
|
+
**Options:**
|
|
1108
|
+
|
|
1109
|
+
| Flag | Description | Default | Required |
|
|
1110
|
+
|------|-------------|---------|----------|
|
|
1111
|
+
| `--cpu-shares <n>` | Relative CPU weight (default 1024) | - | No |
|
|
1112
|
+
| `--memory-mb <n>` | Hard memory limit in MiB | - | No |
|
|
1113
|
+
| `--memory-swap-mb <n>` | Memory + swap limit in MiB | - | No |
|
|
1114
|
+
| `--nano-cpus <n>` | CPU quota in nano-cpus. 1_000_000_000 = 1 full CPU core | - | No |
|
|
1115
|
+
| `--shm-size-mb <n>` | Shared memory (/dev/shm) size in MiB | - | No |
|
|
1116
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
1117
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
1118
|
+
| `--json` | Output in JSON format | - | No |
|
|
1119
|
+
|
|
1120
|
+
### `services retry-cluster`
|
|
1121
|
+
|
|
1122
|
+
Retry a failed cluster service initialization
|
|
1123
|
+
|
|
1124
|
+
**Usage:** `services retry-cluster <id> [options]`
|
|
1125
|
+
|
|
1126
|
+
**Options:**
|
|
1127
|
+
|
|
1128
|
+
| Flag | Description | Default | Required |
|
|
1129
|
+
|------|-------------|---------|----------|
|
|
1130
|
+
| `--members <json>` | Cluster member specifications (same format as create) (JSON) | - | No |
|
|
1131
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
1132
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
1133
|
+
| `--json` | Output in JSON format | - | No |
|
|
1134
|
+
|
|
1135
|
+
### `services get-runtime`
|
|
1136
|
+
|
|
1137
|
+
Inspect a service's container(s): status, restart count, OOM-killed flag, exit code, and the cgroup limits..
|
|
1138
|
+
|
|
1139
|
+
**Usage:** `services get-runtime <id> [options]`
|
|
1140
|
+
|
|
1141
|
+
**Options:**
|
|
1142
|
+
|
|
1143
|
+
| Flag | Description | Default | Required |
|
|
1144
|
+
|------|-------------|---------|----------|
|
|
1145
|
+
| `--json` | Output in JSON format | - | No |
|
|
1146
|
+
|
|
1147
|
+
### `services get-stats`
|
|
1148
|
+
|
|
1149
|
+
Sample current CPU/memory usage from each of a service's containers
|
|
1150
|
+
|
|
1151
|
+
**Usage:** `services get-stats <id> [options]`
|
|
1152
|
+
|
|
1153
|
+
**Options:**
|
|
1154
|
+
|
|
1155
|
+
| Flag | Description | Default | Required |
|
|
1156
|
+
|------|-------------|---------|----------|
|
|
1157
|
+
| `--json` | Output in JSON format | - | No |
|
|
1158
|
+
|
|
1159
|
+
### `services get-tls`
|
|
1160
|
+
|
|
1161
|
+
Get service tls
|
|
1162
|
+
|
|
1163
|
+
**Usage:** `services get-tls <id> [options]`
|
|
1164
|
+
|
|
1165
|
+
**Options:**
|
|
1166
|
+
|
|
1167
|
+
| Flag | Description | Default | Required |
|
|
1168
|
+
|------|-------------|---------|----------|
|
|
1169
|
+
| `--json` | Output in JSON format | - | No |
|
|
1170
|
+
|
|
1171
|
+
### `services restored-databases`
|
|
1172
|
+
|
|
1173
|
+
What the latest PostgreSQL restore brought back: its databases and users, which linked project reads each, and linked databases the backup does not have
|
|
1174
|
+
|
|
1175
|
+
**Usage:** `services restored-databases <id> [options]`
|
|
1176
|
+
|
|
1177
|
+
**Options:**
|
|
1178
|
+
|
|
1179
|
+
| Flag | Description | Default | Required |
|
|
1180
|
+
|------|-------------|---------|----------|
|
|
1181
|
+
| `--json` | Output in JSON format | - | No |
|
|
1182
|
+
|
|
1183
|
+
### `services set-link-database`
|
|
1184
|
+
|
|
1185
|
+
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
|
|
1186
|
+
|
|
1187
|
+
**Usage:** `services set-link-database <id> [options]`
|
|
1188
|
+
|
|
1189
|
+
**Options:**
|
|
1190
|
+
|
|
1191
|
+
| Flag | Description | Default | Required |
|
|
1192
|
+
|------|-------------|---------|----------|
|
|
1193
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
1194
|
+
| `--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 |
|
|
1195
|
+
| `--custom-database-name <value>` | The database every environment reads, in custom mode: lowercase letters, digits and _ | - | No |
|
|
1196
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
1197
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
1198
|
+
| `--json` | Output in JSON format | - | No |
|
|
1199
|
+
|
|
1200
|
+
### `services update-tls`
|
|
1201
|
+
|
|
1202
|
+
Update service tls
|
|
1203
|
+
|
|
1204
|
+
**Usage:** `services update-tls <id> [options]`
|
|
1205
|
+
|
|
1206
|
+
**Options:**
|
|
1207
|
+
|
|
1208
|
+
| Flag | Description | Default | Required |
|
|
1209
|
+
|------|-------------|---------|----------|
|
|
1210
|
+
| `--mode <value>` | The new mode. 'required' is rejected until it is supported (one of: off, available, required) [required] | - | No |
|
|
1211
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
1212
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
1213
|
+
| `--json` | Output in JSON format | - | No |
|
|
1214
|
+
|
|
1215
|
+
### `services get-managed-ca-certificate`
|
|
1216
|
+
|
|
1217
|
+
Get managed ca certificate
|
|
1218
|
+
|
|
1219
|
+
**Usage:** `services get-managed-ca-certificate <id> [options]`
|
|
1220
|
+
|
|
1221
|
+
**Options:**
|
|
1222
|
+
|
|
1223
|
+
| Flag | Description | Default | Required |
|
|
1224
|
+
|------|-------------|---------|----------|
|
|
1225
|
+
| `--json` | Output in JSON format | - | No |
|
|
1226
|
+
|
|
1227
|
+
### `services test-wal-archive-target`
|
|
1228
|
+
|
|
1229
|
+
Test wal archive target
|
|
1230
|
+
|
|
1231
|
+
**Usage:** `services test-wal-archive-target <id> [options]`
|
|
1232
|
+
|
|
1233
|
+
**Options:**
|
|
1234
|
+
|
|
1235
|
+
| Flag | Description | Default | Required |
|
|
1236
|
+
|------|-------------|---------|----------|
|
|
1237
|
+
| `--json` | Output in JSON format | - | No |
|
|
1238
|
+
|
|
1239
|
+
### `services get-workload-mode`
|
|
1240
|
+
|
|
1241
|
+
Get a database's workload mode (internal, operator-only)
|
|
1242
|
+
|
|
1243
|
+
**Usage:** `services get-workload-mode <id> [options]`
|
|
1244
|
+
|
|
1245
|
+
**Options:**
|
|
1246
|
+
|
|
1247
|
+
| Flag | Description | Default | Required |
|
|
1248
|
+
|------|-------------|---------|----------|
|
|
1249
|
+
| `--json` | Output in JSON format | - | No |
|
|
1250
|
+
|
|
1251
|
+
### `services update-workload-mode`
|
|
1252
|
+
|
|
1253
|
+
Change a database's workload mode (internal, operator-only)
|
|
1254
|
+
|
|
1255
|
+
**Usage:** `services update-workload-mode <id> [options]`
|
|
1256
|
+
|
|
1257
|
+
**Options:**
|
|
1258
|
+
|
|
1259
|
+
| Flag | Description | Default | Required |
|
|
1260
|
+
|------|-------------|---------|----------|
|
|
1261
|
+
| `--mode <value>` | Body field mode (one of: legacy, shadow, enforce) [required] | - | No |
|
|
1262
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
1263
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
1264
|
+
| `--json` | Output in JSON format | - | No |
|
|
1265
|
+
|
|
1266
|
+
### `services get-workload-pending-changes`
|
|
1267
|
+
|
|
1268
|
+
List what a recreate from the workload spec would change (internal, operator-only)
|
|
1269
|
+
|
|
1270
|
+
**Usage:** `services get-workload-pending-changes <id> [options]`
|
|
1271
|
+
|
|
1272
|
+
**Options:**
|
|
1273
|
+
|
|
1274
|
+
| Flag | Description | Default | Required |
|
|
1275
|
+
|------|-------------|---------|----------|
|
|
1276
|
+
| `--json` | Output in JSON format | - | No |
|
|
1277
|
+
|
|
1278
|
+
### `services recreate-from-workload-spec`
|
|
1279
|
+
|
|
1280
|
+
Recreate a database's container from its workload spec (internal, operator-only)
|
|
1281
|
+
|
|
1282
|
+
**Usage:** `services recreate-from-workload-spec <id> [options]`
|
|
1283
|
+
|
|
1284
|
+
**Options:**
|
|
1285
|
+
|
|
1286
|
+
| Flag | Description | Default | Required |
|
|
1287
|
+
|------|-------------|---------|----------|
|
|
1288
|
+
| `--confirmed-fingerprint <value>` | The 'fingerprint' of the pending changes being confirmed | - | No |
|
|
1289
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
1290
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
1291
|
+
| `--json` | Output in JSON format | - | No |
|
|
1292
|
+
|
|
1293
|
+
### `services external-reset-pg-stat-statements`
|
|
1294
|
+
|
|
1295
|
+
Reset all statistics accumulated by 'pg_stat_statements' for a Postgres service
|
|
1296
|
+
|
|
1297
|
+
**Usage:** `services external-reset-pg-stat-statements <service-id> [options]`
|
|
1298
|
+
|
|
1299
|
+
**Options:**
|
|
1300
|
+
|
|
1301
|
+
| Flag | Description | Default | Required |
|
|
1302
|
+
|------|-------------|---------|----------|
|
|
1303
|
+
| `--confirm` | Must be 'true' to acknowledge the global, irreversible reset [required] | - | No |
|
|
1304
|
+
| `--no-confirm` | Set confirm to false | - | No |
|
|
1305
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
1306
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
1307
|
+
| `--json` | Output in JSON format | - | No |
|
|
1308
|
+
|
|
1309
|
+
### `services query`
|
|
1310
|
+
|
|
1311
|
+
Query commands
|
|
1312
|
+
|
|
1313
|
+
**Subcommands:**
|
|
1314
|
+
|
|
1315
|
+
- `data` - Query data from an entity with optional filters, pagination, and sorting
|
|
1316
|
+
- `download-object` - Download an object (S3 only) as a streaming response
|
|
1317
|
+
- `get-container-info` - Get information about a specific container
|
|
1318
|
+
|
|
1319
|
+
#### `services query data`
|
|
1320
|
+
|
|
1321
|
+
Query data from an entity with optional filters, pagination, and sorting
|
|
1322
|
+
|
|
1323
|
+
**Usage:** `services query data <service-id> <path> <entity> [options]`
|
|
1324
|
+
|
|
1325
|
+
**Options:**
|
|
1326
|
+
|
|
1327
|
+
| Flag | Description | Default | Required |
|
|
1328
|
+
|------|-------------|---------|----------|
|
|
1329
|
+
| `--filters <json>` | JSON filters (backend-specific format) (JSON) | - | No |
|
|
1330
|
+
| `--limit <n>` | Maximum number of rows to return | - | No |
|
|
1331
|
+
| `--offset <n>` | Number of rows to skip | - | No |
|
|
1332
|
+
| `--sort-by <value>` | Sort by field name | - | No |
|
|
1333
|
+
| `--sort-order <value>` | Sort order (asc/desc) | - | No |
|
|
1334
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
1335
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
1336
|
+
| `--json` | Output in JSON format | - | No |
|
|
1337
|
+
|
|
1338
|
+
#### `services query download-object`
|
|
1339
|
+
|
|
1340
|
+
Download an object (S3 only) as a streaming response
|
|
1341
|
+
|
|
1342
|
+
**Usage:** `services query download-object <service-id> <path> <entity> [options]`
|
|
1343
|
+
|
|
1344
|
+
**Options:**
|
|
1345
|
+
|
|
1346
|
+
| Flag | Description | Default | Required |
|
|
1347
|
+
|------|-------------|---------|----------|
|
|
1348
|
+
| `-o, --output <path>` | Where to write the reply (default: stdout) | `-` | No |
|
|
1349
|
+
| `--json` | Output in JSON format | - | No |
|
|
1350
|
+
|
|
1351
|
+
#### `services query get-container-info`
|
|
1352
|
+
|
|
1353
|
+
Get information about a specific container
|
|
1354
|
+
|
|
1355
|
+
**Usage:** `services query get-container-info <service-id> <path> [options]`
|
|
1356
|
+
|
|
1357
|
+
**Options:**
|
|
1358
|
+
|
|
1359
|
+
| Flag | Description | Default | Required |
|
|
1360
|
+
|------|-------------|---------|----------|
|
|
1361
|
+
| `--json` | Output in JSON format | - | No |
|
|
1362
|
+
|
|
1363
|
+
### `services pg-upgrade`
|
|
1364
|
+
|
|
1365
|
+
Pg upgrade commands
|
|
1366
|
+
|
|
1367
|
+
**Subcommands:**
|
|
1368
|
+
|
|
1369
|
+
- `list` - List recent upgrades for a single service (newest first, page size 50)
|
|
1370
|
+
- `start` - Start a new PostgreSQL major-version upgrade for a service
|
|
1371
|
+
- `get` - Get a single upgrade by id, scoped to a service
|
|
1372
|
+
- `cancel` - Cancel an in-flight upgrade
|
|
1373
|
+
- `get-logs` - Get the accumulated JSONL log content for an upgrade (for dashboard display)
|
|
1374
|
+
- `retry` - Retry a failed upgrade
|
|
1375
|
+
- `rollback` - Roll a completed upgrade back to its pre-upgrade PGDATA volume and old image
|
|
1376
|
+
|
|
1377
|
+
#### `services pg-upgrade list`
|
|
1378
|
+
|
|
1379
|
+
List recent upgrades for a single service (newest first, page size 50)
|
|
1380
|
+
|
|
1381
|
+
**Usage:** `services pg-upgrade list <service-id> [options]`
|
|
1382
|
+
|
|
1383
|
+
**Options:**
|
|
1384
|
+
|
|
1385
|
+
| Flag | Description | Default | Required |
|
|
1386
|
+
|------|-------------|---------|----------|
|
|
1387
|
+
| `--json` | Output in JSON format | - | No |
|
|
1388
|
+
|
|
1389
|
+
#### `services pg-upgrade start`
|
|
1390
|
+
|
|
1391
|
+
Start a new PostgreSQL major-version upgrade for a service
|
|
1392
|
+
|
|
1393
|
+
**Usage:** `services pg-upgrade start <service-id> [options]`
|
|
1394
|
+
|
|
1395
|
+
**Options:**
|
|
1396
|
+
|
|
1397
|
+
| Flag | Description | Default | Required |
|
|
1398
|
+
|------|-------------|---------|----------|
|
|
1399
|
+
| `--from-image <value>` | Body field from_image [required] | - | No |
|
|
1400
|
+
| `--from-version <value>` | Body field from_version [required] | - | No |
|
|
1401
|
+
| `--to-image <value>` | Body field to_image [required] | - | No |
|
|
1402
|
+
| `--to-version <value>` | Body field to_version [required] | - | No |
|
|
1403
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
1404
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
1405
|
+
| `--json` | Output in JSON format | - | No |
|
|
1406
|
+
|
|
1407
|
+
#### `services pg-upgrade get`
|
|
1408
|
+
|
|
1409
|
+
Get a single upgrade by id, scoped to a service
|
|
1410
|
+
|
|
1411
|
+
**Usage:** `services pg-upgrade get <service-id> <id> [options]`
|
|
1412
|
+
|
|
1413
|
+
**Options:**
|
|
1414
|
+
|
|
1415
|
+
| Flag | Description | Default | Required |
|
|
1416
|
+
|------|-------------|---------|----------|
|
|
1417
|
+
| `--json` | Output in JSON format | - | No |
|
|
1418
|
+
|
|
1419
|
+
#### `services pg-upgrade cancel`
|
|
1420
|
+
|
|
1421
|
+
Cancel an in-flight upgrade
|
|
1422
|
+
|
|
1423
|
+
**Usage:** `services pg-upgrade cancel <service-id> <id> [options]`
|
|
1424
|
+
|
|
1425
|
+
**Options:**
|
|
1426
|
+
|
|
1427
|
+
| Flag | Description | Default | Required |
|
|
1428
|
+
|------|-------------|---------|----------|
|
|
1429
|
+
| `-y, --yes` | Do not ask for confirmation | - | No |
|
|
1430
|
+
| `--json` | Output in JSON format | - | No |
|
|
1431
|
+
|
|
1432
|
+
#### `services pg-upgrade get-logs`
|
|
1433
|
+
|
|
1434
|
+
Get the accumulated JSONL log content for an upgrade (for dashboard display)
|
|
1435
|
+
|
|
1436
|
+
**Usage:** `services pg-upgrade get-logs <service-id> <id> [options]`
|
|
1437
|
+
|
|
1438
|
+
**Options:**
|
|
1439
|
+
|
|
1440
|
+
| Flag | Description | Default | Required |
|
|
1441
|
+
|------|-------------|---------|----------|
|
|
1442
|
+
| `--json` | Output in JSON format | - | No |
|
|
1443
|
+
|
|
1444
|
+
#### `services pg-upgrade retry`
|
|
1445
|
+
|
|
1446
|
+
Retry a failed upgrade
|
|
1447
|
+
|
|
1448
|
+
**Usage:** `services pg-upgrade retry <service-id> <id> [options]`
|
|
1449
|
+
|
|
1450
|
+
**Options:**
|
|
1451
|
+
|
|
1452
|
+
| Flag | Description | Default | Required |
|
|
1453
|
+
|------|-------------|---------|----------|
|
|
1454
|
+
| `--json` | Output in JSON format | - | No |
|
|
1455
|
+
|
|
1456
|
+
#### `services pg-upgrade rollback`
|
|
1457
|
+
|
|
1458
|
+
Roll a completed upgrade back to its pre-upgrade PGDATA volume and old image
|
|
1459
|
+
|
|
1460
|
+
**Usage:** `services pg-upgrade rollback <service-id> <id> [options]`
|
|
1461
|
+
|
|
1462
|
+
**Options:**
|
|
1463
|
+
|
|
1464
|
+
| Flag | Description | Default | Required |
|
|
1465
|
+
|------|-------------|---------|----------|
|
|
1466
|
+
| `-y, --yes` | Do not ask for confirmation | - | No |
|
|
1467
|
+
| `--json` | Output in JSON format | - | No |
|