---
title: "How to create projects based on a template"
canonical: "https://support.appfire.com/space/SUPPORT/89134642/How%20to%20create%20projects%20based%20on%20a%20template"
format: markdown
---
# Description

Many organizations need to create projects based on a standard process. This shows how to automate doing this type of activity to ensure consistency. This example is based on using the [run](https://appfire.atlassian.net/wiki/display/JCLI/Documentation#Documentation-run) action, but similar techniques ([runFromCsv](https://appfire.atlassian.net/wiki/display/JCLI/Documentation#Documentation-runFromCsv), etc...) will work similarly.

> ✅ **If you use Confluence in your organization**
> ✅ 
> ✅ [How to create a self service create project page](https://appfire.atlassian.net/wiki/pages/createpage.action?spaceKey=CCLI&title=How%20to%20create%20a%20self%20service%20create%20project%20page) describes a technique for delegating administrative tasks like this to project leaders.

# Steps

1. Create an action script.
  **Example action script**
2. Run the action from a command line.
  **Command**
  **Results**

# Tips

> ✅ **Use common**
> ✅ 
> ✅ **--common** is used to avoid duplicating parameters across many of the actions. It simply provides all the parameters on each of the actions run. Only include parameters that will not duplicate provided parameters and provide the correct value on all actions being run.

> ✅ **Use findReplace**
> ✅ 
> ✅ Use **--findReplace** or **--findReplaceRegex** to parameterize your action script to enforce rules or prevent duplication.

> ✅ **Confluence installed?**
> ✅ 
> ✅ If you have Confluence, you can do this kind of administrative action from a page using the [Run CLI Actions in Confluence](https://appfire.atlassian.net/wiki/spaces/CCLI/overview) - [How to semi-automate repetitive tasks](https://appfire.atlassian.net/wiki/display/CCLI/How+to+semi-automate+repetitive+tasks)

> ✅ **Automate as part of a Jira workflow**
> ✅ 
> ✅ The [Run CLI Actions in Jira](https://appfire.atlassian.net/wiki/spaces/JCLIP/overview) provides a way to do this kind of activity as part of a workflow. Your process could have a "Create a new project" task that drives the automation to create the project from a workflow based on custom fields settings.