Nic
09/21/2022, 8:55 AMMason Menges
09/21/2022, 3:27 PMprefect cloud login -k xxx_xxxxxxxxx
is expecting an interactive terminal which is why this error is getting thrown, you'll want to set the prefect api url prefect api key manually in this case
prefect config set PREFECT_API_URL="<https://api.prefect.cloud/api/accounts/xxxxxxxxxxxxxxxxxxxxxxxxxxxx/workspaces/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>"
prefect config set PREFECT_API_KEY="api_keyxxxxxxxxxxxxxxxx"