phala 1.2.7 → 1.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -1
- package/dist/api/index.js +32 -32
- package/dist/index.js +263 -184
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -107,6 +107,7 @@ When `phala.toml` exists, commands like `deploy`, `logs`, `ssh`, and `cp` automa
|
|
|
107
107
|
|----------|-------------|
|
|
108
108
|
| `PHALA_CLOUD_API_KEY` | Override the stored API key |
|
|
109
109
|
| `PHALA_CLOUD_API_PREFIX` | Override the API base URL |
|
|
110
|
+
| `PHALA_CLOUD_REQUESTS_PER_MINUTE` | Pace request starts per credential (default: `180`; must be a positive integer) |
|
|
110
111
|
| `PHALA_CLOUD_PROFILE` | Use this auth profile instead of the current one (same as `--profile`) |
|
|
111
112
|
| `PHALA_CLOUD_DIR` | Override the credentials directory (default: `~/.phala-cloud`) |
|
|
112
113
|
| `PHALA_UPDATE_CHANNEL` | Release channel for `self update` (e.g., `latest`, `beta`) |
|
|
@@ -149,7 +150,11 @@ bun run test # Run tests
|
|
|
149
150
|
|
|
150
151
|
## How do I upgrade to these CLI changes?
|
|
151
152
|
|
|
152
|
-
- `phala deploy --cvm-id` (or a CVM ID in `phala.toml`) now fails before sending any request when a create-only flag is passed, instead of ignoring it: `--name`, `--region`, `--node`, `--custom-app-id`, `--nonce`, `--key-provider-mode`, `--
|
|
153
|
+
- `phala deploy --cvm-id` (or a CVM ID in `phala.toml`) now fails before sending any request when a create-only flag is passed, instead of ignoring it: `--name`, `--region`, `--node`, `--custom-app-id`, `--nonce`, `--key-provider-mode`, `--ssh-pubkey`, `--secure-time`, `--fs`, `--skip-gateway`, `--kms`, `--kms-id`, `--kms-contract`, `--kms-contract-id` and `--experimental-key-provider-type`. Remove them from update invocations; they only apply when a new CVM is created.
|
|
154
|
+
- `--dev` (alias `--dev-os`) still applies to an update. On dstack 0.6+ the dev box is saved into your local compose file before it is deployed (a diff is printed, and `--json` reports `compose_file_updated`), and the choice is also recorded per CVM in `~/.phala-cloud/state.json`, keyed by the CVM's `vm_uuid`, and an update without the flag repeats it; `--dev` overrides it and `--no-dev-os` drops the dev box and the record. Records are written only after the API accepts the change. A missing record is never read as "turn SSH off": the CLI checks the deployed compose, keeps a dev box it finds there, and says so when the server does not return the compose.
|
|
155
|
+
- `--dev` without `--image` deploys the newest dstack release with dev-box support.
|
|
156
|
+
- Below dstack 0.6, `--dev` now deploys the dev variant of the release you pinned instead of the production image. The backend ignores `prefer_dev` when a request names an image, so `--dev-os --image dstack-0.5.7` used to deploy a CVM with no sshd; the CLI maps it to the release's dev image and fails when the catalog has none.
|
|
157
|
+
- Dev-box detection reads the parsed compose (anchors, merge keys, flow mappings, inline comments, YAML 1.1 booleans) instead of the text, and only a dev box on the exact image the CLI injects, with no `command`, `profiles` or `entrypoint` replacing sshd, counts as one. Compose files the CLI cannot parse are refused rather than extended.
|
|
153
158
|
- `phala cvms upgrade` now replaces only the Docker Compose file (and, with `--env-file`, the allowed env keys and encrypted env). It keeps the stored pre-launch script, visibility settings and allowed env keys instead of resetting them, and an unchanged compose does nothing.
|
|
154
159
|
- `phala cvms resize --allow-restart` is ignored and prints a warning (not in `--json` mode, which prints no warnings). The CVM restarts when the resize needs it. `phala cvms resize --json` no longer outputs `allow_restart`.
|
|
155
160
|
|