Feature/config not interactive migrated to nextcloud cmd - #10468
Open
mgallien wants to merge 4 commits into
Open
Feature/config not interactive migrated to nextcloud cmd#10468mgallien wants to merge 4 commits into
mgallien wants to merge 4 commits into
Conversation
mgallien
requested review from
camilasan,
claucambra,
i2h3 and
nilsding
as code owners
July 28, 2026 10:31
mgallien
force-pushed
the
feature/configNotInteractiveMigratedToNextcloudCmd
branch
3 times, most recently
from
July 29, 2026 11:38
043d4aa to
9884d61
Compare
Collaborator
Author
|
/backport! to stable-4.0 please |
3 tasks
Contributor
|
Artifact containing the AppImage: nextcloud-appimage-pr-10468.zip Digest: To test this change/fix you can download the above artifact file, unzip it, and run it. Please make sure to quit your existing Nextcloud app and backup your data. |
Collaborator
Author
|
/backport to stable-34.0 please |
FolderMan access to a somehow singleton was awkward make it behaves a bt more like a common singleton but also enables it to be reset when needed for automated tests will enable access ot it from nextcloducmd while doing that discover and fix access to private members of FolderMan from unexpected places Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
will make code smaller and faster Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
Ports the non-interactive account provisioning feature from the GUI client to nextcloudcmd. When --userid, --apppassword, and --serverurl are provided, nextcloudcmd validates the credentials against the server, creates the local sync folder if --localdirpath is given, writes the account and folder configuration to disk (in the same format read by the GUI client), and stores the password in the system keychain. Progress and errors are reported on stdout/stderr and the process exits with 0 on success or 1 on failure. New flags: --userid, --apppassword, --serverurl, --localdirpath, --remotedirpath, --isvfsenabled, --confdir. nextcloudcmd links against nextcloudCore to gain access to AccountSetupCommandLineManager, AccountSetupFromCommandLineJob and FolderMan (which must be instantiated before setupAccountFromCommandLine is called so the singleton is available). Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com> Assisted-by: ClaudeCode:claude-sonnet-4-6
teh executable return code should be 0 in case it worked and non 0 for error cases Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
mgallien
force-pushed
the
feature/configNotInteractiveMigratedToNextcloudCmd
branch
from
July 29, 2026 15:03
9884d61 to
255ca72
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.




Resolves
#
Summary
TODO
Checklist
AI (if applicable)