---
title: "copyComponents"
canonical: "https://support.appfire.com/space/JCLI/70789698/copyComponents"
format: markdown
---
> Macro (aura-html)

See also: [Actions](https://appfire.atlassian.net/wiki/spaces/JCLI/pages/70787366)

> Macro (details)
> 
> | **Description** | Copy all or some components from one project to another. Archived components will be copied and archived in target project. To exclude archived components from being copied, use '--options excludeArchived'. |
> | --- | --- |
> | **Required Parameters** | [project](https://appfire.atlassian.net/wiki/spaces/JCLI/pages/70784165), [toProject](https://appfire.atlassian.net/wiki/spaces/JCLI/pages/70789936) |
> | **Optional Parameters** | [components](https://appfire.atlassian.net/wiki/spaces/JCLI/pages/70790013), [replace](https://appfire.atlassian.net/wiki/spaces/JCLI/pages/70785898), [options](https://appfire.atlassian.net/wiki/spaces/JCLI/pages/70784233) |
> | **Type** | [Create](https://appfire.atlassian.net/wiki/spaces/JCLI/pages/70780909/Action+Types#ActionTypes-Create) |
> | **Category** | [Components](https://appfire.atlassian.net/wiki/spaces/JCLI/pages/70780591/Action+Categories#ActionCategories-Components) |
> | **Output Formats** |  |
> | **Replacement Variables** |  |
> | **Hosting** | cloud,server,datacenter |
> | **Since Version** |  |
> | **Examples** | [copyComponents](https://appfire.atlassian.net/wiki/spaces/JCLI/pages/70782732/Examples#Examples-copyComponents) |

## Related How To's

> Macro (cql-query)