<a id="lxc-file-push-md"></a>

# `lxc file push`

Push files into instances

## Synopsis

Description:
Push files into instances

```none
lxc file push <source path>... [<remote>:]<instance>/<path> [flags]
```

## Examples

```none
  lxc file push /etc/hosts foo/etc/hosts
     To push /etc/hosts into the instance "foo".
```

## Options

```none
  -p, --create-dirs   Create any directories necessary
      --gid int       Set the file's gid on push (default -1)
      --mode          Set the file's perms on push
  -r, --recursive     Recursively transfer files
      --uid int       Set the file's uid on push (default -1)
```

## Options inherited from parent commands

```none
      --debug          Show all debug messages
      --force-local    Force using the local unix socket
  -h, --help           Print help
      --project        Override the source project
  -q, --quiet          Do not show progress information
      --sub-commands   Use with help or --help to view sub-commands
  -v, --verbose        Show all information messages
      --version        Print version number
```

## SEE ALSO

* [lxc file](https://canonical.com/lxd/docs/latest/reference/manpages/lxc/file/index.html.md#lxc-file-md)	 - Manage files in instances
