# upgrade-miniapp

## Description

* Upgrades a MiniApp to the currently activated platform version

## Syntax

`ern upgrade-miniapp`

**Options**

`--version/-v <version>`

* Upgrade the MiniApp to a specific platform version &#x20;

`--manifestId <manifestId>`

* Id of the override Manifest entry to retrieve dependencies versions from (see [override Manifest](/v0.34/reference/index-3/override.md) for more info)

## Remarks

* Based on your preference, you can select which package manager (`npm` or `yarn`) to be used by this command when updating the packages versions. This can be done by adding or updating `packageManager` field in the `ern` object kept in the MiniApp package.json. For example, to use `npm`. If this field is missing from configuration, `yarn` will be used over `npm` if it is installed on the workstation.

```javascript
"ern": {
    "packageManager": "npm"
}
```


---

# 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://native.electrode.io/v0.34/cli-commands/upgrade-miniapp.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.
