{"id":24970171,"url":"https://github.com/bitcoin-balancer/cli-lite","last_synced_at":"2026-04-17T08:31:28.505Z","repository":{"id":275592586,"uuid":"923756223","full_name":"bitcoin-balancer/cli-lite","owner":"bitcoin-balancer","description":"The cli-lite is a lightweight yet powerful command-line interface designed to make managing Balancer's infrastructure effortless, even for non-technical users.","archived":false,"fork":false,"pushed_at":"2025-07-29T14:50:31.000Z","size":191,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-25T22:45:29.449Z","etag":null,"topics":["bitcoin","dca","dollar-cost-averaging","investment","open-source","profit","strategy","trading","trading-strategy","value-averaging"],"latest_commit_sha":null,"homepage":"https://balancer.jesusgraterol.dev/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bitcoin-balancer.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-01-28T19:28:56.000Z","updated_at":"2025-07-29T14:50:24.000Z","dependencies_parsed_at":"2025-02-03T14:39:08.291Z","dependency_job_id":"69384ecb-d317-47e8-b897-9a66905528d1","html_url":"https://github.com/bitcoin-balancer/cli-lite","commit_stats":null,"previous_names":["bitcoin-balancer/cli-lite"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/bitcoin-balancer/cli-lite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcoin-balancer%2Fcli-lite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcoin-balancer%2Fcli-lite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcoin-balancer%2Fcli-lite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcoin-balancer%2Fcli-lite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitcoin-balancer","download_url":"https://codeload.github.com/bitcoin-balancer/cli-lite/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcoin-balancer%2Fcli-lite/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31921780,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","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":["bitcoin","dca","dollar-cost-averaging","investment","open-source","profit","strategy","trading","trading-strategy","value-averaging"],"created_at":"2025-02-03T15:56:30.191Z","updated_at":"2026-04-17T08:31:28.488Z","avatar_url":"https://github.com/bitcoin-balancer.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `cli-lite`\n\nThe `cli-lite` is a lightweight yet powerful command-line interface designed to make managing Balancer's infrastructure effortless, even for non-technical users. It enables you to:\n\n* **Quickly set up your instance** – Scaffold your Balancer instance safely and efficiently, following best practices\n* **Automate infrastructure tasks** – Seamlessly handle provisioning, scaling, and monitoring with minimal effort\n* **Securely access remote servers** – Connect to your production environment via secure SSH connections on  [DigitalOcean](https://www.digitalocean.com/)\n* **And more!**\n\nWith its intuitive syntax and comprehensive functionality, `cli-lite` streamlines complex operations, saves time, and ensures consistency in infrastructure management.\n\n\n\n\n\n\u003cbr/\u003e\u003cbr/\u003e\u003cbr/\u003e\n\n## Usage\n\nNavigate into `cli-lite` directory and start the program:\n\n```bash\ncd cli-lite \u0026\u0026 npm start\n```\n\n\n\n\n\n\n\u003cbr/\u003e\u003cbr/\u003e\u003cbr/\u003e\n\n## Requirements\n\n### Software\n\n- UNIX-like OS\n- git `^v2.43.0`\n- Node.js `^v22.11.0`\n- npm `^v10.9.0`\n- Docker Engine `^v27.3.1`\n- Docker Compose `^v2.29.7`\n\n### Hardware\n\n- 1 Shared CPU\n- 1 GB Memory\n- 25 GB Storage (Regular SSD)\n\n\n\n\n\n\u003cbr/\u003e\u003cbr/\u003e\u003cbr/\u003e\n\n## Getting Started\n\n1. [Setup a virtual machine (DigitalOcean)](./docs/setup-vm/index.md)\n2. [Install dependencies](./docs/install-dependencies/index.md)\n3. [Install and configure `cli-lite`](./docs/install-configure-cli-lite/index.md)\n4. [Setup Telegram (Optional)](./docs/setup-telegram/index.md)\n\n\n\n\n\n\u003cbr/\u003e\u003cbr/\u003e\u003cbr/\u003e\n\n## CLI Actions\n\n### Docker Compose\n\n\u003cdetails\u003e\n  \u003csummary\u003e\u003ccode\u003eup\u003c/code\u003e\u003c/summary\u003e\n  \u003cbr/\u003e\n  \n  Generates the environment assets and the `compose.yaml` file. Next, it prunes docker objects and restarts the daemon. Finally, it pulls the latest images from the  registry, creates and starts the containers.\n\n  \u003cbr/\u003e\n\n  When executed, after generating the environment assets and the `compose.yaml` file, it runs:\n  ```bash\n  docker system prune --all --force\n\n  systemctl restart docker\n\n  docker compose up --pull always --no-build --detach\n  ```\n  \u003cbr/\u003e\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003e\u003ccode\u003edown\u003c/code\u003e\u003c/summary\u003e\n  \u003cbr/\u003e\n\n  Stops containers and removes containers, networks, volumes, and images created by \u003ccode\u003eup\u003c/code\u003e.\n\n  \u003cbr/\u003e\n\n  When executed, it runs:\n  ```bash\n  docker compose down\n  ```\n  \u003cbr/\u003e\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003e\u003ccode\u003edown-up\u003c/code\u003e\u003c/summary\u003e\n  \u003cbr/\u003e\n\n  Stops containers and removes containers, networks, volumes, and images created by \u003ccode\u003eup\u003c/code\u003e with:\n\n  \u003cbr/\u003e\n\n  ```bash\n  docker compose down\n  ```\n\n  \u003cbr/\u003e\n\n  Finally, it generates the environment assets, the `compose.yaml` file and runs: \n\n  \u003cbr/\u003e\n\n  ```bash\n  docker system prune --all --force\n\n  systemctl restart docker\n\n  docker compose up --pull always --no-build --detach\n  ```\n  \u003cbr/\u003e\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003e\u003ccode\u003erestart\u003c/code\u003e\u003c/summary\u003e\n  \u003cbr/\u003e\n\n  Restarts all stopped and running services with:\n\n  \u003cbr/\u003e\n\n  ```bash\n  docker compose restart\n  ```\n  \u003cbr/\u003e\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003e\u003ccode\u003elogs\u003c/code\u003e\u003c/summary\u003e\n  \u003cbr/\u003e\n\n  Displays and subscribes to the log output from all services. If a variation is provided, it narrows down the logs to a specific service.\n\n  ```bash\n  docker compose logs -f\n\n  # if a variation is provided\n  docker compose logs \u003cvariation\u003e -f\n  ```\n\n  \u003cbr/\u003e\n\n  The following variations are supported:\n\n  - \u003ccode\u003elogs:postgres\u003c/code\u003e displays log output from the postgres service\n\n  - \u003ccode\u003elogs:api\u003c/code\u003e displays log output from the api service\n\n  - \u003ccode\u003elogs:gui\u003c/code\u003e displays log output from the gui service\n\n  - \u003ccode\u003elogs:ct\u003c/code\u003e displays log output from the cloudflared service\n\n  \u003cbr/\u003e\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003e\u003ccode\u003eprune\u003c/code\u003e\u003c/summary\u003e\n  \u003cbr/\u003e\n\n  Removes all unused containers, networks and images (both dangling and unused) with:\n\n  ```bash\n  docker system prune --all --force\n  ```\n  \u003cbr/\u003e\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003e\u003ccode\u003erestart-daemon\u003c/code\u003e\u003c/summary\u003e\n  \u003cbr/\u003e\n\n  Restarts the Docker service on the host machine with:\n\n  ```bash\n  systemctl restart docker\n  ```\n  \u003cbr/\u003e\n\u003c/details\u003e\n\n\n\n\u003cbr/\u003e\n\n### Configuration\n\n\u003cdetails\u003e\n  \u003csummary\u003e\u003ccode\u003eview-config\u003c/code\u003e\u003c/summary\u003e\n  \u003cbr/\u003e\n\n  Displays the data stored in the `config.json` file.\n\n  \u003cbr/\u003e\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003e\u003ccode\u003eupdate-config-*\u003c/code\u003e\u003c/summary\u003e\n  \u003cbr/\u003e\n\n  Updates the mutable properties in the `config.json` file one at a time. The following properties are mutable and can be changed by this action:\n\n  - `GUI_URL`\n  - `TELEGRAM`\n  - `EXCHANGE_*`\n  - `TUNNEL_TOKEN`\n\n  \u003cbr/\u003e\n\u003c/details\u003e\n\n\n\n\u003cbr/\u003e\n\n### CLI Management\n\n\u003cdetails\u003e\n  \u003csummary\u003e\u003ccode\u003eupdate-cli\u003c/code\u003e\u003c/summary\u003e\n  \u003cbr/\u003e\n\n  Downloads the latest version of `cli-lite`, installs its dependencies, and compiles it.\n\n  \u003cbr/\u003e\n\n  When executed, it runs:\n\n  ```bash\n  git pull origin main\n\n  npm ci\n\n  npm run build\n  ```\n  \u003cbr/\u003e\n\u003c/details\u003e\n\n\n\n\u003cbr/\u003e\n\n### Database Management\n\n\u003cdetails\u003e\n  \u003csummary\u003e\u003ccode\u003epsql\u003c/code\u003e\u003c/summary\u003e\n  \u003cbr/\u003e\n\n  Starts the terminal-based front-end to PostgreSQL.\n\n  \u003cbr/\u003e\n\n  When executed, it runs:\n\n  ```bash\n  docker compose exec -it postgres psql -U postgres\n  ```\n  \u003cbr/\u003e\n\u003c/details\u003e\n\n\n\n\n\u003cbr/\u003e\u003cbr/\u003e\u003cbr/\u003e\n\n## Docker Images\n\n- [postgres](https://hub.docker.com/_/postgres)\n- [jesusgraterol/balancer-api](https://hub.docker.com/r/jesusgraterol/balancer-api)\n- [jesusgraterol/balancer-gui](https://hub.docker.com/r/jesusgraterol/balancer-gui)\n- [jesusgraterol/balancer-ct](https://hub.docker.com/r/jesusgraterol/balancer-ct)\n\n\n\n\n\u003cbr/\u003e\u003cbr/\u003e\u003cbr/\u003e\n\n## Tests\n\n```bash\n# run the integration tests\nnpm run test:integration\n\n# run the unit tests\nnpm run test:unit\n```\n\n\n\n\n\n\u003cbr/\u003e\u003cbr/\u003e\u003cbr/\u003e\n\n## License\n\n[Apache v2.0](https://www.apache.org/licenses/LICENSE-2.0)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitcoin-balancer%2Fcli-lite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitcoin-balancer%2Fcli-lite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitcoin-balancer%2Fcli-lite/lists"}