Create an API key to access Prefect Cloud from a local execution environment.
prefect cloud login
from your CLI, you can authenticate through your browser or by pasting an API key.
Authenticating through the browser directs you to an authorization page.
After you grant approval to connect, you’re redirected to the CLI and the API key is saved to your local
Prefect profile.
If you choose to authenticate by pasting an API key, you must create an API key in the Prefect Cloud UI first.
PREFECT_API_KEY
environment variable.
For more information see Connect to Prefect Cloud.