# Upgrade from v8 to v10

Follow the installation guide to do a fresh install of v10:

{% content-ref url="/pages/-LO3GjKEAkMqMY1bCZl9" %}
[Install](/docs/install/install-on-linux.md)
{% endcontent-ref %}

Configure Bastion and use your old MongoDB URL from v8:

{% content-ref url="/pages/-LN49CDhxg0No7AtEi9S" %}
[Configure Bastion](/docs/configure/configure-bastion.md)
{% endcontent-ref %}

Run MongoDB migration for v10 inside the new `Bastion` directory:

```bash
npm run migrate
```

Publish Slash commands to Discord:

{% content-ref url="/pages/UJvidh1Eg20U8G8fhAVt" %}
[Publish Commands](/docs/configure/publish-commands.md)
{% endcontent-ref %}

Now you can run Bastion:

{% content-ref url="/pages/-LO3GjKZHxQFDMMECQ-k" %}
[Run](/docs/run/run-on-linux.md)
{% endcontent-ref %}


---

# 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://bastion.gitbook.io/docs/migrate/upgrade-from-v8-to-v10.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.
