{"id":18044831,"url":"https://github.com/will/cb","last_synced_at":"2025-04-05T03:27:09.052Z","repository":{"id":48478606,"uuid":"370539183","full_name":"will/cb","owner":"will","description":"A CLI for Crunchy Bridge with very good tab completion","archived":false,"fork":false,"pushed_at":"2021-09-20T23:12:48.000Z","size":232,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-10T11:45:39.610Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Crystal","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/will.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-25T02:18:32.000Z","updated_at":"2021-09-20T23:12:50.000Z","dependencies_parsed_at":"2022-09-01T16:11:51.585Z","dependency_job_id":null,"html_url":"https://github.com/will/cb","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/will%2Fcb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/will%2Fcb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/will%2Fcb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/will%2Fcb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/will","download_url":"https://codeload.github.com/will/cb/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247284927,"owners_count":20913689,"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-10-30T18:10:57.306Z","updated_at":"2025-04-05T03:27:08.989Z","avatar_url":"https://github.com/will.png","language":"Crystal","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cb\n\nA CLI for Crunchy Bridge with very good tab completion.\n\n![cb tab animation](https://user-images.githubusercontent.com/1973/124816125-0112ff80-df1d-11eb-944c-986e6b628e92.gif)\n\n## Installation\n\n- For homebrew (on [macOS](https://brew.sh) or [linux](https://docs.brew.sh/Homebrew-on-Linux))\n  `brew install will/cb/cb`. This will install both `cb` and the fish shell tab\n  completions for you.\n- For others, download the [latest release](https://github.com/will/cb/releases),\n  put it somewhere in your path, and be sure to manually install shell tab\n  completions from the `completions` directory.\n\n## Getting started\n\nFirst get your `application ID` and `application secret` from https://www.crunchybridge.com/settings/\n\nThen run `cb login` to register the CLI with your Crunchy Bridge account.\n\n## Usage\n\nOnce you are logged in, you can run `cb list` to see all of your clusters, and\n`cb psql \u003ccluster id\u003e` to securely connect to your database or `cb scope` to\nrun health checks against it. There are many more commands that you can use to\nmanage things such as log destinations, firewall rules, and more.\n\nTo see what commands are available run `cb --help`, and to see more detailed\ninformation for a given command add `--help` to it, for example `cb create\n--help`.\n\nIf you use the [fish command line shell](https://fishshell.com) and have the\ncompletions installed for you (either automatically through homebrew or\notherwise), nearly all arguments can be intelligently completed for you. This\nincludes all cluster IDs available to just your account, in addition to normal\nsubcommands and flags. Also where possible the current arguments you've given\nare taken into consideration. For example if you're creating a new cluster on\nAWS, instances sizes on Azure or regions in GCP will not be shown.\n\n## Development\n\nInstall dependencies: [crystal](https://crystal-lang.org/install/)\n\nYou can run quick checks by executing `src/cli.cr` directly. While this can be\nhandy, it is slow because the executable is being built each time, then\nexecuted. To build a development version run `make` or `shards build`. The\nbinary will be at `bin/cb` by default. There is a helper script\n`dev_setup.fish` which puts the local bin directory in your path so the `cb` in\nthat directory will be ran, as well as an `scb` alias for running `src/cli.cr`.\nIt will also set up completions for each.\n\n`crystal tool --format` will format the code as required. It is useful to have\nyour editor run this for you on save.\n\n\n### testing\n\nYou can run `crystal spec` to run all of the specs, or `make test` to also run linting checks.\n\n## Contributing\n\n1. Fork it (\u003chttps://github.com/will/cb/fork\u003e)\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Include an entry in the changelog\n6. Create a new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwill%2Fcb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwill%2Fcb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwill%2Fcb/lists"}