CLI compatibility with php8.3

Hey, I’m facing issues with CLI and php 8.3. Is there any workaround, or plan to update the CLI ?
Thanks a lot :slight_smile:

composer global require getkirby/cli


Problem 1
    - getkirby/cli[1.0.0, ..., 1.1.0] require php >=8.0.0 <8.2.0 -> your php version (8.3.6) does not satisfy that requirement.
    - getkirby/cli 1.1.1 requires php >=8.0.0 <8.3.0 -> your php version (8.3.6) does not satisfy that requirement.
    - getkirby/cli[1.2.0, ..., 1.4.0] require guzzlehttp/guzzle ^7.8 -> found guzzlehttp/guzzle[7.8.0, 7.8.1] but the package is fixed to 7.5.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - Root composer.json requires getkirby/cli * -> satisfiable by getkirby/cli[1.0.0, ..., 1.4.0].

PHP 8.3 support was added in version 1.2.0 of the CLI: Release 1.2.0 · getkirby/cli · GitHub

Well, yep, but it’s not working for me on 8.3.6. Had to link to php@8.3 back.

I also just update php to 8.3.6 and have no problem with the CLI. Did you check your global composer.json? Maybe the locked version of guzzle is causing the issue.

Yep, the locked version was the issue, fixed it with:
composer global require getkirby/cli -W

thanks texnixe :slight_smile: