org get snapshot
Get details about a scratch org snapshot.
Snapshot creation can take a while. Use this command with the snapshot name or ID to check its creation status. After the status changes to Active, you can use the snapshot to create scratch orgs.
To create a snapshot, use the “sf org create snapshot” command. To retrieve a list of all snapshots, use “sf org list snapshot”.
force:org:snapshot:get
| Flag Name (Long) | Flag Name (Short) | Description |
|---|---|---|
‑‑api‑version | N/A | Type: Value Override the api version used for api requests made by this command |
‑‑flags‑dir | N/A | Type: Value Import flag values from a directory. |
‑‑json | N/A | Type: Boolean Format output as json. |
‑‑snapshot | ‑s | Type: Value Required Name or ID of snapshot to retrieve. The IDs of scratch org snapshots start with 0Oo. |
‑‑target‑dev‑hub | ‑v | Type: Value Required Username or alias of the Dev Hub org. Not required if the target-dev-hub configuration variable is already set. |
Get snapshot details using its ID and the default Dev Hub org:
Get snapshot details using its name from a Dev Hub org with alias SnapshotDevHub: