Skip to content

Command line ​

text
hurl-orchestra [options] [paths ...] [-- hurl options ...]

Options ​

OptionDefaultDescription
paths.A directory with .hurl files, or one or more .hurl files. The default is the current directory.
--version-Show the version of the package and stop.
--report-zip FILEreport.zipWrite the hurl reports of all nodes to this zip file.
--report-ctrf FILE-Also write a CTRF JSON report to this file.
--env-file FILE-Give this variables file to each hurl call. The default is .env in the given directory, or in the current directory for files.
--secrets-file FILE-Give this file of secrets to each hurl call with --secrets-file. Hurl redacts the values from its logs and reports.
--inject-as-variables-Give captured values to hurl as variables, not secrets. Hurl then writes them in its reports. Do not use it with real credentials.
--no-deps-Run only the listed .hurl files. Every declared dep must also be in the list, or the run stops with an error. Without this flag, hurl-orchestra adds the deps from the same directory.
--dry-run-Show the execution plan. Do not run hurl.
--json-With --dry-run, write the plan as JSON for scripts and AI agents. The plan lists the deps that file mode adds in 'resolved'.
--strict-Make a failure that matches known_failures fail the run.
--timeout SECONDS300Limit each Hurl process to this many seconds. The default is 300.
--jobs N-Run at most N Hurl processes at the same time.
--diagram-Write a Mermaid diagram of the graph. Do not run the tests.
--diagram-output FILEdiagram.mdWrite the diagram to this file. Use '-' for stdout.
--diagram-overwrite-Replace the diagram file if it exists.

A script makes this table from the parser of the command. Thus the table and hurl-orchestra --help always agree.

Paths ​

PathsMode
NoneDirectory mode on the current directory.
One path that does not end in .hurlDirectory mode on that directory.
One or more .hurl filesFile mode. hurl-orchestra adds the dependencies from the same directories.

File mode resolves each declared dependency among the .hurl files in the same directories. To stop the resolution, add --no-deps. Then every dependency must also be on the command line, or the run stops before the first request.

The JSON plan shows the dependencies that file mode adds in resolved. Use --dry-run --json to inspect them before a run.

Hurl options ​

Put Hurl options after --. hurl-orchestra gives them to each Hurl call. For more information, read Give flags to Hurl.

hurl-orchestra always gives these options to Hurl: --test, --report-json and --max-time. It gives --variables-file when a variables file applies and --secrets-file when a secrets file or a captured value applies. Do not give --test, --report-json or --secrets-file to Hurl. hurl-orchestra stops with an error when you do. Read Hurl compatibility for the full list.

JSON plan ​

hurl-orchestra --dry-run --json writes one JSON document to stdout:

json
{
  "ok": true,
  "env_file": "/home/you/project/tests/.env",
  "secrets_file": null,
  "hurl_config": "/home/you/.config/hurl/config",
  "resolved": ["add_item", "auth", "create_cart"],
  "waves": [["auth"], ["create_cart"], ["add_item"], ["checkout"]],
  "nodes": [
    {
      "id": "add_item",
      "file": "tests/add_item.hurl",
      "deps": ["auth", "create_cart"],
      "outputs": [],
      "variables": ["auth_token", "create_cart_cart_id"],
      "priority": 0,
      "known_failures": [],
      "retry_attempts": 1
    }
  ]
}
FieldDescription
oktrue if the graph is valid.
errorThe error message. It shows only when ok is false.
env_fileThe absolute path of the variables file, or null.
secrets_fileThe absolute path of the secrets file, or null.
hurl_configThe path of the Hurl config file, or null.
resolvedThe nodes that file mode added as dependencies.
wavesThe node IDs of each wave, in the sequence of execution.
nodes[].fileThe file of the node. For an alias, it is the file of the template.
nodes[].variablesThe variables that the node gets from its dependencies.
nodes[].retry_attemptsThe value of retry.attempts. 1 means no retry.