# 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-dir`       | N/A               | **Type:** Value<br><br>Import flag values from a directory.                                                                                                                                                                                                                                             |
| `--job-id`          | `-i`              | **Type:** Value<br><br>Job ID of the incomplete scratch org create that you want to resume.<br><br>The job ID is the same as the record ID of the incomplete scratch org in the ScratchOrgInfo object of the Dev Hub.<br><br>The job ID is valid for 24 hours after you start the scratch org creation. |
| `--json`            | N/A               | **Type:** Boolean<br><br>Format output as json.                                                                                                                                                                                                                                                         |
| `--use-most-recent` | `-r`              | **Type:** Boolean<br><br>Use the job ID of the most recent incomplete scratch org.                                                                                                                                                                                                                      |
| `--wait`            | `-w`              | **Type:** Value<br><br>Number of minutes to wait for the scratch org to be ready.<br><br>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:

```shell
sf org resume scratch --job-id 2SR3u0000008fBDGAY
```

Resume your most recent incomplete scratch org:

```shell
sf org resume scratch --use-most-recent
```
