# Setup Existing Project on CLI

When working on an existing project in App Maker, it’s essential to properly set up the project environment before starting development. This involves cloning the repository, installing project dependencies, and preparing the development environment for mobile platforms (iOS and Android). This guide provides step-by-step instructions to ensure a smooth setup process.

## <mark style="color:red;">Clone the Project Repository​</mark> <a href="#clone-the-project-repository" id="clone-the-project-repository"></a>

Begin by cloning the project repository using Git. Run the following command, replacing `[repository-url]` with the actual repository URL:

```bash
$ git clone [repository-url]
```

Once cloned or downloaded from anywhere, navigate to the project’s root directory:

```bash
$ cd [project-folder]
```

## <mark style="color:red;">Install the Project​</mark> <a href="#install-the-project" id="install-the-project"></a>

With the repository cloned, install the necessary project dependencies by running the following command in the project’s root directory:

```bash
$ appmaker project install
```

This command ensures that all required dependencies and configurations for the project are properly installed.

{% hint style="warning" %}
For more information on `project install` command, refer to the [Project Install](/technical-guides/app-maker/cli.md#project-install) documentation.
{% endhint %}

## <mark style="color:red;">Run the Project​</mark> <a href="#run-the-project" id="run-the-project"></a>

After the installation is complete, start the project by running the following command:

```basic
$ appmaker project run
```

You’ll be prompted to select a platform—choose either **iOS** or **Android** based on your development needs.

{% hint style="warning" %}
For more information on `project run` command, refer to the [Project Run](/technical-guides/app-maker/cli.md#project-run) documentation.
{% endhint %}

## <mark style="color:red;">Verify the Setup​</mark> <a href="#verify-the-setup" id="verify-the-setup"></a>

Ensure the project runs smoothly on the selected platform by verifying the output on your emulator or connected device. If any errors occur, double-check the dependencies and configuration.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.akinon.com/tutorials/app-maker/setup-existing-project-on-cli.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
