{"id":20315220,"url":"https://github.com/sysread/bash-gql","last_synced_at":"2026-05-26T23:33:36.348Z","repository":{"id":250054018,"uuid":"833324771","full_name":"sysread/bash-gql","owner":"sysread","description":"A command line GraphQL client written in bash","archived":false,"fork":false,"pushed_at":"2024-07-24T20:58:18.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-04T17:59:20.807Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sysread.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-24T20:06:58.000Z","updated_at":"2024-09-12T10:34:35.000Z","dependencies_parsed_at":"2024-07-24T23:29:08.513Z","dependency_job_id":"f6b8089a-f660-42e2-bc0e-90bebc71e3f8","html_url":"https://github.com/sysread/bash-gql","commit_stats":null,"previous_names":["sysread/bash-gql"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sysread/bash-gql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysread%2Fbash-gql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysread%2Fbash-gql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysread%2Fbash-gql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysread%2Fbash-gql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sysread","download_url":"https://codeload.github.com/sysread/bash-gql/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysread%2Fbash-gql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33543973,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"ssl_error","status_checked_at":"2026-05-26T15:22:15.568Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-14T18:18:20.706Z","updated_at":"2026-05-26T23:33:36.305Z","avatar_url":"https://github.com/sysread.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SYNOPSIS\n\nA command line tool for working with GraphQL APIs\n\n# DESCRIPTION\n\n`gql` is a command line tool for working with GraphQL APIs. Like Insomnia or\nPostman, it allows you to send queries and mutations to a GraphQL API and see\nthe results, as well as to introspect the schema.\n\n# REQUIREMENTS\n\n- [`curl`](https://github.com/curl/curl)\n- [`jq`](https://github.com/jqlang/jq)\n\n# OPTIONAL\n\n- [`gum`](https://github.com/charmbracelet/gum)\n\n# INSTALL\n\nCurrently, this tool is just a single script that you can download and run.\nEither clone the repo or save it directly.\n\n# USAGE\n\n```\ngql --help\n\ngql --host myservice.com/gql --schema\n\n# Oops, forgot to log in first! :D\ngql --host myservice.com/gql --query login.gql --input '{\"input\": {\"user\": \"someone\", \"password\": \"fnord\"}}' | jq -r '.data.login.token' | tee /tmp/token\ngql --host myservice.com/gql --bearer \"$(cat /tmp/token)\" --schema\n\ngql --host myservice.com/gql --refresh-schema\n\ngql --host myservice.com/gql --mutations\ngql --host myservice.com/gql --queries\ngql --host myservice.com/gql --types\n\ngql --host myservice.com/gql --query-docs getSomeEntity\ngql --host myservice.com/gql --mutation-docs createSomeEntity\ngql --host myservice.com/gql --type-docs SomeEntity\n```\n\n# AUTHENTICATION\n\nCurrently, `gql` only supports bearer tokens for authentication.\n\n```sh\n$ gql --host myservice.com/gql \\\n    --query login.gql \\\n    --input '{\"input\": {\"user\": \"someone\", \"password\": \"fnord\"}}' \\\n    | jq -r '.data.login.token' \\\n    | tee /tmp/token\n\n$ gql --host myservice.com/gql \\\n    --bearer \"$(cat /tmp/token)\" \\\n    --query getSomeEntity.gql\n    --input '{\"input\": {\"entityId\": \"fnord-but-as-an-id\"}}'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsysread%2Fbash-gql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsysread%2Fbash-gql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsysread%2Fbash-gql/lists"}