{"id":23532669,"url":"https://github.com/outbrain-inc/consult","last_synced_at":"2026-03-16T04:05:02.099Z","repository":{"id":144200911,"uuid":"48752313","full_name":"outbrain-inc/consult","owner":"outbrain-inc","description":"Consul helper tool for quick query based SSH and more","archived":false,"fork":false,"pushed_at":"2016-02-04T21:36:39.000Z","size":35,"stargazers_count":44,"open_issues_count":1,"forks_count":4,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-03-29T19:34:31.495Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/outbrain-inc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-29T14:56:47.000Z","updated_at":"2024-11-11T18:25:50.000Z","dependencies_parsed_at":"2023-04-27T07:05:54.676Z","dependency_job_id":null,"html_url":"https://github.com/outbrain-inc/consult","commit_stats":null,"previous_names":["outbrain-inc/consult"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outbrain-inc%2Fconsult","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outbrain-inc%2Fconsult/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outbrain-inc%2Fconsult/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outbrain-inc%2Fconsult/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/outbrain-inc","download_url":"https://codeload.github.com/outbrain-inc/consult/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250297578,"owners_count":21407243,"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","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-12-25T23:12:14.882Z","updated_at":"2025-10-22T02:53:26.430Z","avatar_url":"https://github.com/outbrain-inc.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Consult\nQuery Consul from the command line and SSH into a server from Consul catalog.\n\n[![Build Status](https://travis-ci.org/outbrain/consult.svg?branch=master)](https://travis-ci.org/outbrain/consult)\n\n## Building\n\n```\ngo get -u github.com/outbrain/consult\n```\n\n## Using\n\n`consult` needs to know where Consul's API is, this can be configured using the `CONSUL_URL` environment variable or the `--server` command line flag.\nRun `consult -h` or `consult help` for a complete list of flags.\n\n### Misc flags\n\n* `--json`, `-j` - JSON output\n* `--detailed`, `-d` - Print detailed results with header line\n* `--dc=DC_NAME` - Datacenter to query, can be specified multiple times\n* `--all-dcs` - Query all datacenters. Overrides the `--dc` flag \n\n### Query subcommand\n\nTo list the node for service and tag:\n\n```\nconsult query --service=my_awesome_service --tag=some_tag\n```\n\nMultiple tags - you can choose to match _any_ or _all_ tags. By default, all tags must be matched.\n\n```\nconsult query -s my_awesome_service -t tag1 -t tag2 -m any\n```\n\nMultiple datacenter support\n```\nconsult query -s service1 --dc dc1 --dc dc2\nconsult query -s service1 --all-dcs\n```\n\n`query` flags also work on `http` and `ssh` subcommands.\n\n### ssh subcommand\n\n```\nconsult ssh --service=my_awesome_service --tag=some_tag --username=joe\n```\n`--username` is optional of course\n\n\n### http subcommand\n\nPerform an HTTP request on endpoints returned from Consul query:\n\n```\nconsult http -s service1 -t tag1 --all-endpoints --uri=\"/ping\"\n```\n\nFor other options check out `consul help http`\n\n### List subcommands\n\n```\nconsult list dc\nconsult list service --dc dc1 --dc dc2\nconsult list node -r '^ap.*a' # list node matching regex\n```\n\n## License\n\nApache V2","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foutbrain-inc%2Fconsult","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foutbrain-inc%2Fconsult","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foutbrain-inc%2Fconsult/lists"}