Skip to content

Feature/config not interactive migrated to nextcloud cmd - #10468

Open
mgallien wants to merge 4 commits into
masterfrom
feature/configNotInteractiveMigratedToNextcloudCmd
Open

Feature/config not interactive migrated to nextcloud cmd#10468
mgallien wants to merge 4 commits into
masterfrom
feature/configNotInteractiveMigratedToNextcloudCmd

Conversation

@mgallien

Copy link
Copy Markdown
Collaborator

Resolves

#

Summary

TODO

  • ...

Checklist

AI (if applicable)

@mgallien mgallien added this to the 35.0.0 milestone Jul 28, 2026
@mgallien
mgallien force-pushed the feature/configNotInteractiveMigratedToNextcloudCmd branch 3 times, most recently from 043d4aa to 9884d61 Compare July 29, 2026 11:38
@mgallien

Copy link
Copy Markdown
Collaborator Author

/backport! to stable-4.0 please

@github-actions

Copy link
Copy Markdown
Contributor

Artifact containing the AppImage: nextcloud-appimage-pr-10468.zip

Digest: sha256:393be815a1138ad45332e72e682106a44584f943b7e214e4dd0516bccb329c02

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.

@mgallien

Copy link
Copy Markdown
Collaborator Author

/backport to stable-34.0 please

mgallien added 4 commits July 29, 2026 17:03
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
mgallien force-pushed the feature/configNotInteractiveMigratedToNextcloudCmd branch from 9884d61 to 255ca72 Compare July 29, 2026 15:03
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
76.4% Coverage on New Code (required ≥ 80%)
C Maintainability Rating on New Code (required ≥ A)
E Security Rating on New Code (required ≥ A)
157 New Code Smells (required ≤ 0)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant