feat: add deploy command and deploy-after-upload support#112
Merged
mobileoverlord merged 1 commit intomainfrom Mar 25, 2026
Merged
feat: add deploy command and deploy-after-upload support#112mobileoverlord merged 1 commit intomainfrom
mobileoverlord merged 1 commit intomainfrom
Conversation
mobileoverlord
approved these changes
Mar 25, 2026
c4276c5 to
a211c31
Compare
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
Adds
avocado connect deployfor deploying runtimes to cohorts, and--deploy-*flags onavocado connect uploadfor one-command upload+deploy workflows.New:
avocado connect deployStandalone command to create a deployment targeting a cohort with a runtime.
--runtime <id>and--cohort <id>for non-interactive use (validated against the project)--name <name>for deployment name (auto-generated from runtime version + timestamp if omitted)--description <text>for optional description--tag/-t(repeatable) to filter deployment to devices with matching tags--activateto skip draft and immediately activate the deploymentNew:
upload --deploy-*flagsUpload and deploy in one command. After a successful upload, automatically creates a deployment using the freshly uploaded runtime.
--deploy-cohort <id>— required to trigger deploy-after-upload--deploy-name <name>— optional deployment name--deploy-tag <tag>— optional tag filter (repeatable)--deploy-activate— activate immediatelyUsing
--deploy-name,--deploy-tag, or--deploy-activatewithout--deploy-cohortraises an explicit error.Files changed
src/commands/connect/deploy.rs— deploy command, deploy-after-upload helper, flag validation with testssrc/commands/connect/client.rs— deployment types and API methods (create, activate, list runtimes)src/commands/connect/upload.rs— deploy-after-upload integrationsrc/commands/connect/mod.rs— add deploy modulesrc/main.rs— CLI definitions and wiring