I am trying to get started with prefect 2 but I cannot seem to use the CLI to authenticate to the cloud. I created a python virtual environment, ran pip install -U prefect, and ran the command prefect cloud login. After selecting “login with web browser” the terminal just hangs. I have tried this with two different machines on two different prefect cloud accounts.
I know this is an old one but here is a workaround in case someone needs that:
You could create an API key in Prefect Cloud UI and copy/paste it into your environment along with your account and workspace ids:
prefect config set PREFECT_API_URL=https://api.prefect.cloud/api/accounts/$PREFECT_ACCOUNT_ID/workspaces/$PREFECT_WORKSPACE_ID
prefect config set PREFECT_API_KEY=$PREFECT_CLOUD_KEY
You should be able to start a new queue after that on that machine.