prefect block
Manage blocks.
prefect block register
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.
Examples:
Register block types in a Python module:
$ prefect block register -m prefect_aws.credentials
Register block types in a .py file:
$ prefect block register -f my_blocks.py
prefect block ls
View all configured blocks.
Options
Options
--output
Specify an output format. Currently supports: json
prefect block delete
Delete a configured block.
Arguments
Arguments
A block slug. Formatted as ‘<BLOCK_TYPE_SLUG>/<BLOCK_NAME>’
Options
Options
--id
A block id.
prefect block create
Generate a link to the Prefect UI to create a block.
Arguments
Arguments
A block type slug. View available types with: prefect block type ls [required]
prefect block inspect
Displays details about a configured block.
Arguments
Arguments
A Block slug: <BLOCK_TYPE_SLUG>/<BLOCK_NAME>
Options
Options
--id
A Block id to search for if no slug is given
prefect block types
Inspect and delete block types.
prefect block types ls
List all block types.
Options
Options
--output
Specify an output format. Currently supports: json
prefect block types inspect
Display details about a block type.
Arguments
Arguments
A block type slug [required]
prefect block types delete
Delete an unprotected Block Type.
Arguments
Arguments
A Block type slug [required]
prefect block type
Inspect and delete block types.
prefect block type ls
List all block types.
Options
Options
--output
Specify an output format. Currently supports: json
prefect block type inspect
Display details about a block type.
Arguments
Arguments
A block type slug [required]
prefect block type delete
Delete an unprotected Block Type.
Arguments
Arguments
A Block type slug [required]