> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fly.io/llms.txt
> Use this file to discover all available pages before exploring further.

# fly sprites restore

Restore a sprite's filesystem from a checkpoint.

Restoring replaces the sprite's writable filesystem overlay with the state in
the checkpoint and restarts its environment, which ends active sessions. The
current state cannot be recovered afterwards unless you checkpoint it first:

fly sprites checkpoint create --comment "before rollback"
fly sprites restore v1

It asks for confirmation unless --yes is set.

## Usage

```
fly sprites restore [flags] <version-id>
```

## Examples

```
  fly sprites restore v1
  fly sprites restore -o my-org -s my-sprite --yes v2
```

## Options

```
  -h, --help            help for restore
  -j, --json            JSON output
  -o, --org string      The target Fly.io organization
  -s, --sprite string   The target sprite. Defaults to the one set with 'fly sprites use'
  -y, --yes             Accept all confirmations (also --auto-confirm)
```

## Global Options

```
  -t, --access-token string   Fly.io API token to use, overriding FLY_ACCESS_TOKEN, FLY_API_TOKEN and the saved login
      --debug                 Print additional logs and traces
      --verbose               Verbose output
```

## See Also

* [fly sprites](https://docs.fly.io/flyctl/cmd/fly_sprites)	 - Manage Sprites: persistent Linux environments for development and agents
