> ## 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 push

Copy one or more local files or directories into a sprite.

The last argument is the remote destination. With several sources it is a
directory that each source is copied into.

## Usage

```
fly sprites file push [flags] <source>... [<sprite>:]<path>
```

## Examples

```
  fly sprites file push -s my-sprite ./config.yml /etc/app/config.yml
  fly sprites file push ./config.yml my-sprite:/etc/app/config.yml
  fly sprites file push -s my-sprite ./a.txt ./b.txt /tmp/uploads/
  fly sprites file push -s my-sprite -r ./dist/ /srv/app/
  fly sprites file push -s my-sprite -p ./app.conf /etc/nested/dir/app.conf
```

## Options

```
  -h, --help            help for push
  -j, --json            JSON output
  -o, --org string      The target Fly.io organization
  -p, --parents         Create missing parent directories in the sprite
  -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
