Skip to content

Commit d5aa828

Browse files
committed
fix: update help doc and add SandboxInfo prefix check
1 parent 70fbe6c commit d5aa828

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

messages/create.sandbox.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ You can also use this command to clone an existing sandbox. Use the --source-san
2222

2323
<%= config.bin %> <%= command.id %> --source-sandbox-name ExistingSandbox --name NewClonedSandbox --target-org prodOrg --alias MyDevSandbox --set-default --wait 30
2424

25+
- Clone the existing sandbox with ID "0GQB0000000TVobOAG" and do not wait.
26+
27+
<%= config.bin %> <%= command.id %> --source-id 0GQB0000000TVobOAG --name SbxClone --target-org prodOrg --async
28+
2529
# flags.setDefault.summary
2630

2731
Set the sandbox org as your default org.
@@ -74,7 +78,7 @@ ID of the sandbox org to clone.
7478

7579
# flags.source-id.description
7680

77-
The value of --source-id must be an existing sandbox. The existing sandbox, and the new sandbox specified with the --name flag, must both be associated with the production org (--target-org) that contains the sandbox licenses.
81+
The value of --source-id must be an existing sandbox (SandboxInfo.Id). The existing sandbox, and the new sandbox specified with the --name flag, must both be associated with the production org (--target-org) that contains the sandbox licenses.
7882

7983
You can specify either --source-sandbox-name or --source-id when cloning an existing sandbox, but not both.
8084

src/commands/org/create/sandbox.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ export default class CreateSandbox extends SandboxCommandBase<SandboxCommandResp
9292
description: messages.getMessage('flags.source-id.description'),
9393
exclusive: ['license-type'],
9494
length: 'both',
95+
startsWith: '0GQ',
9596
char: undefined,
9697
}),
9798
'license-type': Flags.custom<SandboxLicenseType>({

0 commit comments

Comments
 (0)