org resume scratch

Resume the creation of an incomplete scratch org.

Description for org resume scratch 

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.

Aliases for org resume scratch 

env:resume:scratch

Flags 

Flag Name (Long)Flag Name (Short)Description
‑‑flags‑dirN/AType: Value

Import flag values from a directory.
‑‑job‑id‑iType: 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.
‑‑jsonN/AType: Boolean

Format output as json.
‑‑use‑most‑recent‑rType: Boolean

Use the job ID of the most recent incomplete scratch org.
‑‑wait‑wType: 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.

Examples for org resume scratch 

Resume a scratch org create with a job ID:

1sf org resume scratch --job-id 2SR3u0000008fBDGAY

Resume your most recent incomplete scratch org:

1sf org resume scratch --use-most-recent