Skip to content

Command line

Terminal window
restorm [--open <chemin>] [--run <cible>] [options]
ArgumentAliasTypeDefaultRole
--open <path>-ostringFile or folder to open at start-up. Mandatory with --run
--run <target>stringRuns the named scenario and exits. Activates command-line mode
--by <name|id>listnameHow --run designates the scenario
--headlessbooleanfalseNo window at all. Without it, the window appears while the run proceeds
--param name=valuerepeatableSupplies a scenario parameter
--all-logsbooleanfalseIncludes the engine’s entries, not only the Log action’s
--out <file>stringAlso writes the log to a file, as it goes
--clear-settings-clsbooleanfalseResets the preferences before launching
--inactive-windowbooleanfalseShows the window without giving it focus
--quiet-qbooleanReduces the output to the execution log alone. Added automatically when --run is present
--mcp-session-name <name>stringautoNames the MCP session (see also the RESTORM_MCP_SESSION_NAME variable)
--help-hShows the help
--version-vShows the version
CodeMeaning
0The scenario finished correctly
1Failure, cancellation, or an engine error
2Target not found, --out file unreachable, or --run without --open
3Entitlement denied — missing, invalid or revoked token, insufficient plan, or verification endpoint unreachable
VariableRole
RESTORM_TOKENThe organisation token (rstk_…) required by headless execution
RESTORM_MCP_SESSION_NAMEThe equivalent of --mcp-session-name

Environment variable-typed secrets are also read from the process’s environment: that is the recommended mechanism in continuous integration.

Opening a project:

Terminal window
restorm --open ./api.restorm

Running a scenario with the window shown (handy for watching it happen):

Terminal window
restorm --open ./api.restorm --run "Tests de fumée"

Running with no window, with parameters and a full log:

Terminal window
RESTORM_TOKEN=rstk_… restorm \
--open ./api.restorm \
--run "Tests de fumée" \
--headless \
--all-logs \
--out ./run.log \
--param baseUrl=https://staging.exemple.test \
--param Ids='[1,2,3]' \
--param Env=staging

See Headless execution and CI for the output format, parameter conversion and pipeline examples.