Skip to main content

prefect.cli.cloud.asset

Command line interface for managing Prefect Cloud assets

Functions

list_assets

list_assets(prefix: Optional[str] = typer.Option(None, '--prefix', '-p', help='Filter assets by key prefix'), search: Optional[str] = typer.Option(None, '--search', '-s', help='Filter assets by key substring'), limit: int = typer.Option(50, '--limit', '-l', help='Maximum number of assets to return (default 50, max 200)'), output: Optional[str] = typer.Option(None, '--output', '-o', help='Output format. Supports: json'))
List assets in the current workspace.

delete_asset

delete_asset(key: str = typer.Argument(..., help='The key of the asset to delete'), force: bool = typer.Option(False, '--force', '-f', help='Skip confirmation prompt'))
Delete an asset by its key. The key should be the full asset URI (e.g., ‘s3://bucket/data.csv’).