← All docs

cp

cp

Copy an existing VM

Usage

cp <source-vm> [new-name] [--memory=<size>] [--cpu=<count>] [--disk=<size>]

Options

  • --copy-tags: copy tags from source VM (use --copy-tags=false to disable)
  • --cpu: number of CPUs
  • --disk: disk size (e.g., 20, 20GB, 50G)
  • --json: output in JSON format
  • --memory: memory allocation (e.g., 4, 4GB, 8G)

Examples

cp my-vm                          # copy with auto-generated name
cp my-vm my-vm-copy               # copy with specific name
cp my-vm --cpu=4 --memory=16GB    # copy with different resources
cp my-vm --copy-tags=false        # copy without tags