# Importing a project

You can use the import\_project\_repository CLI to import a project. If you import to an existing project, all of the project settings, except the project configuration items will be overridden. For information on the project configuration items, see [Exporting the project configuration](https://help.qlik.com/en-US/compose/December2024/Content/ComposeDWDL/Main/DW/Projects/export_project_configuration.htm).

Imported projects include the following:

* Databases
* Model definitions (entities and attributes)
* Mappings
* Custom ETLs
* Data warehouse tasks
* Data mart definitions

## Command syntax

`ComposeCli.exe import_project_repository --project project_name --infile input_file [--password password] [--is_without_credentials] [--override_configuration] [--dont_backup_existing_project] [--autogen]`

## Parameters

| Parameter | Description |
| --- | --- |
| --project | The name of the project. |
| --infile | The full path to the input file, including the file name. This file is in JSON format (e.g. C:\file.json). |
| --password | The password specified with the [password](https://help.qlik.com/en-US/compose/December2024/Content/ComposeDWDL/Main/DW/Projects/export_project.htm#export_password_param) parameter during export.<br><br>For instructions on changing the master user password, see [Changing the master user password](https://help.qlik.com/en-US/compose/December2024/Content/ComposeDWDL/Main/DW/Installation%20and%20Setup/change_master_user_password.htm).<br><br>See also: [Moving projects from the test environment to the production environment](https://help.qlik.com/en-US/compose/December2024/Content/ComposeDWDL/Main/DW/Projects/move_projects_from_test_environment_to_production_environment.htm) and [Import/export scenarios - When is a password required?](https://help.qlik.com/en-US/compose/December2024/Content/ComposeDWDL/Main/DW/Projects/import_export_scenarios_when_is_password_required.htm) |
| --is\_without\_credentials | Use this parameter to specify to import the project settings without the encrypted fields. In this case, you will need to manually enter the project passwords in the Compose database connection settings. |
| --override\_configuration | Use this parameter to override the existing project configuration. When importing a project, the default setting is not to override the existing project configuration. |
| --dont\_backup\_existing\_project | Use this parameter to specify not to back up the existing project. By default, existing projects are backed up to the following location (and automatically restored if the import fails):<br><br>&lt;product\_dir&gt;\data\projects\&lt;project\_name&gt;\_backup\_&lt;timestamp&gt; |
| --autogen | Use this paramter to automatically generate the imported project. If the project is imported successfully, Compose will:<br><br><ul> <li>Validate the model and adjust the data warehouse if needed</li> <li>Create the data warehouse tables if they do not exist</li> <li>Validate the data warehouse</li> <li> <p>Adjust the data warehouse if needed.</p> <p>If the "Adjust" cannot be performed automatically, the "autogen" process will be stopped.</p> </li> <li> <p>Generate all data warehouse tasks. </p> <p> If <span>Compose</span> encounters an error while generating a data warehouse task, it will skip the problematic task and continue with the remaining tasks.</p> </li> <li> <p>Create, adjust and generate all data marts</p> </li> </ul><br><br>Information note<br><br>If an error is encountered during the "Create" or "Generate" operations, it is recommended to switch to the Compose Console and perform these operations manually. Doing so will generate a more detailed error message and enable you to resolve the issue.<br><br>For information on validating the data warehouse and generating the task, see [Creating and managing the data warehouse](https://help.qlik.com/en-US/compose/December2024/Content/ComposeDWDL/Main/DW/Data%20Warehouse/create_and_manage_data_warehouse.htm). For information on generating the data mart task, see [Creating and managing data marts](https://help.qlik.com/en-US/compose/December2024/Content/ComposeDWDL/Main/DW/Data%20Marts/create_and_manage_data_marts.htm). |

## Example

`ComposeCli.exe import_project_repository --project MyProject --infile file.json --password MyPassword --override_configuration --autogen`