Enhanced cURL Commands
Previously, we demonstrated how to run requests and collections easily from the CLI. Thunder Client CLI also integrates with cURL commands, enabling you to execute or create requests directly from the CLI.
Standard cURL
Run cURL Using TC
Run a cURL command by prefixing it with tc
and experience the difference. Using Thunder Client CLI provides the following benefits over standard cURL:
- Formatted output
- Syntax highlighting & VSCode themes
- Request history saved to your Activity tab
Creating Requests from the CLI
You can create requests directly from the CLI using cURL commands. This allows you to quickly add requests to your collections or folders without needing to manually enter the details in the Thunder Client UI.
tc curl 'http://httpbin.org/anything' --name 'Curl Req1' --col 'User'
This command adds the request to the User collection with the name Curl Req1.
Available Arguments
The following arguments can be used to save a request to a collection or folder:
--col
specifies the name of the collection. If the collection does not exist, a new one will be created.--fol
specifies the name of the folder. If the folder does not exist, a new one will be created.--name
specifies the name of the request.