gxwf validate
Validate a Galaxy workflow source file before attempting runtime execution. Use this as the design-time guardrail after step implementation and again after final workflow assembly.
Output
Default output is human-readable diagnostics. JSON output should be treated as the preferred cast-skill interface; free-text diagnostics are a fallback for humans.
Examples
gxwf validate workflow.ga
gxwf validate workflow.gxwf.yml --json
gxwf validate workflow.gxwf.yml --json --connections --strict
gxwf validate workflow.ga --mode json-schema --tool-schema-dir ./tool-schemas --json
Gotchas
- Validation is design-time structure checking. It does not prove that a workflow test will pass under Planemo.
- Run after each generated Galaxy step when the harness can still attribute failures to the fresh step.
- Run again after assembly to catch cross-step or workflow-level issues before runtime testing.
- Prefer
--jsonwhenever a cast skill or harness needs to classify diagnostics. - Use
--connectionswhen tool cache metadata is available and data-shape compatibility matters, especially around collections and map-over. --no-tool-stateweakens validation. If used, record why tool metadata was unavailable and rerun without it before final runtime testing.