You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sandbox cloning commands let you create copies of existing sandboxes with their data and configuration. A clone creates a new sandbox instance with the same data as the source sandbox, allowing you to test changes or create development environments without affecting the original.
653
+
654
+
Clone commands are available both under the `sandbox` topic and the legacy `ods` aliases:
aaaa-001-1642780893121 COMPLETED aaaa-001 100% 2/27/2025, 10:00:00 AM
727
+
aaaa-002-1642780893122 IN_PROGRESS aaaa-002 75% 2/27/2025, 11:00:00 AM
728
+
```
729
+
730
+
### b2c sandbox clone create
731
+
732
+
Create a new sandbox clone from an existing sandbox. This creates a complete copy of the source sandbox including all data, configuration, and custom code.
733
+
734
+
#### Usage
735
+
736
+
```bash
737
+
b2c sandbox clone create <SANDBOXID>
738
+
```
739
+
740
+
#### Arguments
741
+
742
+
| Argument | Description | Required |
743
+
|----------|-------------|----------|
744
+
|`SANDBOXID`| Sandbox ID (UUID or realm-instance, e.g., `zzzv-123`) to clone from | Yes |
745
+
746
+
#### Flags
747
+
748
+
| Flag | Description | Default |
749
+
|------|-------------|---------|
750
+
|`--target-profile`| Resource profile for the cloned sandbox (`medium`, `large`, `xlarge`, `xxlarge`). If not specified, uses the source sandbox's profile. | Source sandbox profile |
751
+
|`--ttl`| Time to live in hours (0 or negative = infinite, minimum 24 hours). Values between 1-23 are not allowed. |`24`|
752
+
|`--emails`| Comma-separated list of notification email addresses ||
753
+
754
+
#### Examples
755
+
756
+
```bash
757
+
# Create a clone with same profile as source sandbox
758
+
b2c sandbox clone create zzzv-123
759
+
760
+
# Create a clone with custom TTL (still uses source profile)
761
+
b2c sandbox clone create zzzv-123 --ttl 48
762
+
763
+
# Create a clone with different profile
764
+
b2c sandbox clone create zzzv-123 --target-profile large
765
+
766
+
# Create a clone with large profile and extended TTL
767
+
b2c sandbox clone create zzzv-123 --target-profile large --ttl 48
768
+
769
+
# Create a clone with notification emails
770
+
b2c sandbox clone create zzzv-123 --target-profile medium --emails dev@example.com,qa@example.com
771
+
772
+
# Create a clone with infinite TTL
773
+
b2c sandbox clone create zzzv-123 --ttl 0
774
+
775
+
# Output as JSON
776
+
b2c sandbox clone create zzzv-123 --json
777
+
```
778
+
779
+
#### Output
780
+
781
+
```
782
+
✓ Sandbox clone creation started successfully
783
+
Clone ID: aaaa-002-1642780893121
784
+
785
+
To check the clone status, run:
786
+
b2c sandbox clone get zzzv-123 aaaa-002-1642780893121
787
+
```
788
+
789
+
#### Notes
790
+
791
+
- Cloning can take significant time depending on sandbox size and data volume
792
+
- If `--target-profile` is not specified, the clone will use the same resource profile as the source sandbox
793
+
- The TTL must be 0 or negative (infinite), or 24 hours or greater. Values between 1-23 are rejected
794
+
- Notification emails will receive updates about the clone progress
795
+
- The clone will be created as a new sandbox instance in the same realm
796
+
797
+
### b2c sandbox clone get
798
+
799
+
Retrieve detailed information about a specific sandbox clone, including status, progress, and metadata.
800
+
801
+
#### Usage
802
+
803
+
```bash
804
+
b2c sandbox clone get <SANDBOXID><CLONEID>
805
+
```
806
+
807
+
#### Arguments
808
+
809
+
| Argument | Description | Required |
810
+
|----------|-------------|----------|
811
+
|`SANDBOXID`| Sandbox ID (UUID or realm-instance, e.g., `zzzv-123`) | Yes |
812
+
|`CLONEID`| Clone ID (e.g., `aaaa-002-1642780893121`) | Yes |
813
+
814
+
#### Examples
815
+
816
+
```bash
817
+
# Get clone details
818
+
b2c sandbox clone get zzzv-123 aaaa-002-1642780893121
819
+
820
+
# Output as JSON
821
+
b2c sandbox clone get zzzv-123 aaaa-002-1642780893121 --json
822
+
```
823
+
824
+
#### Output
825
+
826
+
Displays essential clone information in a formatted table:
For detailed information including status, timing, filesystem usage, and other metadata, use the `--json` flag.
841
+
842
+
#### Clone Status Values
843
+
844
+
| Status | Description |
845
+
|--------|-------------|
846
+
|`PENDING`| Clone is queued and waiting to start |
847
+
|`IN_PROGRESS`| Clone operation is currently running |
848
+
|`COMPLETED`| Clone finished successfully |
849
+
|`FAILED`| Clone operation failed |
850
+
851
+
---
852
+
650
853
## Realm-Level Commands
651
854
652
855
Realm commands operate at the **realm** level rather than on an individual sandbox. They are available as both `realm` topic commands and as `sandbox realm` subcommands:
0 commit comments