feat: enhance connect init with full device setup#106
Merged
mobileoverlord merged 1 commit intomainfrom Mar 25, 2026
Merged
Conversation
fad1450 to
e21444e
Compare
e21444e to
1a3c913
Compare
mobileoverlord
approved these changes
Mar 25, 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
avocado connect initis now a full end-to-end setup command. After running, the project is ready to build and boot with auto-claiming devices.What
connect initdoes--org/--project/--cohortflagsconnect:block — sets org, project, and server_key inavocado.yamlavocado-ext-connect-config,avocado-ext-connect, andavocado-ext-tunnelsare in the extensions definitions and the runtime's extensions list (avocado-ext-connect-configis ordered beforeavocado-ext-connectfor overlay precedence)avocado-ext-connect-confighas anoverlay:field and creates the overlay directory structureconnect-init-<timestamp>, no expiration, cohort-scoped if applicable)overlay/etc/avocado-conn/config.tomlwith claim token, device ID source, data dir, and keepalive interval (prompts before overwriting existing config)New flags
--cohort <ID>— scope the claim token to a specific cohort-r / --runtime <NAME>— target runtime for extensions (default:dev)New files
src/utils/config_edit.rs— surgical YAML editing that preserves comments and formatting (add/remove packages, ensure extensions, set overlay fields)