{"id":29048709,"url":"https://github.com/pkopel/curl-gen","last_synced_at":"2025-10-12T06:05:38.427Z","repository":{"id":60013440,"uuid":"529994176","full_name":"PKopel/curl-gen","owner":"PKopel","description":"Tool generating bash/powershell scripts from curl commands","archived":false,"fork":false,"pushed_at":"2025-09-01T15:21:58.000Z","size":127,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-06T08:48:07.579Z","etag":null,"topics":["bash-scripting","code-generation","curl-commands","powershell-scripting"],"latest_commit_sha":null,"homepage":"https://pkopel.github.io/curl-gen-web/","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PKopel.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-08-28T22:25:54.000Z","updated_at":"2025-07-14T13:11:36.000Z","dependencies_parsed_at":"2023-12-16T12:46:31.365Z","dependency_job_id":"0a7c64bf-f2cb-4d0e-9103-b97573956020","html_url":"https://github.com/PKopel/curl-gen","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/PKopel/curl-gen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PKopel%2Fcurl-gen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PKopel%2Fcurl-gen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PKopel%2Fcurl-gen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PKopel%2Fcurl-gen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PKopel","download_url":"https://codeload.github.com/PKopel/curl-gen/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PKopel%2Fcurl-gen/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279010472,"owners_count":26084756,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash-scripting","code-generation","curl-commands","powershell-scripting"],"created_at":"2025-06-26T18:11:36.480Z","updated_at":"2025-10-12T06:05:38.411Z","avatar_url":"https://github.com/PKopel.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# curl-gen\n\n![tests](https://github.com/PKopel/curl-gen/actions/workflows/test.yaml/badge.svg)\n![release](https://github.com/PKopel/curl-gen/actions/workflows/release.yaml/badge.svg)\n\nTool generating bash/powershell scripts from lists of curl commands.\nAlso available as a web app at \u003chttps://pkopel.github.io/curl-gen-web/\u003e.\n\n## Usage\n\n1. Run `stack install` to build and install `curl-gen` executable.\n2. Prepare a txt file with curl commands (like in [examples](examples))\n3. Run `curl-gen \u003cpath to .txt file\u003e` (writes results to stdout) or `curl-gen \u003cpath to .txt file\u003e -o script.sh` ([example result](examples/example3.sh))\n4. To learn more about options run `curl-gen --help`\n\n### Options\n\n- `-r|--random` (optional) Include random values generator in the output script\n- `-t|--threads` (optional) Make the output script multi-threaded (able to run multiple calls at the same time)\n- `-l|--language Bash|Powershell|OsDefault` (optional, default: `OsDefault`) Select language of the output script. `OsDefault` on Windows is Powershell, Bash otherwise.\n\n### Input file format\n\n```txt\n# test example\ncurl -X PUT -k -v https://test.com/path \\\n    --header 'Accept: application/json' \\\n    --data '{\"obj\":{\"string\":\"data\"},\"array\":[1,null]}'\n```\n\nContents of the comment at the beginning are used to identify this curl call in script,\ni.e. in this example, to make above call one would run `script.sh test example`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpkopel%2Fcurl-gen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpkopel%2Fcurl-gen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpkopel%2Fcurl-gen/lists"}