Migrate from Capacitor version 5 to 6

This topic details how to migrate your project from Capacitor version 5 to Capacitor version 6. See the Capacitor documentation for more details.
Note: You can still use Capacitor 6 MXO Capacitor SDK, if you have not migrated your project yet.
  1. Upgrade to the latest MXO Capacitor SDK.
    Starting version 2.1.0, the Capacitor SDK has migrated to Capacitor version 6.
  2. Install the latest version of the Capacitor CLI to your project.
    Run the following command:
    npm i -D @capacitor/cli@latest
  3. Complete migration.
    Once installed, simply run the following command to have the CLI handle the migration for you:
    npx cap migrate
You have successfully migrated to Capacitor version 6.