(incus_file_create.md)=
# `incus file create`

Create files and directories in instances

## Synopsis
```{line-block}

Description
  Create files and directories in instances



```
```
incus file create [<remote>:]<instance>/<path> [<symlink target path>] [flags]
```

## Examples

```
  incus file create foo/bar
     To create a file /bar in the foo instance.

  incus file create --type=symlink foo/bar baz
     To create a symlink /bar in instance foo whose target is baz.
```

## Options

```
  -p, --create-dirs[=true|false]   Create any directories necessary
  -f, --force[=true|false]         Force creating files or directories
      --gid                        Set the file's gid on create (default -1)
      --mode                       Set the file's perms on create
  -t, --type                       The type to create (file, symlink, or directory) (default "file")
      --uid                        Set the file's uid on create (default -1)
```

## Options inherited from parent commands

```
      --debug[=true|false]          Show all debug messages
      --explain[=true|false]        If the command is valid, explain its parsed arguments instead of running it
      --force-local[=true|false]    Force using the local unix socket
  -h, --help[=true|false]           Print help
      --project                     Override the source project
  -q, --quiet[=true|false]          Don't show progress information
      --sub-commands[=true|false]   Use with help or --help to view sub-commands
  -v, --verbose[=true|false]        Show all information messages
      --version[=true|false]        Print version number
```

## SEE ALSO

* [incus file](incus_file.md)	 - Manage files in instances

