> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

#  

# `prefect variable`

```command theme={null}
prefect variable [OPTIONS] COMMAND [ARGS]...
```

> [!NOTE]
>
> Manage variables.

## `prefect variable ls`

```command theme={null}
prefect variable ls [OPTIONS]
```

> [!NOTE]
>
> List variables.

> **Options**
>
> **--limit**
>
> The maximum number of variables to return.
>
> **--output**
>
> Specify an output format. Currently supports: json

## `prefect variable inspect`

```command theme={null}
prefect variable inspect [OPTIONS] NAME
```

> [!NOTE]
>
> View details about a variable.

> **Arguments**
>
> **NAME** `string` *required*

> **Options**
>
> **--output**
>
> Specify an output format. Currently supports: json

## `prefect variable get`

```command theme={null}
prefect variable get [OPTIONS] NAME
```

> [!NOTE]
>
> Get a variable's value.

> **Arguments**
>
> **NAME** `string` *required*

## `prefect variable set`

```command theme={null}
prefect variable set [OPTIONS] NAME VALUE
```

> [!NOTE]
>
> Set a variable.
>
> If the variable already exists, use `--overwrite` to update it.

> **Arguments**
>
> **NAME** `string` *required*
>
> **VALUE** `string` *required*

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

## `prefect variable unset`

```command theme={null}
prefect variable unset [OPTIONS] NAME
```

> [!NOTE]
>
> Unset a variable.

> **Arguments**
>
> **NAME** `string` *required*

## `prefect variable delete`

```command theme={null}
prefect variable delete [OPTIONS] NAME
```

> [!NOTE]
>
> Unset a variable.

> **Arguments**
>
> **NAME** `string` *required*
