CLI
Run Collection

Run Collection

Collection Runner will execute all the requests in the collection and display output in a beautiful format similar to the extension UI.

Run Single Collection

  • tc --col 'colNameOrId' will run requests in the collection from CLI

Run Multiple Collections

  • tc --col "colNameOrId1,colNameOrId2" will run multiple collections from CLI

Run All Collections

  • tc --col all will run all the collections from CLI
  • tc --col all --skip "ColA,ColB" will run all collections except ColA & ColB.

Run Collection Parallel

  • tc --col 'colNameOrId' --concurrent 5 will run 5 requests at a time in parallel from CLI.

Run Folder

  • tc --fol 'folNameOrId' will run requests in the folder from CLI

Run Multiple Folders

  • tc --fol 'folNameOrId1,folNameOrId2' will run requests in the folders from CLI

Run Selected Requests

  • tc --reqlist "nameOrId1,nameOrId2,nameOrId3" will run selected requests from the collection

img

Environment

By default, the collection or request will use the active environment. If you would like to run using a different environment, then use the --env argument.

  • Example: tc --col 'colNameOrId' --env 'Staging'

Data File

By default, the runner will use the data file attached in the Run Collection UI. If you would like to run using a different data file, then use the --data-file argument.

  • Example: tc --col 'colNameOrId' --data-file 'relativePathOrFullPath'
  • The input file can be in csv, json formats.

Reports

The CLI can generate reports in cli, csv, html, json, xml and nunit formats.

  • tc --col 'User' --report xml,html This command will execute all requests and save the reports in the thunder-reports folder
Report Types
  • The xml option generates a report in the JUnit format.
  • The nunit option generates a report in the NUnit format, suitable for Xray (opens in a new tab) integration.
  • The cli option displays the report data directly in the terminal.

Open Run Collection UI from CLI

If you like to execute Run collection in extension UI quickly, then you can do it easily from CLI using--ui argument.

  • tc --col 'User' --ui To open a collection runner in UI and execute automatically
  • tc --col 'User' --ui2 To open a collection runner in UI without auto-run.