# org get snapshot

Get details about a scratch org snapshot.

## Description for org get 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".

## Aliases for org get snapshot

`force:org:snapshot:get`

## Flags

| Flag Name (Long)   | Flag Name (Short) | Description                                                                                                                                              |
| ------------------ | ----------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--api-version`    | N/A               | **Type:** Value<br><br>Override the api version used for api requests made by this command                                                               |
| `--flags-dir`      | N/A               | **Type:** Value<br><br>Import flag values from a directory.                                                                                              |
| `--json`           | N/A               | **Type:** Boolean<br><br>Format output as json.                                                                                                          |
| `--snapshot`       | `-s`              | **Type:** Value<br>**Required**<br><br>Name or ID of snapshot to retrieve.<br><br>The IDs of scratch org snapshots start with 0Oo.                       |
| `--target-dev-hub` | `-v`              | **Type:** Value<br>**Required**<br><br>Username or alias of the Dev Hub org. Not required if the `target-dev-hub` configuration variable is already set. |

## Examples for org get snapshot

Get snapshot details using its ID and the default Dev Hub org:

```shell
sf org get snapshot --snapshot 0Oo...
```

Get snapshot details using its name from a Dev Hub org with alias SnapshotDevHub:

```shell
sf org get snapshot --snapshot Dependencies --target-dev-hub SnapshotDevHub
```
