# clone_wordpress

> Clone a WordPress install to a new location on the same account.

- Tier: W
- Required scope: write:hosting
- Annotations: none
- Docs: https://api.inleed.com/tools/clone-wordpress

## Description

Clone a WordPress install to a new location on the same account. The source is `install_id` (from `list_wordpress_installs`); the destination is `target_domain` and an optional `target_path` on the same account. To make a throwaway staging copy on the same domain use `manage_wordpress_staging` instead. On a node without a licensed Installatron it returns `cloned:false` with the reason rather than failing.

## Input schema

- `input` — string (required). A domain, email address, website URL, numeric service id, or hosting-account username the customer actually owns. Resolved to the owning account automatically; the resolved target is echoed back in the response.
- `install_id` — string (required). The install to clone, from list_wordpress_installs (installs[].id).
- `target_domain` — string (required). The destination domain on the same account, e.g. staging.example.com.
- `target_path` — string. Optional destination subfolder, relative to the target domain root. Omit for the domain root.

## Example call

```json
{
  "name": "clone_wordpress",
  "arguments": {
    "input": "example.se",
    "install_id": "res_01hx8n3k5p7q9r2s4t6v8w0y55",
    "target_domain": "example.se"
  }
}
```

