Skip to content

mw toolforge job curl

Releasev0.35.0 · cfeceb67

mw toolforge job curl [path] [flags]

Make an arbitrary authenticated request to the Jobs API.

Examples: toolforge jobs curl /v1/tool/mytool/jobs -X POST -H “content-type: application/json” –data ‘{“name”: “test”, “imagename”: “python3.11”, “cmd”: “env”, “mount”: “all”}’ toolforge jobs curl /v1/tool/mytool/jobs -X GET

--data <string>
HTTP POST data
-H, --header <stringArray>
Pass custom header(s) to server
--json
Output only the JSON body of the response
-X, --request <string>
Specify request command to use Default: GET.
--help
Help for this command
--no-interaction
Do not ask any interactive questions
-t, --tool <string>
Tool name (auto-detected when running as a tool)
-v, --verbose <count>
Increase output verbosity. Example: --verbose=2 or -vv
Report an issue with this page

Report a documentation issue

The report includes this page’s link, section and documentation version.

Review and submit on Phabricator, or run the command using your saved CLI profile. The command asks before creating the task.