https://prefect.io logo
Title
s

Saman

08/23/2022, 11:32 AM
I’m trying to build an AzDo pipeline for our Prefect code. To login to the Prefect cloud, the command
prefect cloud login -k *** -w myaccount/test
will ask for a profile name. Is there a way to pass the profile name in the parameters?
a

Anna Geller

08/23/2022, 11:42 AM
No, but you can skip this setp by first setting your profile and then setting the values manually:
prefect profile use xyz
prefect config set PREFECT_API_KEY="xxx"
prefect config set PREFECT_API_KEY="yyy"
for CI/CD it's recommended to set it this way - prefect cloud login is meant for interactive mode, not CI
s

Saman

08/23/2022, 11:44 AM
Perfect, thank you!
🙌 1