Error: Composer dependencies require a PHP v8.1.2

I found this thread which has some suggestions for setting the CLI PHP version using a shared host.

This post has a user also seeing the “Livewire is not defined error”