docs/v3/api-ref/python/prefect-cli-variable.mdx
prefect.cli.variableVariable command — native cyclopts implementation.
Manage Prefect variables.
list_variables <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/variable.py#L39" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>list_variables()
List variables.
inspect <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/variable.py#L100" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>inspect(name: str)
View details about a variable.
get <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/variable.py#L138" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>get(name: str)
Get a variable's value.
unset <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/variable.py#L191" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>unset(name: str)
Unset a variable.