Since Apple rollout the Big Sur update, accessing WP-CLI in localwp is a headache, here is the alternate way to access the site shell via python script.
Make sure python3 installed.
Download localwp-cli.py file to your machine
Replace <username>
with your mac username in localwp-cli.py
file
mac_user = '<username>' # example: dishitpala
Run the below command in your terminal.
python localwp-cli.py