P

Prefect CLI

CLI discovered

Details
Command
prefect
Docs
https://docs.prefect.io/v3/api-ref/cli
Authentication
Prefect Cloud API key bearer discovered Get token ↗
$ prefect cloud login

Create an API key in How to manage API keys. You can then configure it with Connect to Prefect Cloud by setting PREFECT_API_KEY and PREFECT_API_URL, or by running prefect cloud login / prefect cloud login --key <YOUR-KEY> as described in Settings and profiles.

Self-hosted Prefect API basic auth string basic discovered Get credentials ↗
env PREFECT_API_AUTH_STRING, PREFECT_API_URL

For a self-hosted Prefect server, enable Basic Authentication by setting server.api.auth_string="admin:pass" on the server, then configure the same value on clients as api.auth_string="admin:pass" or environment variable PREFECT_API_AUTH_STRING, as documented in How to secure a self-hosted Prefect server. This is configured by the server operator; there is no hosted minting flow from Prefect Cloud.