org resume sandbox

Check the status of a sandbox creation, and log in to it if it’s ready.

Description for org resume sandbox 

Sandbox creation can take a long time. If the original “sf org create sandbox” command either times out, or you specified the –async flag, the command displays a job ID. Use this job ID to check whether the sandbox creation is complete, and if it is, the command then logs into it.

You can also use the sandbox name to check the status or the –use-most-recent flag to use the job ID of the most recent sandbox creation.

Aliases for org resume sandbox 

env:resume:sandbox

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 sandbox creation that you want to check the status of.

The job ID is valid for 24 hours after you start the sandbox creation.
‑‑jsonN/AType: Boolean

Format output as json.
‑‑name‑nType: Value

Name of the sandbox org.
‑‑target‑org‑oType: Value

Username or alias of the production org that contains the sandbox license.

When it creates the sandbox org, Salesforce copies the metadata, and optionally data, from your production org to the new sandbox org.
‑‑use‑most‑recent‑lType: Boolean

Use the most recent sandbox create request.
‑‑wait‑wType: Value

Number of minutes to wait for the sandbox 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 sandbox creation, rerun this command.

Examples for org resume sandbox 

Check the status of a sandbox creation using its name and specify a production org with alias “prodOrg”:

1sf org resume sandbox --name mysandbox --target-org prodOrg

Check the status using the job ID:

1sf org resume sandbox --job-id 0GRxxxxxxxx

Check the status of the most recent sandbox create request:

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