{"id":21001449,"url":"https://github.com/divio/divio-cli","last_synced_at":"2025-08-12T21:07:37.095Z","repository":{"id":5730145,"uuid":"6941987","full_name":"divio/divio-cli","owner":"divio","description":"Command line interface to the Divio Cloud (formerly aldryn-client)","archived":false,"fork":false,"pushed_at":"2025-05-23T13:11:10.000Z","size":11301,"stargazers_count":22,"open_issues_count":24,"forks_count":18,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-07-11T16:51:35.997Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://control.divio.com","language":"Python","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/divio.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.rst","contributing":null,"funding":null,"license":"LICENSE.txt","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":"2012-11-30T16:25:38.000Z","updated_at":"2025-05-15T08:16:59.000Z","dependencies_parsed_at":"2024-03-04T14:28:03.324Z","dependency_job_id":"63010ca1-2781-408f-9aaa-46c3b80dded2","html_url":"https://github.com/divio/divio-cli","commit_stats":null,"previous_names":[],"tags_count":132,"template":false,"template_full_name":null,"purl":"pkg:github/divio/divio-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divio%2Fdivio-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divio%2Fdivio-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divio%2Fdivio-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divio%2Fdivio-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/divio","download_url":"https://codeload.github.com/divio/divio-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divio%2Fdivio-cli/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270135072,"owners_count":24533202,"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","status":"online","status_checked_at":"2025-08-12T02:00:09.011Z","response_time":80,"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":[],"created_at":"2024-11-19T08:15:21.037Z","updated_at":"2025-08-12T21:07:37.072Z","avatar_url":"https://github.com/divio.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Divio CLI - Command-line interface to the Divio Cloud\n=====================================================\n\n[![PyPI Version](https://img.shields.io/pypi/v/divio-cli.svg)](https://pypi.python.org/pypi/divio-cli)\n![PyPI Downloads](https://img.shields.io/pypi/dm/divio-cli.svg)\n![Wheel Support](https://img.shields.io/pypi/wheel/divio-cli.svg)\n[![License](https://img.shields.io/pypi/l/divio-cli.svg)](https://github.com/divio/divio-cli/blob/master/LICENSE.txt)\n\n# Installing\n\n```bash\npip install divio-cli\n```\n\n⚠️ **For Windows users**: Make sure you have added Python to PATH during installation, otherwise you must add it manually for the divio-cli commands to function properly.\n\n# Using the CLI\n\nSee [Divio developer handbook: How to use the Divio command-line interface](https://docs.divio.com/en/latest/how-to/local-cli/)\n\n\n# Support for docker-compose 1 and 2\n\nThe CLI supports version 1 (`docker-compose`) and version 2 (`docker compose`) of the command invocation and is using the new version 2 by default.\n\nYou can opt-in to still use the old version 1 command by updating your CLI global settings in `~/.aldryn` and add a new setting called `docker-compose` with the value `[\"docker-compose\"]`:\n\n```json\n{\"update_check_timestamp\": 1234567890, \"docker-compose\": [\"docker-compose\"]}\n```\n\n\n\n\n# Testing\n\nThe test suite is split into two categories: unit tests and integration tests. Unit tests run completely locally, so no previous setup is required. Integration tests run against the actual Divio infrastructure, so setup of a Divio project is required.\nIn order to run the test suite, you have to have [GNU Make](https://www.gnu.org/software/make/) and [GNU Bash](https://www.gnu.org/software/bash/) on your system. The integration tests also require [Docker Compose](https://docs.docker.com/compose/).\n\nBoth test categories take optional arguments like `TOX_ARGS` and `PYTEST_ARGS`:\n\n```bash\nmake test TOX_ARGS=\"-e python.11\" PYTEST_ARGS=\"-s\"\n```\n\nTo clear all local state run:\n\n```bash\nmake clean\n```\n\n## Unit tests\n\nThese do not require external communication and can be run with the following command:\n\n```bash\nmake test\n```\n\n## Integration tests\n\nThese do require a more involved setup and will trigger actions on a real project.\nIt is recommended to use a project on [control.dev.aldryn.net](https://control.dev.aldryn.net/) because it requires no control panel running locally, and is what the CI pipeline does.\n\nThe CI uses [ci-test-project-do-not-delete](https://control.dev.aldryn.net/o/crce57yucffnjhb63yldeohmru/app/nxldpjkvbzggzh6xzvkqv4j3je/) project.\n**DO NOT USE THIS PROJECT FOR YOUR LOCAL TESTING!** The project is reserved for CI testing. Create your own project and replicate the CI project configuration.\n\nTo run the integration test suite, run:\n\n```bash\nmake test_integration\n```\n\nThe first run will fail, but will create an empty `.env` file. Configure your test project there.\nYou can take a look at the variables tab in the [CI Settings](https://gitlab.com/divio/cloud/control-panel/-/settings/ci_cd) as a starting point.\n\n## Linting\n\nTo run the linter, run the following command:\n\n```bash\nmake lint\n```\n\n## Creating a release\n\n1. Checkout a new branch for the new version - `release-X.X.X`\n2. Update the changelog.\n3. Merge the branch (after approval).\n4. Tag master with the release number `X.X.X` and `git push origin \u003ctagname\u003e`\n\nThe pipeline will then take care of the release.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivio%2Fdivio-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdivio%2Fdivio-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivio%2Fdivio-cli/lists"}