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.- With a populated tool cache, conversion re-encodes tool state using cached definitions by default. Use
--no-statefulto copy tool state through verbatim, or--statefulto force re-encoding even when the cache is empty. See galaxy-tool-cache. - Version
1.13.1preserves numeric inputminandmaxas native Galaxy range validators and recovers them on export.