# Installation

Before using Mission Control you must [install the Gravity server and client](/gravity-server/installation/install-gravity.md) and ensure it's running. Mission Control will plug into your existing API endpoints and database.

Once running, run the following command in terminal:

```
npm run setup
```

After you have completed the setup process, open a new browser window and navigate to:

```
http://localhost:5002/setup
```

{% hint style="danger" %}
Please ensure you use a strong password if you plan to deploy Mission Control to a live server.
{% endhint %}

Then complete the setup wizard in the browser, similar to the main setup you completed earlier.

{% hint style="info" %}
Mission control runs port 5001 (server) and 5002 (client) to ensure there is no conflict with your main application.
{% endhint %}

### Clean Up

{% hint style="warning" %}
You **MUST** remove the setup files from your install after setup. Failing to do so, will let anyone access the setup process.
{% endhint %}

You can use the cleanup script to automate this for you:

```
npm run cleanup
```

If you want to remove the files manually:

* /client/src/views/setup folder
* /controller/setupController
* /model/setup
* /api/index.js&#x20;
* remove the setup import from /server/api/index.js
* the setup route import in /client/src/app.js


---

# 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.usegravity.app/mission-control/installation.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.
