feat(container): add registry list command and public link on container create#614
Merged
fabienfleureau merged 2 commits intomainfrom Mar 9, 2026
Merged
feat(container): add registry list command and public link on container create#614fabienfleureau merged 2 commits intomainfrom
fabienfleureau merged 2 commits intomainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds two new features to the Qovery CLI: a qovery container registry list subcommand that lists all container registries for an organization, and a --json flag to qovery container create that outputs structured JSON including the service id, name, and optionally public_link after creation. It also replaces hand-rolled JSON strings with encoding/json marshalling in the create command.
Changes:
- Add
qovery container registry listsubcommand with--organizationand--jsonflags for tabular and JSON output - Add
--jsonflag toqovery container create, outputtingid,name, andpublic_linkusingencoding/jsoninstead of manual string formatting - Add
qovery container registryparent command as the new subcommand group host
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
cmd/container_registry.go |
New parent registry subcommand under container, following the same pattern as container_domain.go and container_env.go |
cmd/container_registry_list.go |
New list subcommand that fetches and displays container registries in tabular or JSON format |
cmd/container_create.go |
New create subcommand for container services with --json output including a public_link field |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…er create - Add `qovery container registry` subcommand with `list` subcommand supporting `--organization` and `--json` flags - Add `--json` flag to `qovery container create`; JSON output now includes `public_link` when a port is configured and a link is available - Use `encoding/json` for JSON output in container create (replaces hand-rolled fmt.Sprintf to avoid escaping issues)
8bf7ed4 to
aa0d512
Compare
- Guard registry.Name (a *string) before dereferencing in both the table loop and the JSON output function in container_registry_list.go - Check json.Marshal error in container_create.go instead of silently discarding it, consistent with the rest of the codebase
benjaminch
approved these changes
Mar 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
qovery container registry listsubcommand — lists all container registries for an organization with--organizationand--jsonflags--jsonflag toqovery container create— JSON output includesid,name, andpublic_link(when a port is configured and a link is available after creation)fmt.SprintfJSON string incontainer createwithencoding/json+ anonymous struct to avoid escaping issues on names containing special characters