{"id":48724254,"url":"https://github.com/gfargo/strut","last_synced_at":"2026-06-14T03:00:30.512Z","repository":{"id":350689303,"uuid":"1203784851","full_name":"gfargo/strut","owner":"gfargo","description":"CLI toolkit for managing Docker stacks","archived":false,"fork":false,"pushed_at":"2026-06-13T19:11:01.000Z","size":777,"stargazers_count":0,"open_issues_count":10,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-13T19:22:34.053Z","etag":null,"topics":["bash","cli","deployment","devops","docker","docker-compose","infrastructure","vps"],"latest_commit_sha":null,"homepage":"https://strut.griffen.codes","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/gfargo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-07T11:29:08.000Z","updated_at":"2026-06-13T17:44:23.000Z","dependencies_parsed_at":"2026-05-18T19:01:44.486Z","dependency_job_id":null,"html_url":"https://github.com/gfargo/strut","commit_stats":null,"previous_names":["gfargo/strut"],"tags_count":28,"template":false,"template_full_name":null,"purl":"pkg:github/gfargo/strut","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gfargo%2Fstrut","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gfargo%2Fstrut/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gfargo%2Fstrut/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gfargo%2Fstrut/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gfargo","download_url":"https://codeload.github.com/gfargo/strut/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gfargo%2Fstrut/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34307685,"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":"online","status_checked_at":"2026-06-14T02:00:07.365Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["bash","cli","deployment","devops","docker","docker-compose","infrastructure","vps"],"created_at":"2026-04-11T21:15:18.896Z","updated_at":"2026-06-14T03:00:30.503Z","avatar_url":"https://github.com/gfargo.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# strut\n\nGeneric, installable CLI tool for managing Docker stacks on VPS infrastructure. Deploy, monitor, and operate any number of stacks from a single command line.\n\n📖 **[Full Documentation →](https://github.com/gfargo/strut/wiki)**\n\n---\n\n## Install\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/gfargo/strut/main/install.sh | bash\n```\n\nOr clone manually:\n\n```bash\ngit clone https://github.com/gfargo/strut.git ~/.strut\nexport PATH=\"$HOME/.strut:$PATH\"\n```\n\nSee [Installation](https://github.com/gfargo/strut/wiki/Installation) for upgrade, uninstall, and configuration options.\n\n## Quick Start\n\n```bash\nstrut init --registry ghcr --org my-org       # Initialize project\nstrut scaffold my-app                          # Create a stack\nnano stacks/my-app/.env.template               # Configure (copy to .prod.env)\nstrut my-app release --env prod                # Deploy to VPS\n```\n\nSee [Quick Start](https://github.com/gfargo/strut/wiki/Quick-Start) for the full walkthrough.\n\n---\n\n## CLI\n\n```text\nstrut \u003cstack\u003e \u003ccommand\u003e [--env \u003cenv\u003e] [options]\n```\n\n| Command | Description |\n| ------- | ----------- |\n| `release` | Full VPS release (update + migrate + deploy + verify) |\n| `deploy` | Deploy stack containers |\n| `stop` | Stop running containers |\n| `health` | Run health checks |\n| `logs` | View service logs |\n| `backup` / `restore` | Database backup and restore |\n| `db:pull` / `db:push` | Sync databases between VPS and local |\n| `drift` | Configuration drift detection and auto-fix |\n| `keys` | Key and credential management |\n| `domain` | Configure domain and SSL certificates |\n| `shell` / `exec` | SSH access to VPS |\n| `ship` | Commit, push, and remote rebuild in one step |\n| `remote:init` | Bootstrap strut on a remote VPS |\n| `local` | Local development environment |\n| `debug` | Container debugging tools |\n| `list` / `scaffold` / `init` | Stack and project management |\n\nSee [CLI Reference](https://github.com/gfargo/strut/wiki/CLI-Reference) for the complete command list with flags and examples.\n\n### Examples\n\n```bash\nstrut my-app release --env prod                              # Production release\nstrut my-app health --env prod --json                        # Health checks\nstrut my-app logs api --follow --env prod                    # Follow logs\nstrut my-app backup postgres --env prod                      # Backup database\nstrut my-app db:pull --env prod                              # Pull DB locally\nstrut my-app keys db:rotate postgres --env prod              # Rotate credentials\nstrut my-app domain api.example.com admin@example.com --env prod  # SSL setup\n```\n\n---\n\n## Key Concepts\n\n- **Two-tree architecture** — engine at `~/.strut/`, your config at project root ([Architecture](https://github.com/gfargo/strut/wiki/Architecture))\n- **Config-driven** — no hardcoded service names, ports, or orgs in the engine ([Configuration](https://github.com/gfargo/strut/wiki/Configuration))\n- **`release` vs `deploy`** — `release` runs on VPS via SSH, `deploy` runs locally\n- **`--env prod`** reads `.prod.env` for secrets and VPS connection info\n- **`--dry-run`** previews destructive operations without executing\n- **Dynamic health checks** driven by `services.conf`\n\n---\n\n## Documentation\n\n| Topic | Description |\n| ----- | ----------- |\n| [Installation](https://github.com/gfargo/strut/wiki/Installation) | Install, upgrade, uninstall |\n| [Quick Start](https://github.com/gfargo/strut/wiki/Quick-Start) | First project walkthrough |\n| [Architecture](https://github.com/gfargo/strut/wiki/Architecture) | How strut works under the hood |\n| [Configuration](https://github.com/gfargo/strut/wiki/Configuration) | `strut.conf`, env files, per-stack config |\n| [CLI Reference](https://github.com/gfargo/strut/wiki/CLI-Reference) | Full command reference |\n| [Deployment](https://github.com/gfargo/strut/wiki/Deployment) | Deploy, release, stop workflows |\n| [Database Backups](https://github.com/gfargo/strut/wiki/Database-Backups) | Backup, restore, pull, push |\n| [Key Rotation](https://github.com/gfargo/strut/wiki/Key-Rotation) | SSH, API, DB, GitHub credential rotation |\n| [Drift Detection](https://github.com/gfargo/strut/wiki/Drift-Detection) | Detect and fix config drift |\n| [Domain and SSL](https://github.com/gfargo/strut/wiki/Domain-and-SSL) | Custom domains, Let's Encrypt |\n| [Monitoring](https://github.com/gfargo/strut/wiki/Monitoring) | Prometheus, Grafana, Alertmanager |\n| [Volume Management](https://github.com/gfargo/strut/wiki/Volume-Management) | Dynamic volume management |\n| [VPS Audit \u0026 Migration](https://github.com/gfargo/strut/wiki/VPS-Audit-and-Migration) | Audit and migrate existing setups |\n| [Stack Validation](https://github.com/gfargo/strut/wiki/Stack-Validation) | Validate stack integrity |\n| [Debugging](https://github.com/gfargo/strut/wiki/Debugging) | Troubleshoot production issues |\n| [Local Development](https://github.com/gfargo/strut/wiki/Local-Development) | Local stack management |\n| [Contributing](https://github.com/gfargo/strut/wiki/Contributing) | Setup, testing, linting |\n| [Code Conventions](https://github.com/gfargo/strut/wiki/Code-Conventions) | Shell module standards |\n| [Adding a New Command](https://github.com/gfargo/strut/wiki/Adding-a-New-Command) | Extending the CLI |\n| [Project Structure](https://github.com/gfargo/strut/wiki/Project-Structure) | File layout and module map |\n\n---\n\n## Testing\n\n```bash\nbats tests/                    # Run all tests\nbats tests/test_config.bats    # Run specific file\n```\n\nSee [Contributing](https://github.com/gfargo/strut/wiki/Contributing) for the full development setup.\n\n## License\n\nSee [LICENSE](LICENSE) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgfargo%2Fstrut","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgfargo%2Fstrut","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgfargo%2Fstrut/lists"}