https://prefect.io logo
Title
l

Lon Nix

10/14/2021, 8:55 PM
Is there a command to set config values for the CLI? Something like
prefect config server.host="<http://blah>"
prefect config server.port="4200"
z

Zanie

10/14/2021, 9:08 PM
No, you can export environment variables
export PREFECT__SERVER__HOST="<http://blah>"
or edit a config.toml file directly.
m

Martin Felder

10/20/2021, 10:01 AM
isn't it
PREFECT_SERVER__HOST
?
at least in the logs it always says
ui_1       | Missing the PREFECT_SERVER__BASE_URL environment variable.  Using default
z

Zanie

10/20/2021, 3:44 PM
That's actually a bit complicated,
PREFECT__SERVER
configures Server interaction from the "prefect" library.
PREFECT_SERVER
configures Server internally / from the ui
Generally, you want the first one when you're using the prefect CLI