phala 1.1.3-beta.1 → 1.1.4-beta.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 +19 -6
- package/dist/api/index.js +9 -9
- package/dist/index.js +153 -128
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -486,7 +486,7 @@ phala cvms get app_123456
|
|
|
486
486
|
phala deploy [options]
|
|
487
487
|
```
|
|
488
488
|
|
|
489
|
-
|
|
489
|
+
Deploy a new CVM or update an existing one. Creates a new CVM by default. If `--cvm-id` is provided or a CVM ID is configured in `phala.toml`, updates the existing CVM instead.
|
|
490
490
|
|
|
491
491
|
**Key Features:**
|
|
492
492
|
- **Auto Resource Matching**: Backend automatically finds the best available node based on your requirements
|
|
@@ -517,23 +517,36 @@ Create a new CVM with automatic resource matching. This is the recommended comma
|
|
|
517
517
|
**Examples:**
|
|
518
518
|
|
|
519
519
|
```bash
|
|
520
|
+
# --- New Deployment ---
|
|
521
|
+
|
|
520
522
|
# Simplest - auto-select everything
|
|
521
523
|
phala deploy
|
|
522
524
|
|
|
523
525
|
# Specify instance type and region
|
|
524
526
|
phala deploy --instance-type tdx.medium --region us-west
|
|
525
527
|
|
|
526
|
-
#
|
|
527
|
-
phala deploy
|
|
528
|
+
# With environment file
|
|
529
|
+
phala deploy -e .env
|
|
528
530
|
|
|
529
531
|
# With on-chain KMS
|
|
530
532
|
phala deploy --kms-id ethereum --private-key <key> --rpc-url <url>
|
|
531
533
|
|
|
532
|
-
# Deploy to specific node (advanced)
|
|
533
|
-
phala deploy --node-id 6
|
|
534
|
-
|
|
535
534
|
# Interactive mode for guided setup
|
|
536
535
|
phala deploy --interactive
|
|
536
|
+
|
|
537
|
+
# --- Update Existing CVM ---
|
|
538
|
+
|
|
539
|
+
# Update by CVM ID (app_id, UUID, or name)
|
|
540
|
+
phala deploy --cvm-id app_abc123
|
|
541
|
+
|
|
542
|
+
# Update with new compose file and environment variables
|
|
543
|
+
phala deploy --cvm-id my-app --compose ./new-docker-compose.yml -e .env
|
|
544
|
+
|
|
545
|
+
# Update and wait for completion
|
|
546
|
+
phala deploy --cvm-id app_abc123 --wait
|
|
547
|
+
|
|
548
|
+
# If phala.toml has cvm_id configured, just run deploy to update
|
|
549
|
+
phala deploy
|
|
537
550
|
```
|
|
538
551
|
|
|
539
552
|
**Error Handling:**
|