# unikraft volumes import

Import data into a volume.

```
unikraft volumes import <volume> [flags]
```

## Examples

Import the current directory into a volume:

```bash
unikraft volume import my-volume --source .
```

Import a local directory into a volume:

```bash
unikraft volume import my-volume --source ./data
```

Import a CPIO archive into a volume:

```bash
unikraft volume import my-volume --source rootfs.cpio
```

Import a Dockerfile context into a volume:

```bash
unikraft volume import my-volume --source ./Dockerfile
```

## Options

```
  -f, --force                 Force import even if the data might exceed volume capacity.
  -s, --source path           Data source: local directory, CPIO archive, or Dockerfile.
```

## Options inherited from parent commands

```
  --config file               Path to the configuration file.
  --log-level level           Set the logging level. (default info)
  --log-type type             Set the log type. (default text)
  --profile name              Set the current profile.
  --telemetry                 Toggle anonymous usage analytics. (default true)
```

## See Also

* [`unikraft volumes`](../volumes.mdx): Manage Unikraft Cloud volumes.

