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

Download a file from a sprite, open it in $VISUAL or $EDITOR, and upload it
if it changed.

When stdin is not a terminal, the new contents are read from it instead. Empty
input is refused rather than emptying the file.

## Usage

```
fly sprites file edit [flags] [<sprite>:]<path>
```

## Options

```
  -h, --help            help for edit
  -o, --org string      The target Fly.io organization
  -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
