https://prefect.io logo
Title
n

Nic

09/21/2022, 8:55 AM
Is there a way to use a specific profile when you use cloud login? I've created the profile locally, but when using git action to login on the same key workspace, i get errors because it's waiting for input to create a profile
1
m

Mason Menges

09/21/2022, 3:27 PM
Hey @Nic
prefect 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"
❤️ 1