gxwf convert
Convert a Galaxy workflow between the native .ga JSON and the .gxwf.yml format2 representation. Use this to normalize fetched IWC workflows into a consistent comparison representation.
Output
Default output is the converted workflow on stdout. With --output, the result is written to a file. JSON output is selected with --json (or --to native); YAML output is selected with --yaml (or --to format2).
Examples
gxwf convert workflow.ga --to format2 --output workflow.gxwf.yml
gxwf convert workflow.ga --to format2 --compact
gxwf convert workflow.gxwf.yml --to native --output workflow.ga
Gotchas
- Default output is stdout; pipe or pass
--outputwhen persisting. --compactdrops node position metadata; useful for structural diffs and skeleton generation.--statefulrequires a populated tool cache (seegalaxy-tool-cache); without it, tool-state stays as fetched.