Skip to content

Commit

Permalink
Fix review comments.
Browse files Browse the repository at this point in the history
Signed-off-by: alex-z <[email protected]>
  • Loading branch information
allexzander committed May 8, 2023
1 parent 1560703 commit cda7e08
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
5 changes: 5 additions & 0 deletions doc/advancedusage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,8 @@ Low Disk Space
--------------
.. index:: disk space
.. include:: lowdiskspace.rst

Wizard Account Setup Command-line Options
-------
.. index:: wizard accountsetup command-line
.. include:: wizardaccountsetupcommandline.rst
2 changes: 1 addition & 1 deletion doc/massdeploymentcommandline.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ The following parameters are supported:
Examples:

- ``C:\Program Files\Nextcloud\nextcloud.exe" --userid admin --apppassword Jliy12356785jxnHa2ZCiZ9MX48ncECwDso95Pq3a5HABjY34ZvhZiXrPfpKWUg7aOHAX5 --localdirpath "D:\\Nextcloud-sync-folder" --remotedirpath /Music --serverurl "https://cloud.example.com" --isvfsenabled 1"`` - this will create a config file for user admin on the server https://cloud.example.com and set a remote root folder to "Music", the local sync folder will get created with VFS mode.
- For Linux and mac the same example as above will work but ``nextcloud.exe path`` and ``--localdirpath`` should get changed to platform specific format (e.g. ``no extension`` and ``\home\user folder`` format)
- For Linux and mac the same example as above will work but ``nextcloud.exe path`` and ``--localdirpath`` value should get changed to platform specific format (e.g. ``no .exe extension`` and ``/home/<user folder>`` format)
16 changes: 16 additions & 0 deletions doc/wizardaccountsetupcommandline.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
If you want to automate an Account Setup Wizard to allow the user skip entering server URL and local sync folder path in UI, you can use command-line parameters.
When you specify both, the desktop client's Account Setup Wizard will jump straight to opening a browser for account authentication/connection without the need of entering any of the connection details.
The local sync folder will also be selected to the one you specify instead of using default path (/home/Nextcloud)

The following parameters are supported:

``--overridelocaldir``
specify a local dir to be used in the account setup wizard (e.g.: /home/nextcloud-sync-folder

``--overrideserverurl``
specify a server URL to use for the force override to be used in the account setup wizard (e.g.: https://cloud.example.com)

Examples:

- ``C:\Program Files\Nextcloud\nextcloud.exe" --overridelocaldir "D:/work/nextcloud-sync-folder" --overrideserverurl https://cloud.example.com
- For Linux and mac the same example as above will work but ``nextcloud.exe path`` and ``--overridelocaldir`` value should get changed to platform specific format (e.g. ``no .exe extension`` and ``/home/<user folder>`` format)

0 comments on commit cda7e08

Please sign in to comment.