![]() ![]() ![]() C:\Program Files\Nextcloud\nextcloud.exe" -userid admin -apppassword Jliy12356785jxnHa2ZCiZ9MX48ncECwDso95Pq3a5HABjY34ZvhZiXrPfpKWUg7aOHAX5 -localdirpath "D:\\Nextcloud-sync-folder" -remotedirpath /Music -serverurl "" -isvfsenabled 1" - this will create a config file for user admin on the server and set a remote root folder to “Music”, the local sync folder will get created with VFS mode.(NOTE: There is another parameter supported by Nextcloud desktop client -overrideserverurl but it SHOULD NOT be used here as it is intended for setup via UI with wizard) serverurl (required) a server URL to use when creating an account via command-line. If the server has folders “/Photos”, “/Documents”, “/Music” you can pass “/Music” and then this folder will get set up as remote root. remotedirpath (optional) path to a remote subfolder when creating an account via command-line. isvfsenabled (optional) whether to set a VFS or non-VFS folder (1 for ‘yes’ or 0 for ‘no’) when creating an account via command-line. If skipped, then default local sync folder path (/home//Nextcloud for Linux/mac or C://Nextcloud for Windows) will be generated by desktop client. localdirpath (optional) path where to create a local sync folder when creating an account via command-line. ![]() apppassword (required) appPassword to pass when creating an account via command-line (see the login-flow section in server documentation on how to generate the app password). The following parameters are supported: -userid (required) userId (username as on the server) to pass when creating an account via command-line. The desktop client will exit with code 0 if account has been added successfuly, or 1 in case of failure.ĭetailed failure message is printed to the desktop client logs. This will allow desktop client to generate a config (.cfg) file that will be used during subsequent launches.Ī config file will have a corresponding account written into it similar to if you have added it manually via the desktop client’s UI. It is possible to perform mass deployment of the Nextcloud desktop client by passing certain command-line parameters from the deployment step to Nextcloud desktop client executable after the initial setup. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |