---
title: "admCloneSpace"
canonical: "https://support.appfire.com/space/PSCONF/15304297/admCloneSpace"
format: markdown
---
> Macro (aura-html)

> Macro (table-plus)
> 
> |  |  |  |  |
> | --- | --- | --- | --- |
> | **Syntax** | admCloneSpace(sourceSpaceKey, targetSpaceKey, targetSpaceName, targetSpaceDescription, cloneCategories, clonePermissions, cloneLabels, cloneComments, cloneAttachments, cloneMetadata) | **Package** |  |
> | **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Clones space with pages, labels, categories, attachments, permissions and look and feel.

Clones space with pages, labels, categories, attachments, permissions and look and feel.

## Return Type

**Boolean (true/false)**

Returns true if space, pages, labels, categories, attachments, and permissions are cloned successfully.

## Example

```javascript
string sourceSpaceKey = "TST";
string targetSpaceKey = "NEWTST";
string targetSpaceName = "New Test Space";
string targetSpaceDescription = "This space was cloned from the Test space";
boolean cloneCategories = true;
boolean clonePermissions = true;
boolean cloneLabels = true;
boolean cloneComments = true;
boolean cloneAttachments = true;
boolean cloneMetadata = true;

return admCloneSpace(sourceSpaceKey, targetSpaceKey, targetSpaceName, targetSpaceDescription, cloneCategories, clonePermissions, cloneLabels, cloneComments, cloneAttachments, cloneMetadata);
```

## See also

> Macro (contentbylabel)