Commands for managing workflow definitions in SHAR.

Subcommands

list

Lists all available workflow definitions.

Usage:

shar workflow list

Example:

shar workflow list

Output: Returns a list of all workflow definitions registered in SHAR.


get

Retrieves a specific version of a workflow definition.

Usage:

shar workflow get <workflow_id>

Arguments:

  • workflow_id - The ID of the workflow to retrieve

Example:

shar workflow get wf_abc123

Output: Returns the complete workflow definition including metadata and BPMN structure.


getversions

Gets all versions of a specific workflow.

Usage:

shar workflow getversions <workflow_name>

Arguments:

  • workflow_name - The name of the workflow

Example:

shar workflow getversions "MyWorkflow"

Output: Returns all versions of the specified workflow.


prune

Prunes (removes) old or unused workflow versions.

Usage:

shar workflow prune <workflow_name>

Arguments:

  • workflow_name - The name of the workflow to prune

Example:

shar workflow prune "MyWorkflow"

Output: Confirms the pruning operation.