{"id":50714686,"url":"https://github.com/casper-justus/homectl","last_synced_at":"2026-06-09T18:01:56.513Z","repository":{"id":358044934,"uuid":"1239695223","full_name":"casper-justus/homectl","owner":"casper-justus","description":"homectl - CLI for operating homelab and cloud infrastructure","archived":false,"fork":false,"pushed_at":"2026-05-15T12:26:34.000Z","size":132,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-15T13:18:10.290Z","etag":null,"topics":["cli","compose","devops","docker","homectl","homelab","infrastructure","raspberry-pi","ssh","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/casper-justus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","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-05-15T10:50:19.000Z","updated_at":"2026-05-15T12:46:49.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/casper-justus/homectl","commit_stats":null,"previous_names":["casper-justus/homectl"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/casper-justus/homectl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casper-justus%2Fhomectl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casper-justus%2Fhomectl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casper-justus%2Fhomectl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casper-justus%2Fhomectl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/casper-justus","download_url":"https://codeload.github.com/casper-justus/homectl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casper-justus%2Fhomectl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34118757,"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-09T02:00:06.510Z","response_time":63,"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":["cli","compose","devops","docker","homectl","homelab","infrastructure","raspberry-pi","ssh","typescript"],"created_at":"2026-06-09T18:01:55.792Z","updated_at":"2026-06-09T18:01:56.508Z","avatar_url":"https://github.com/casper-justus.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# homectl\n\n**Operate your homelab and small cloud fleet from one terminal.**\n\nhomectl is a unified CLI for managing Docker/Compose workloads across multiple hosts — local machines, Raspberry Pis, VPS instances, and cloud VMs — all through a single YAML config and SSH-first architecture.\n\n## Install\n\n```bash\n# Linux / macOS\ncurl -fsSL https://raw.githubusercontent.com/casper-justus/homectl/main/install.sh | bash\n```\n\n```powershell\n# Windows (PowerShell)\niwr -useb https://raw.githubusercontent.com/casper-justus/homectl/main/install.ps1 | iex\n```\n\nThe script auto-detects your OS, installs Node.js if missing, downloads the latest homectl, builds it, and links it globally.\n\nAlternatively via npm:\n\n```bash\nnpm install -g homectl\n```\n\n## Quick start\n\n```bash\nhomectl init                           # interactive setup\nhomectl host ls                        # list all hosts\nhomectl context use prod               # switch context\nhomectl service ls                     # list all services\nhomectl stack deploy myapp             # deploy a compose stack\n```\n\n## Features\n\n- **Unified host management** — one config to rule all your machines\n- **SSH-first remote execution** — never expose your Docker daemon over TCP\n- **Docker \u0026 Compose aware** — works with plain containers and full Compose stacks\n- **Operation contexts** — switch between `lab`, `prod`, `staging` environments\n- **Interactive init wizard** — TUI-based setup with keyboard navigation\n- **Diagnostics engine** — deep health checks with actionable next steps\n- **Cross-platform** — Windows, Linux, macOS\n- **Machine-readable output** — `--json`, `--plain`, `--verbose`, `--quiet`\n- **Safety-first** — `--dry-run`, confirmation prompts, input validation\n- **Shell completion** — bash, zsh, fish\n\n## Configuration\n\nhomectl uses a single YAML config file (default: `~/.config/homectl/config.yaml`):\n\n```yaml\nversion: 1\ndefaultContext: lab\n\ncontexts:\n  - name: lab\n    host: media-node\n\nhosts:\n  - name: local\n    connection:\n      type: local\n      host: localhost\n    runtime:\n      docker: true\n      compose: true\n    tags: [local, dev]\n\n  - name: vps-1\n    connection:\n      type: ssh\n      host: 203.0.113.10\n      user: deploy\n      port: 2222\n      identityFile: ~/.ssh/vps_deploy\n    runtime:\n      docker: true\n      compose: false\n    tags: [cloud, prod]\n```\n\n## Command reference\n\n| Command | Description |\n|---------|-------------|\n| `init` | Interactive setup wizard |\n| `host ls` | List all hosts |\n| `host info \u003cname\u003e` | Show host details |\n| `host ping \u003cname\u003e` | Check host connectivity |\n| `host exec \u003cname\u003e \u003ccmd\u003e` | Run command on host |\n| `service ls` | List all services |\n| `service info \u003cname\u003e` | Show service details |\n| `service restart \u003cname\u003e` | Restart a service |\n| `service start \u003cname\u003e` | Start a service |\n| `service stop \u003cname\u003e` | Stop a service |\n| `service pull \u003cname\u003e` | Pull latest image |\n| `service health \u003cname\u003e` | Check service health |\n| `logs tail \u003cservice\u003e` | Tail service logs |\n| `logs show \u003cservice\u003e` | Show service logs |\n| `context ls` | List contexts |\n| `context show [name]` | Show context details |\n| `context use \u003cname\u003e` | Switch context |\n| `stack ls` | List Compose stacks |\n| `stack info \u003cname\u003e` | Show stack details |\n| `stack deploy \u003cname\u003e` | Deploy a stack |\n| `stack down \u003cname\u003e` | Bring down a stack |\n| `stack validate \u003cname\u003e` | Validate compose config |\n| `doctor host [name]` | Check host health |\n| `doctor config` | Validate configuration |\n| `doctor all` | Full diagnostics |\n| `doctor run [host]` | Full diagnostics suite |\n| `backup run \u003cschedule\u003e` | Run a backup |\n| `backup ls` | List backups |\n| `backup verify \u003cschedule\u003e` | Verify latest backup |\n| `config validate` | Validate config file |\n| `config show` | Show current config |\n| `cloud ls` | List cloud instances |\n| `cloud providers` | List cloud providers |\n| `auth check` | Check SSH authentication |\n| `completion [shell]` | Generate shell completions |\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasper-justus%2Fhomectl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcasper-justus%2Fhomectl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasper-justus%2Fhomectl/lists"}