> ## 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 file pull

Copy one or more files or directories from a sprite to the local machine.

The last argument is the local destination. With several sources it is a
directory that each source is copied into. Sources may come from different
sprites.

## Usage

```
fly sprites file pull [flags] [<sprite>:]<path>... <target>
```

## Examples

```
  fly sprites file pull -s my-sprite /var/log/app.log .
  fly sprites file pull -s my-sprite /etc/app/config.yml ./config.yml
  fly sprites file pull my-sprite:/tmp/a.txt other-sprite:/tmp/b.txt ./downloads/
  fly sprites file pull -s my-sprite -r /srv/app/dist/ ./dist/
  fly sprites file pull -s my-sprite -p /etc/nested/file.conf ./local/nested/file.conf
```

## Options

```
  -h, --help            help for pull
  -j, --json            JSON output
  -o, --org string      The target Fly.io organization
  -p, --parents         Create missing parent directories locally
  -r, --recursive       Copy directories recursively
  -s, --sprite string   The target sprite. Defaults to the one set with 'fly sprites use'
```

## 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 file](https://docs.fly.io/flyctl/cmd/fly_sprites_file)	 - Copy files to and from a sprite, or edit one in place
