# Create request from curl CLI command

**URL:** <https://community.postman.com/t/create-request-from-curl-cli-command/2823>\
**Category:** Help Hub\
**Created:** [September 29, 2018, 6:35pm UTC](https://community.postman.com/t/create-request-from-curl-cli-command/2823 "2018-09-29T18:35:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fanalin](https://avatars.discourse-cdn.com/v4/letter/f/4da419/32.png) [@fanalin](https://community.postman.com/u/fanalin)\
**Post date:** [September 29, 2018, 6:35pm UTC](https://community.postman.com/t/create-request-from-curl-cli-command/2823/1 "2018-09-29T18:35:10Z")

</div>

It’s great to be able to directly copy a curl command line from postman.

Having it the over way around would be great as well.  
Example use case:

- using chrome, opening the devtools, going to the network section.
- right-clicking a request and then “Copy as curl”
- go to postman, click “import” (or in the “Add request” modal?) and just copy the CLI command there.
- postman parses the curl CLI arguments (-H, -d, the URL, -X and so on) and populates a new request with it.

What do you think of it?

---

<div class="post-metadata">

**Author:** ![jetison](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/jetison/32/12_2.png) [@jetison](https://community.postman.com/u/jetison)\
**Post date:** [October 1, 2018, 9:47pm UTC](https://community.postman.com/t/create-request-from-curl-cli-command/2823/2 "2018-10-01T21:47:58Z")

</div>

Did you know you can [generate a code snippet](https://learning.getpostman.com/docs/postman/sending_api_requests/generate_code_snippets/#___gatsby) as cURL, and also [import cURL](https://learning.getpostman.com/docs/postman/collections/data_formats#importing-curl) under the Paste Raw Text tab?

Or did you mean to be able to do this by right-clicking and opening a context menu, more of a UX suggestion?

---

<div class="post-metadata">

**Author:** ![fanalin](https://avatars.discourse-cdn.com/v4/letter/f/4da419/32.png) [@fanalin](https://community.postman.com/u/fanalin)\
**Post date:** [October 23, 2018, 8:24am UTC](https://community.postman.com/t/create-request-from-curl-cli-command/2823/3 "2018-10-23T08:24:35Z")

</div>

Hi joyce,

I was not aware of that ([https://learning.getpostman.com/docs/postman/collections/data\_formats/#importing-curl](https://learning.getpostman.com/docs/postman/collections/data_formats/#importing-curl)) and it is exactly what I’m searching.

Thank you very much.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [December 9, 2024, 2:34pm UTC](https://community.postman.com/t/create-request-from-curl-cli-command/2823/4 "2024-12-09T14:34:42Z")

</div>

Closed on December 9, 2024, 2:34pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
