org resume scratch
Resume the creation of an incomplete scratch org.
When the original “sf org create scratch” command either times out or is run with the –async flag, it displays a job ID.
Run this command by either passing it a job ID or using the –use-most-recent flag to specify the most recent incomplete scratch org.
env:resume:scratch
| Flag Name (Long) | Flag Name (Short) | Description |
|---|---|---|
‑‑flags‑dir | N/A | Type: Value Import flag values from a directory. |
‑‑job‑id | ‑i | Type: Value Job ID of the incomplete scratch org create that you want to resume. The job ID is the same as the record ID of the incomplete scratch org in the ScratchOrgInfo object of the Dev Hub. The job ID is valid for 24 hours after you start the scratch org creation. |
‑‑json | N/A | Type: Boolean Format output as json. |
‑‑use‑most‑recent | ‑r | Type: Boolean Use the job ID of the most recent incomplete scratch org. |
‑‑wait | ‑w | Type: Value Number of minutes to wait for the scratch org to be ready. If the command continues to run after the wait period, the CLI returns control of the terminal window to you and returns the job ID. To resume checking the scratch creation, rerun this command. |
Resume a scratch org create with a job ID:
Resume your most recent incomplete scratch org: