---
name: "lxc-to-lxd"
section: "1"
platform: "linux"
package: "lxd-tools"
version: "5.0.2+git20231211.1364ae4-9+deb13u7"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/lxc-to-lxd"
---

# lxc-to-lxd(1)

Convert LXC containers to LXD

## NAME

lxc-to-lxd - Convert LXC containers to LXD

## DESCRIPTION

Command line client for container migration

### Usage:

-

  lxc-to-lxd \[flags\]

### Flags:

- **--all**

  Import all containers

- **--containers**

  Container(s) to import

- **--debug**

  Print debugging output

- **--delete**

  Delete the source container

- **--dry-run**

  Dry run mode

- **-h**, **--help**

  Print help

- **--lxcpath**

  Alternate LXC path (default "~/.local/share/lxc")

- **--rsync-args**

  Extra arguments to pass to rsync

- **--storage**

  Storage pool to use for the container

- **--version**

  Print version number
