{"id":42441649,"url":"https://github.com/brianm/bdsh","last_synced_at":"2026-04-02T18:02:50.634Z","repository":{"id":250086298,"uuid":"833433662","full_name":"brianm/bdsh","owner":"brianm","description":"Better Distributed Shell","archived":false,"fork":false,"pushed_at":"2026-03-24T15:14:22.000Z","size":1585,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-25T19:53:14.661Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","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/brianm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-07-25T03:45:24.000Z","updated_at":"2026-03-24T15:13:30.000Z","dependencies_parsed_at":"2024-07-30T07:10:21.765Z","dependency_job_id":"3f9fba6d-7f8b-4e73-8fa7-1b7957f19c90","html_url":"https://github.com/brianm/bdsh","commit_stats":null,"previous_names":["brianm/bdsh"],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/brianm/bdsh","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianm%2Fbdsh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianm%2Fbdsh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianm%2Fbdsh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianm%2Fbdsh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brianm","download_url":"https://codeload.github.com/brianm/bdsh/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianm%2Fbdsh/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31312744,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"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":"2026-01-28T06:45:19.544Z","updated_at":"2026-04-02T18:02:50.624Z","avatar_url":"https://github.com/brianm.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bdsh\n\nBetter Distributed Shell - run commands on multiple hosts with a consensus view of the output.\n\n![Demo](demo/cowsay.gif)\n\n## Usage\n\n```bash\nbdsh host1,host2,host3 -- uname -a\nbdsh @hosts.txt -- apt update\nbdsh @\"kubectl get nodes -o name\" -- uptime\n```\n\n### Host Sources\n\n- **Inline**: `host1,host2,host3`\n- **File**: `@hosts.txt` - one host per line, supports tags and comments\n- **Command**: `@\"command\"` - use output of command as host list\n\n### Tag Filtering\n\nHosts file can include tags:\n\n```\nweb1 :web :prod\nweb2 :web :prod\ndb1 :db :prod\ndev1 :web :dev\n```\n\nFilter with:\n- `:web` - hosts with tag\n- `:web:prod` - hosts with both tags (AND)\n- `:web,:db` - hosts with either tag (OR)\n\n```bash\nbdsh @hosts.txt :prod -- systemctl status nginx\n```\n\n## Architecture\n\nbdsh creates a tmux session with:\n- **Window 0**: Watch mode TUI showing consensus view of all output\n- **Window 1-N**: One window per host running `ssh host command`\n\nOutput is captured to `$output_dir/$host/out.log` via `pipe-pane`.\n\n## Watch Mode TUI\n\nThe consensus view shows output that's identical across hosts normally, and highlights differences:\n\n```\n[\u003e2] Checking for upgrades...     \u003c- 2 hosts differ, expandable\n     [97] │ (0 candidates): 100%  \u003c- 97 hosts have this\n    host1 │ (1 candidates): 100%  \u003c- 1 host differs\n```\n\n### Keys\n\n| Key | Action |\n|-----|--------|\n| `↑↓` or `j/k` | Scroll |\n| `→←` or `l/h` | Expand/collapse differences |\n| `Tab` | Jump to next difference |\n| `t` | Toggle tail mode (auto-scroll) |\n| `e/c` | Expand/collapse all |\n| `K` | Toggle keep output on exit |\n| `q` | Quit |\n\n### Status Indicators\n\n- `⠋` (spinner) - running\n- `⌨` (blinking) - waiting for input\n- `✓` - success\n- `✗` - failed\n\n## Options\n\n```\n--watch \u003cDIR\u003e      Watch an output directory (standalone mode)\n-o, --output-dir   Output directory (default: temp)\n-k, --keep         Keep output directory on exit\n--no-watch         Skip watch window, just run commands\n```\n\n## Development\n\n### Building\n\n```bash\ncargo build           # Debug build\ncargo build --release # Release build\ncargo test            # Run tests\n```\n\n### Documentation\n\nSee [Additional Documentation](doc/bdsh-extra.md) for more details on configuration and advanced usage.\n\n### Making a Release\n\nReleases are automated via [cargo-dist](https://github.com/axodotdev/cargo-dist). When a version tag is pushed, GitHub Actions builds binaries for macOS and Linux, creates a GitHub release, and updates the Homebrew formula.\n\n```bash\n# Bump version, publish to crates.io, create tag\ncargo release patch --execute --no-confirm  # or minor/major\n\n# Push tag to trigger release workflow (using jj/git)\njj git push --all  # or: git push origin --tags\n```\n\nThis will:\n1. Publish to [crates.io](https://crates.io/crates/bdsh)\n2. Build binaries for macOS (arm64, x86_64) and Linux (arm64, x86_64)\n3. Create a GitHub release with downloadable archives (including man page)\n4. Update the Homebrew formula at `brianm/homebrew-tools`\n\n## Alternatives\n\n- [dsh](https://www.netfort.gr.jp/~dancer/software/dsh.html.en)\n- [pssh](https://code.google.com/archive/p/parallel-ssh/)\n- [clusterssh](https://github.com/duncs/clusterssh)\n- [pdsh](https://github.com/chaos/pdsh)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianm%2Fbdsh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrianm%2Fbdsh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianm%2Fbdsh/lists"}