Skip to main content

prefect variable

prefect variable [OPTIONS] COMMAND [ARGS]...
Manage variables.

prefect variable ls

prefect variable ls [OPTIONS]
List variables.

Options

--limit
The maximum number of variables to return.

prefect variable inspect

prefect variable inspect [OPTIONS] NAME
View details about a variable.

Arguments

NAME
string
required
[required]

Options

--output
Specify an output format. Currently supports: json

prefect variable get

prefect variable get [OPTIONS] NAME
Get a variable’s value.

Arguments

NAME
string
required
[required]

prefect variable set

prefect variable set [OPTIONS] NAME VALUE
Set a variable.If the variable already exists, use --overwrite to update it.

Arguments

NAME
string
required
[required]
VALUE
string
required
[required]

Options

--overwrite
Overwrite the variable if it already exists.
--tag
Tag to associate with the variable.

prefect variable unset

prefect variable unset [OPTIONS] NAME
Unset a variable.

Arguments

NAME
string
required
[required]

prefect variable delete

prefect variable delete [OPTIONS] NAME
Unset a variable.

Arguments

NAME
string
required
[required]
I