Back to Prefect

variable

docs/v3/api-ref/python/prefect-cli-variable.mdx

3.6.30.dev31.1 KB
Original Source

prefect.cli.variable

Variable command — native cyclopts implementation.

Manage Prefect variables.

Functions

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>

python
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>

python
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>

python
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>

python
unset(name: str)

Unset a variable.