gxwf validate
Validate the assembled gxformat2 workflow before runtime testing.
Trigger: After all Galaxy steps and workflow tests have been assembled.
- bundle
references/cli/validate.json- source
content/cli/gxwf/validate.md
Preview json
{
"type": "cli-command",
"tool": "gxwf",
"command": "validate",
"summary": "Validate Galaxy workflow structure, tool state, and optional connection compatibility before runtime execution.",
"source_path": "content/cli/gxwf/validate.md",
"source_revision": 3,
"package": "@galaxy-tool-util/cli",
"description": "Validate Galaxy workflow files (structure + optional tool state)",
"synopsis": "gxwf validate [options] <file>",
"args": [
{
"raw": "file",
"name": "file",
"required": true,
"variadic": false,
"description": "Workflow file (.ga, .gxwf.yml)"
}
],
"options": [
{
"flags": "--format <fmt>",
"name": "format",
"description": "Force format: native or format2 (auto-detected by default)",
"takesArgument": true,
"argumentPlaceholder": "<fmt>",
"optionalArgument": false,
"negatable": false
},
{
"flags": "--no-tool-state",
"name": "toolState",
"description": "Skip tool state validation",
"takesArgument": false,
"optionalArgument": false,
"negatable": true
},
{
"flags": "--cache-dir <dir>",
"name": "cacheDir",
"description": "Tool cache directory",
"takesArgument": true,
"argumentPlaceholder": "<dir>",
"optionalArgument": false,
"negatable": false
},
{
"flags": "--mode <mode>",
"name": "mode",
"description": "Validation backend: effect (default) or json-schema",
"takesArgument": true,
"argumentPlaceholder": "<mode>",
"optionalArgument": false,
"negatable": false,
"defaultValue": "effect"
},
{
"flags": "--tool-schema-dir <dir>",
"name": "toolSchemaDir",
"description": "Directory of pre-exported per-tool JSON Schemas (for offline json-schema mode)",
"takesArgument": true,
"argumentPlaceholder": "<dir>",
"optionalArgument": false,
"negatable": false
},
{
"flags": "--json",
"name": "json",
"description": "Output structured JSON report",
"takesArgument": false,
"optionalArgument": false,
"negatable": false
},
{
"flags": "--report-html [file]",
"name": "reportHtml",
"description": "Write HTML report to file (or stdout if omitted)",
"takesArgument": true,
"argumentPlaceholder": "[file]",
...