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

#  

# `prefect block`

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

> [!NOTE]
>
> Manage blocks.

## `prefect block type`

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

> [!NOTE]
>
> Inspect and delete block types.

### `prefect block type ls`

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

> [!NOTE]
>
> List all block types.

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

### `prefect block type inspect`

```command theme={null}
prefect block type inspect [OPTIONS] SLUG
```

> [!NOTE]
>
> Display details about a block type.

> **Arguments**
>
> **SLUG** `string` *required*
>
> A block type slug

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

### `prefect block type delete`

```command theme={null}
prefect block type delete [OPTIONS] SLUG
```

> [!NOTE]
>
> Delete an unprotected Block Type.

> **Arguments**
>
> **SLUG** `string` *required*
>
> A Block type slug

## `prefect block types`

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

> [!NOTE]
>
> Inspect and delete block types.

### `prefect block types ls`

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

> [!NOTE]
>
> List all block types.

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

### `prefect block types inspect`

```command theme={null}
prefect block types inspect [OPTIONS] SLUG
```

> [!NOTE]
>
> Display details about a block type.

> **Arguments**
>
> **SLUG** `string` *required*
>
> A block type slug

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

### `prefect block types delete`

```command theme={null}
prefect block types delete [OPTIONS] SLUG
```

> [!NOTE]
>
> Delete an unprotected Block Type.

> **Arguments**
>
> **SLUG** `string` *required*
>
> A Block type slug

## `prefect block register`

```command theme={null}
prefect block register [OPTIONS]
```

> [!NOTE]
>
> Register blocks types within a module or file.
>
> This makes the blocks available for configuration via the UI.
> If a block type has already been registered, its registration will be updated to
> match the block's current definition.

> **Options**
>
> **--module**
>
> Python module containing block types to be registered
>
> **--file**
>
> Path to .py file containing block types to be registered

> [!NOTE]
>
> **Example:**
>
> ```bash theme={null}
> $ prefect block register -f my_blocks.py
> $ prefect block register -m prefect_aws.credentials
> ```

## `prefect block ls`

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

> [!NOTE]
>
> View all configured blocks.

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

## `prefect block delete`

```command theme={null}
prefect block delete [OPTIONS] [SLUG]
```

> [!NOTE]
>
> Delete a configured block.

> **Arguments**
>
> **SLUG** `string`
>
> A block slug. Formatted as '\<BLOCK\_TYPE\_SLUG>/\<BLOCK\_NAME>'

> **Options**
>
> **--id**
>
> A block id.

## `prefect block create`

```command theme={null}
prefect block create [OPTIONS] BLOCK_TYPE_SLUG
```

> [!NOTE]
>
> Generate a link to the Prefect UI to create a block.

> **Arguments**
>
> **BLOCK\_TYPE\_SLUG** `string` *required*
>
> A block type slug. View available types with: prefect block type ls

## `prefect block inspect`

```command theme={null}
prefect block inspect [OPTIONS] [SLUG]
```

> [!NOTE]
>
> Displays details about a configured block.

> **Arguments**
>
> **SLUG** `string`
>
> A Block slug: \<BLOCK\_TYPE\_SLUG>/\<BLOCK\_NAME>

> **Options**
>
> **--id**
>
> A Block id to search for if no slug is given
>
> **--output**
>
> Specify an output format. Currently supports: json
