Update Sandbox

This command updates the configuration of an existing sandbox or refreshes it.

Usage

$ sfp sandbox:update [flags]
$ sfp org:update:sandbox [flags]

Flags

FlagRequiredDescription
-v, --targetdevhubusername=<value>NoUsername or alias of the production org
-n, --name=<value>Yes (if no definition file)Name of the sandbox to update
-f, --definition-file=<value>NoPath to a sandbox definition file
--jsonNoFormat output as JSON
--loglevel=<option>NoLogging level for this command invocation

Examples

$ sfp sandbox:update -o MyDevHub -n my-sandbox
$ sfp sandbox:update -o MyDevHub -f config/sandbox-def.json

Sandbox Definition File

If using a definition file, create a JSON file (default location: config/sandbox-def.json) with the following structure:

{
  "sandboxName": "MySandbox",
  "description": "Updated sandbox description",
  "apexClassId": "01p...",
  "autoActivate": true,
  "copyChatter": true,
  "historyDays": 0,
  "licenseType": "DEVELOPER",
  "templateId": "0TT..."
}

Note: When using a definition file, the --name flag is ignored.

On this page