Composer Update October CMS 3 to 4

I have a free license OctoberCMS with the demo October theme edited with this package.json :

    "require": {
        "php": "^8.0.2",
        "october/rain": "^3.6",
        "laravel/framework": "^9.0",
        "october/all": "^3.6"
    },

PHP 8.3 is running on DigitalOcean managed by my ploi.io account.

How do I update this to October CMS 4 with Laravel 12 ?

What I did :

rm composer.lock
rm -rf vendor
"require": {
    "php": "^8.3",
    "laravel/framework": "^12.0",
    "october/all": "^4.0",
    "october/rain": "^4.0"
}

php ../composer.phar install this downloaded but also returned :

> System\Console\ComposerScript::postAutoloadDump
Missing vendor files, try running "composer install" to install October CMS

And now my localhost says “Missing vendor files, try running “composer install” to install October CMS”

Update : I had to do :

curl -o ./config/app.php https://raw.githubusercontent.com/octobercms/october/refs/heads/4.x/config/app.php
curl -o ./bootstrap/app.php https://raw.githubusercontent.com/octobercms/october/refs/heads/4.x/bootstrap/app.php
curl -o ./bootstrap/providers.php https://raw.githubusercontent.com/octobercms/october/refs/heads/4.x/bootstrap/providers.php
curl -o ./bootstrap/autoload.php https://raw.githubusercontent.com/octobercms/october/refs/heads/4.x/bootstrap/autoload.php
php artisan october:migrate

Hi,

You can find the migration guide here: Release Note 39: October CMS 4.0 - Upgrade Guide - October CMS