Skip to main content

diagrid workflow archive export

Export a terminal workflow execution as a signed archive

Description

Export a terminal workflow execution as a signed archive document, without purging it. The execution's state is read from the control plane and assembled into the same archive format produced on purge, so it can be verified with "diagrid workflow archive verify".

Only terminal executions (completed, failed, terminated) can be exported.

diagrid workflow archive export <workflow-id> [flags]

Examples


# Export an execution to stdout
diagrid workflow archive export wf-123 -p my-project -a my-app

# Save it to a file, then verify it
diagrid workflow archive export wf-123 -p my-project -a my-app --out wf-123.json
diagrid workflow archive verify wf-123.json -p my-project

Options

-p, --project string Name of existing project
-a, --app-id string App ID that owns the workflow
--out string Write the archive to this file instead of stdout
-h, --help help for export

Options inherited from parent commands

--api-key string Diagrid Cloud API key

SEE ALSO