phala 1.0.16 → 1.0.18
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 +54 -6
- package/dist/api/index.d.ts +374 -20
- package/dist/api/index.js +1 -1
- package/dist/chunk-6GN3UXCF.js +58 -0
- package/dist/chunk-6GN3UXCF.js.map +1 -0
- package/dist/index.js +25 -21
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-4IVSVXD3.js +0 -58
- package/dist/chunk-4IVSVXD3.js.map +0 -1
package/README.md
CHANGED
@@ -377,20 +377,27 @@ Commands for managing Cloud Virtual Machines (CVMs) on Phala Cloud.
|
|
377
377
|
|
378
378
|
#### List CVMs
|
379
379
|
|
380
|
+
List all your CVMs:
|
381
|
+
|
380
382
|
```bash
|
381
|
-
phala cvms list
|
383
|
+
phala cvms list
|
382
384
|
```
|
383
385
|
|
384
|
-
|
386
|
+
#### Manage TEE Nodes
|
385
387
|
|
386
|
-
|
387
|
-
- `-j, --json`: Output in JSON format
|
388
|
+
List all available worker nodes to find TEEPod IDs for replication. You can use any of these commands to list nodes:
|
388
389
|
|
389
|
-
**Example:**
|
390
390
|
```bash
|
391
|
-
|
391
|
+
# List all available nodes (recommended)
|
392
|
+
phala nodes
|
393
|
+
|
394
|
+
# Alternative ways to list nodes
|
395
|
+
phala nodes list
|
396
|
+
phala nodes ls
|
392
397
|
```
|
393
398
|
|
399
|
+
This will show you all available TEEPod nodes along with their IDs, which you can use with the `replicate` command's `--teepod-id` option. The output includes node details such as ID, name, region, FMSPC, device ID, and available images.
|
400
|
+
|
394
401
|
#### Get CVM Details
|
395
402
|
|
396
403
|
```bash
|
@@ -523,6 +530,47 @@ Restart a CVM.
|
|
523
530
|
phala cvms restart e15c1a29a9dfb522da528464a8d5ce40ac28039f
|
524
531
|
```
|
525
532
|
|
533
|
+
#### Replicate App
|
534
|
+
|
535
|
+
```bash
|
536
|
+
phala cvms replicate [options] <cvm-uuid>
|
537
|
+
```
|
538
|
+
|
539
|
+
Create a replica of an existing App using cvm-uuid. Before replicating, you can use `phala nodes` to find available TEEPod IDs.
|
540
|
+
|
541
|
+
**Basic Usage:**
|
542
|
+
```bash
|
543
|
+
phala cvms replicate <cvm-uuid>
|
544
|
+
```
|
545
|
+
|
546
|
+
**Options:**
|
547
|
+
- `--teepod-id <teepodId>`: TEEPod ID to use for the replica (use `phala nodes` to find available TEEPod IDs)
|
548
|
+
- `-e, --env-file <envFile>`: Path to environment file for the replica (will be encrypted with the original CVM's public key)
|
549
|
+
|
550
|
+
**Example Workflow:**
|
551
|
+
```bash
|
552
|
+
# List available nodes to find a teepod-id
|
553
|
+
phala nodes
|
554
|
+
|
555
|
+
# Create a replica using a specific teepod-id
|
556
|
+
phala cvms replicate <cvm-uuid> --teepod-id 123
|
557
|
+
|
558
|
+
# With environment variables
|
559
|
+
phala cvms replicate <cvm-uuid> -e .env
|
560
|
+
```
|
561
|
+
|
562
|
+
**Example:**
|
563
|
+
```bash
|
564
|
+
# Basic usage
|
565
|
+
phala cvms replicate e15c1a29a9dfb522da528464a8d5ce40ac28039f
|
566
|
+
|
567
|
+
# Specify a different TEEPod
|
568
|
+
phala cvms replicate e15c1a29a9dfb522da528464a8d5ce40ac28039f --teepod-id 123
|
569
|
+
|
570
|
+
# Use a different environment file
|
571
|
+
phala cvms replicate e15c1a29a9dfb522da528464a8d5ce40ac28039f -e .env.new
|
572
|
+
```
|
573
|
+
|
526
574
|
#### Delete CVM
|
527
575
|
|
528
576
|
```bash
|