Skip to content

Add CLI commands suite for repository, build, and container management#40

Merged
vbrunelle merged 3 commits intomainfrom
copilot/add-cli-commands-suite
Nov 26, 2025
Merged

Add CLI commands suite for repository, build, and container management#40
vbrunelle merged 3 commits intomainfrom
copilot/add-cli-commands-suite

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Nov 26, 2025

Description

Adds a complete CLI suite using Django management commands for all UI operations—enabling agents and scripts to manage repositories, builds, and containers without browser interaction.

Commands added:

  • Repository: repo_list, repo_connect, repo_refresh, branch_commits
  • Build: build_list, build_create, build_detail
  • Container: container_list, container_start, container_stop, container_logs

All commands support --format=json for scripting:

# Full workflow example
python manage.py repo_connect my-app https://github.com/user/app.git
python manage.py repo_refresh my-app
python manage.py build_create my-app --branch=main
python manage.py container_start 1
python manage.py container_logs 1 --tail=100

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Code refactoring
  • Performance improvement
  • Test addition/modification

How Has This Been Tested?

  • Unit tests
  • Integration tests
  • Manual testing
  • Test with real repositories

Test Configuration:

  • Python version: 3.11+
  • Django version: 5.2.8
  • Operating System: Linux

Checklist

  • My code follows the style guidelines of this project (PEP 8, Black formatting)
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Related Issues

Closes #2

Screenshots (if applicable)

N/A - CLI commands

Additional Notes

  • 35 new unit tests covering all commands
  • README updated with CLI documentation and workflow examples
  • CodeQL security scan: 0 alerts

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • dl.dagger.io
    • Triggering command: /usr/bin/python python manage.py test --verbosity=1 (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Add CLI commands</issue_title>
<issue_description>Let's add CLI commands suite using Django commands that allows doing all tasks that can be done in the UI, such as:

  • Connect to a repository
  • Build a branch and commit
  • Launch or stop a container
  • Get the list and status of builds, containers.
  • Get the list of available repos

Let's not forget to add unit tests for all those commands, and add to the README.md file.

I believe that adding a complete CLI suite will allow agents to perform actions and reproduce issues on an active server, without having to manage Github login in the unit tests. </issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits November 26, 2025 23:24
Co-authored-by: vbrunelle <27235114+vbrunelle@users.noreply.github.com>
Co-authored-by: vbrunelle <27235114+vbrunelle@users.noreply.github.com>
Copilot AI changed the title [WIP] Add CLI commands suite for Django Add CLI commands suite for repository, build, and container management Nov 26, 2025
Copilot AI requested a review from vbrunelle November 26, 2025 23:30
@vbrunelle vbrunelle marked this pull request as ready for review November 26, 2025 23:35
@vbrunelle vbrunelle merged commit a6e814d into main Nov 26, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add CLI commands

2 participants