Skip to Content
CLIcURL Command

Enhanced cURL Commands

In addition to running requests and collections, the Thunder Client CLI works with cURL commands, allowing you to execute them with enhanced output or save them as requests.

Standard cURL

Standard cURL command output in the terminal

Run cURL with TC

Prefix any cURL command with tc to run it through Thunder Client. Compared with standard cURL, the Thunder Client CLI provides:

  • Formatted output
  • Syntax highlighting and VS Code themes
  • Request history saved to your Activity tab

cURL command run with the tc prefix, showing formatted output

Create Requests from the CLI

You can save cURL commands as requests directly from the CLI. This lets you add requests to your collections or folders quickly, without entering the details manually in the Thunder Client UI.

  • tc curl 'http://httpbin.org/anything' --name 'Curl Req1' --col 'User'
    This command saves the request to the User collection with the name Curl Req1.

Available Arguments

Use the following arguments to save a request to a collection or folder:

  • --col specifies the collection name. If the collection does not exist, it is created.
  • --fol specifies the folder name. If the folder does not exist, it is created.
  • --name specifies the request name.
Last updated on