Skip to main content

Documentation 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.cli.cloud

Cloud command — authenticate and interact with Prefect Cloud.

Functions

login

login()
Log in to Prefect Cloud. Creates a new profile configured to use the specified PREFECT_API_KEY. Uses a previously configured profile if it exists.

logout

logout()
Logout the current workspace. Reset PREFECT_API_KEY and PREFECT_API_URL to default.

workspace_ls

workspace_ls()
List available workspaces.

workspace_set

workspace_set()
Set current workspace. Shows a workspace picker if no workspace is specified.