Pooyan
12/05/2023, 5:33 AMMarvin
12/05/2023, 5:33 AMprefect config set
command to set environment variables. For example:
prefect config set PREFECT_API_URL="<https://api.prefect.cloud/api/accounts/[ACCOUNT-ID]/workspaces/[WORKSPACE-ID]>"
prefect config set PREFECT_API_KEY="[API-KEY]"
In this example, PREFECT_API_URL
and PREFECT_API_KEY
are set in the default profile. You can create different profiles for different configurations using the prefect profile
CLI commands.
2. Setting as Environment Variables: You can also set PREFECT_API_URL
and PREFECT_API_KEY
as you would any other environment variable.
For more information, you can refer to the Prefect documentation here and here.Nate
12/05/2023, 6:23 AMPooyan
12/05/2023, 6:33 AM