<@ULVA73B9P> can I create prefect variables from t...
# ask-marvin
t
@Marvin can I create prefect variables from the cli?
m
It seems that while you cannot directly create variables specifically for Prefect flows via the CLI, you can manipulate the Prefect configuration settings using the Prefect CLI. You can set and unset variables that are part of Prefect's configuration profiles with the following commands: - To set a configuration variable:
Copy code
shell
  prefect --profile "foo" config set VAR=Y
This sets the variable
VAR
to
Y
in the profile
foo
. - To unset configuration variables:
Copy code
shell
  prefect config unset VAR2 VAR3
This unsets the variables
VAR2
and
VAR3
from the current profile. For Prefect Cloud or Server users, you might want to manipulate or add variables through UI or Prefect's REST API instead of CLI, as the CLI configuration settings apply to the Prefect CLI environment rather than to your Prefect flows or tasks. For more details, you can refer to the Prefect Variables documentation and the Prefect Settings documentation.