API keys enable you to authenticate a local environment to work with Prefect Cloud. If you runDocumentation Index
Fetch the complete documentation index at: https://docs.prefect.io/llms.txt
Use this file to discover all available pages before exploring further.
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.
Create an API key
- Select the account icon at the bottom-left corner of the UI.
- Select API Keys. The page displays a list of previously generated keys, and allows you to create or delete API keys.
- Select the + button to create a new API key. Provide a name for the key and an expiration date.
Log in to Prefect Cloud with an API Key
PREFECT_API_KEY environment variable.
For more information see Connect to Prefect Cloud.