{"id":28371305,"url":"https://github.com/mufeedali/bucket-manager","last_synced_at":"2025-06-10T13:02:29.293Z","repository":{"id":290661186,"uuid":"975176767","full_name":"mufeedali/bucket-manager","owner":"mufeedali","description":"Manage compose stacks across local and remote machines.","archived":false,"fork":false,"pushed_at":"2025-05-28T20:33:57.000Z","size":4731,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-05T08:27:19.502Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/mufeedali.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,"zenodo":null}},"created_at":"2025-04-29T22:56:40.000Z","updated_at":"2025-05-27T19:02:08.000Z","dependencies_parsed_at":"2025-05-24T17:29:37.560Z","dependency_job_id":"03b00739-8d86-49f9-bc05-2e7f002fbd7b","html_url":"https://github.com/mufeedali/bucket-manager","commit_stats":null,"previous_names":["mufeedali/bucket-manager"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mufeedali%2Fbucket-manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mufeedali%2Fbucket-manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mufeedali%2Fbucket-manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mufeedali%2Fbucket-manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mufeedali","download_url":"https://codeload.github.com/mufeedali/bucket-manager/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mufeedali%2Fbucket-manager/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259080921,"owners_count":22802393,"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":"2025-05-29T08:11:21.334Z","updated_at":"2025-06-10T13:02:29.225Z","avatar_url":"https://github.com/mufeedali.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🪣 Bucket Manager (bm)\n\n**Bucket Manager** is a tool for managing compose stacks across local and remote machines. It offers three interfaces to fit your workflow: CLI for automation, TUI for interactive management, and a web interface for visual control.\n\n## Features\n\n- **Simple \u0026 Intuitive** - Works just like you'd expect it to\n- **Local \u0026 Remote** - Manage stacks anywhere via SSH\n- **Multiple Interfaces** - CLI, TUI, and Web UI\n- **Real-time Updates** - Live status monitoring\n- **Zero Configuration** - Auto-discovers your compose stacks\n- **Tab Completion** - Fast command completion for the CLI\n\n## Quick Start\n\n1. **Install:**\n\n    ```bash\n    just install\n    ```\n\n    This installs the `bm` binary to `~/.local/bin/` (make sure this is in your `$PATH`). Actual path reference [here](https://docs.rs/dirs/latest/dirs/fn.executable_dir.html).\n\n2. **Choose your interface:**\n    - **CLI:** `bm list`, `bm up my-stack`\n    - **TUI:** `bm` (with no arguments for interactive mode)\n    - **Web UI:** `bm serve` then visit http://localhost:8080\n\n## Core Features\n\n- Control stacks (start, stop, update, refresh) individually or in bulk\n- View current stack status (Up, Down, Partial, Error)\n- SSH support for remote management\n\n## Stack Commands\n\n| Command                         | Description                           |\n| ------------------------------- | ------------------------------------- |\n| `bm list`                       | List all stacks                       |\n| `bm up \u003cstack\u003e [stack...]`      | Start one or more stacks              |\n| `bm down \u003cstack\u003e [stack...]`    | Stop one or more stacks               |\n| `bm pull \u003cstack\u003e [stack...]`    | Pull latest images                    |\n| `bm refresh \u003cstack\u003e [stack...]` | Full refresh (pull, down, up)         |\n| `bm status [stack]`             | Show status of all or specific stacks |\n| `bm prune [hosts]`              | Clean up unused resources             |\n\n## Stack Naming\n\nStacks can be referenced in three ways:\n\n1. **Full name:** `server:stack-name` (e.g., `local:app` or `server1:api`)\n2. **Short name:** `stack-name` (tries local first, then remote)\n3. **Server only:** `server:` (only for `bm status`, e.g., `bm status server1:`)\n\nTab completion helps find the right names.\n\n## Stack Discovery\n\nBucket Manager automatically discovers compose stacks in the following locations:\n\n**Default Paths:**\n\n- **Local:** `~/bucket` or `~/compose-bucket`\n- **Remote:** Same paths on configured SSH hosts\n\n**Custom Paths:**\n\n- **Local:** Use `bm config set-local-root \u003cpath\u003e` to change the search directory\n- **Remote:** Configure per-host paths when adding hosts with `bm config ssh add` or `bm config ssh edit`\n\nAll locations are searched for `compose.yaml`, `compose.yml`, `docker-compose.yaml`, and `docker-compose.yml` files.\n\n## Interfaces\n\n### Web Interface\n\nRun `bm serve` to start the web interface on http://localhost:8080, offering:\n\n- Modern graphical interface for stack management\n- Real-time status updates\n- Remote host configuration\n- Command output streaming\n\n### TUI\n\nThe text interface (`bm` with no arguments) provides:\n\n- Interactive navigation with keyboard shortcuts\n- Multi-stack selection and operations\n- Real-time status updates\n- SSH configuration management (`c` key)\n- Host pruning\n\n### CLI\n\n#### Shell Completion\n\nInstall tab completion for your shell:\n\n```bash\n# For Fish shell\nmkdir -p ~/.config/fish/completions\nbm completion fish \u003e ~/.config/fish/completions/bm.fish\n```\n\nFor other shells, replace `fish` with `bash`, `zsh`, or `powershell` and the appropriate path.\n\n#### Container Runtime\n\nBucket Manager supports both Podman (default) and Docker as container runtimes:\n\n```bash\n# Set runtime to Docker\nbm config set-runtime docker\n\n# Set runtime to Podman (default)\nbm config set-runtime podman\n\n# Check current runtime\nbm config get-runtime\n```\n\nThe runtime affects all stack operations. Make sure your compose files are compatible with the chosen runtime.\n\n#### SSH Configuration\n\nManage remote hosts:\n\n- `bm config ssh list` - Show all hosts\n- `bm config ssh add` - Add a new host\n- `bm config ssh edit` - Edit an existing host\n- `bm config ssh import` - Import from ~/.ssh/config\n\n#### Examples\n\n```bash\n# Start a local stack\nbm up myapp\n\n# Start multiple stacks at once\nbm up myapp frontend server1:api\n\n# Start a stack on a remote server\nbm up server1:api\n\n# Check all stack statuses\nbm status\n\n# Check statuses on just one server\nbm status server1:\n\n# Complete refresh of a stack (pull, down, up)\nbm refresh myapp\n\n# Refresh multiple stacks at once\nbm refresh myapp frontend server1:api server2:database\n\n# Clean up Docker resources locally\nbm prune local\n```\n\n## License\n\n[Apache License 2.0](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmufeedali%2Fbucket-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmufeedali%2Fbucket-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmufeedali%2Fbucket-manager/lists"}