Repository navigation
feat(app): add list, get, create, and update preview commands - #101
Merged
Merged
Conversation
Add `coolify app previews list|get|create|update` subcommands backed by new ApplicationService methods and preview models. - create opens a preview for a pull request and queues a deployment (redeploys an existing preview); supports --git-type, --commit, --docker-tag, --url, --force, and --no-deploy - update replaces preview domains via --domains or repeatable --compose-domain, with optional --force-domain-override - validate pr_id as a positive integer and require Coolify 4.4.0+ - document the new commands in README and llms-full.txt and add service tests
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
coolify app previews list <app_uuid>, which lists an application's preview deployments with the newest pull request first.coolify app previews get <app_uuid> <pr_id>, which shows one preview deployment by pull request ID.coolify app previews create <app_uuid> <pr_id>, with the aliasesopenanddeploy. It opens a preview and queues its deployment, or redeploys the preview if it already exists. Flags:--git-type(github,gitlab,gitea,bitbucket). Required unless the app uses a GitHub App or GitLab App source.--commit. Required for Bitbucket.--docker-tag. Required for a new preview of a Docker Image app.--url,--forceand--no-deploy.coolify app previews update <app_uuid> <pr_id>, which replaces a preview's domains:--domainsand the repeatable--compose-domain <service>=<url>can't be used together.--force-domain-overridesaves the domains even when another resource uses them.<pr_id>must be a positive integer forget,createandupdate.list,getandcreateneed Coolify 4.4.0 or later.updateneeds 4.3.15 or later.README.mdandllms-full.txtwith the new commands, flags and aliases.