phala 1.1.22 → 1.2.1

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 CHANGED
@@ -36,6 +36,8 @@ phala ssh
36
36
 
37
37
  > **Tip:** Run `phala link` after your first deploy. It creates a `phala.toml` that binds the directory to the CVM, so subsequent commands (`deploy`, `logs`, `ssh`, `cp`, `ps`) work without specifying a CVM ID. `phala.toml` is safe to commit to version control.
38
38
 
39
+ By default, `phala deploy` uses the Phala Cloud pre-launch script. Use `--no-pre-launch-script` to deploy without one. An empty file passed to `--pre-launch-script` still selects the default; the two flags cannot be combined. See the [deploy reference](docs/deploy.md) for details.
40
+
39
41
  ## Commands
40
42
 
41
43
  ### Deploy
@@ -105,6 +107,7 @@ When `phala.toml` exists, commands like `deploy`, `logs`, `ssh`, and `cp` automa
105
107
  |----------|-------------|
106
108
  | `PHALA_CLOUD_API_KEY` | Override the stored API key |
107
109
  | `PHALA_CLOUD_API_PREFIX` | Override the API base URL |
110
+ | `PHALA_CLOUD_PROFILE` | Use this auth profile instead of the current one (same as `--profile`) |
108
111
  | `PHALA_CLOUD_DIR` | Override the credentials directory (default: `~/.phala-cloud`) |
109
112
  | `PHALA_UPDATE_CHANNEL` | Release channel for `self update` (e.g., `latest`, `beta`) |
110
113
 
@@ -117,6 +120,10 @@ phala login --profile work
117
120
  phala login --profile personal
118
121
  phala switch work
119
122
  phala profiles
123
+
124
+ # Use another profile for one command without switching
125
+ phala cvms list --profile personal
126
+ PHALA_CLOUD_PROFILE=personal phala cvms list
120
127
  ```
121
128
 
122
129
  Credentials are stored in `~/.phala-cloud/` with restricted file permissions.
@@ -140,6 +147,12 @@ bun run type-check # TypeScript type checking
140
147
  bun run test # Run tests
141
148
  ```
142
149
 
150
+ ## How do I upgrade to these CLI changes?
151
+
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`, `--dev-os` / `--no-dev-os`, `--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.
153
+ - `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
+ - `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
+
143
156
  ## License
144
157
 
145
158
  [Apache-2.0](LICENSE)