prefect.cli.artifact
Artifact command — native cyclopts implementation.
Inspect and delete artifacts.
Functions
list_artifacts
inspect
$ prefect artifact inspect "my-artifact" --output json
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
prefect.cli.artifactlist_artifacts list_artifacts()
inspect inspect(key: str)
$ prefect artifact inspect "my-artifact" --output json
[
{
"id": "ba1d67be-0bd7-452e-8110-247fe5e6d8cc",
"created": "2023-03-21T21:40:09.895910+00:00",
"updated": "2023-03-21T21:40:09.895910+00:00",
"key": "my-artifact",
"type": "markdown",
"description": null,
"data": "my markdown",
"metadata_": null,
"flow_run_id": "8dc54b6f-6e24-4586-a05c-e98c6490cb98",
"task_run_id": null
},
{
"id": "57f235b5-2576-45a5-bd93-c829c2900966",
"created": "2023-03-27T23:16:15.536434+00:00",
"updated": "2023-03-27T23:16:15.536434+00:00",
"key": "my-artifact",
"type": "markdown",
"description": "my-artifact-description",
"data": "my markdown",
"metadata_": null,
"flow_run_id": "ffa91051-f249-48c1-ae0f-4754fcb7eb29",
"task_run_id": null
}
]
delete delete(key: Annotated[Optional[str], cyclopts.Parameter(help='The key of the artifact to delete.')] = None)
$ prefect artifact delete "my-artifact"
Was this page helpful?