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”