Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 31 additions & 42 deletions admin_manual/desktop/commandline.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,51 +2,40 @@
Command Line Client
===================

The Nextcloud Client packages contain a command line client, ``nextcloudcmd``, that can
The Nextcloud Client packages contain a command line client, ``nextcloudcmd``, that can
be used to synchronize Nextcloud files to client machines.

``nextcloudcmd`` performs a single *sync run* and then exits the synchronization
process. In this manner, ``nextcloudcmd`` processes the differences between
client and server directories and propagates the files to bring both
repositories to the same state. Contrary to the GUI-based client,
``nextcloudcmd`` does not repeat synchronizations on its own. It also does not
``nextcloudcmd`` performs a single *sync run* and then exits the synchronization
process. In this manner, ``nextcloudcmd`` processes the differences between
client and server directories and propagates the files to bring both
repositories to the same state. Contrary to the GUI-based client,
``nextcloudcmd`` does not repeat synchronizations on its own. It also does not
monitor for file system changes.


Install ``nextcloudcmd``
~~~~~~~~~~~~~~~~~~~~~~~~

CentOS

::

$ sudo yum -y install epel-release
$ sudo yum -y install nextcloud-client

Ubuntu

::

$ sudo add-apt-repository ppa:nextcloud-devs/client
$ sudo apt update
$ sudo apt install nextcloud-client

Debian

::

$ sudo apt install nextcloud-desktop-cmd


Refer to the link

- https://nextcloud.com/install/#install-clients
- https://launchpad.net/~nextcloud-devs/+archive/ubuntu/client
- https://pkgs.alpinelinux.org/packages?name=nextcloud-client
- https://help.nextcloud.com/t/linux-packages-status/10216


To invoke ``nextcloudcmd``, you must provide the local and the remote repository
Install
~~~~~~~

+---------------+---------------------------------------------------------------------------------------------------------+
| OS | Package |
+===============+=========================================================================================================+
| Alpine | https://pkgs.alpinelinux.org/package/edge/community/x86_64/nextcloud-client |
+---------------+---------------------------------------------------------------------------------------------------------+
| Debian | https://packages.debian.org/search?suite=all&arch=any&searchon=names&keywords=nextcloud-desktop-cmd |
+---------------+---------------------------------------------------------------------------------------------------------+
| Fedora | https://packages.fedoraproject.org/pkgs/nextcloud-client/nextcloud-client/ |
+---------------+---------------------------------------------------------------------------------------------------------+
| Ubuntu | https://packages.ubuntu.com/search?keywords=nextcloud-desktop-cmd |
+---------------+---------------------------------------------------------------------------------------------------------+
| Ubuntu (PPA) | https://launchpad.net/~nextcloud-devs/+archive/ubuntu/client |
+---------------+---------------------------------------------------------------------------------------------------------+
| Windows | https://nextcloud.com/install/#install-clients |
+---------------+---------------------------------------------------------------------------------------------------------+

Usage
~~~~~

To invoke ``nextcloudcmd``, you must provide the local and the remote repository
URL using the following command::

nextcloudcmd [OPTIONS...] sourcedir nextcloudurl
Expand Down Expand Up @@ -96,7 +85,7 @@ Other command line switches supported by ``nextcloudcmd`` include the following:
Credential Handling
~~~~~~~~~~~~~~~~~~~

``nextcloudcmd`` requires the user to specify the username and password using the standard URL pattern, e.g.,
``nextcloudcmd`` requires the user to specify the username and password using the standard URL pattern, e.g.,

::

Expand All @@ -121,7 +110,7 @@ installed along with ``nextcloudcmd`` and thus be available in a system location
be placed next to the binary as ``sync-exclude.lst`` or be explicitly specified
with the ``--exclude`` switch.

The required file content is one exclude item per line where wildcards are allowed, e.g.:
The required file content is one exclude item per line where wildcards are allowed, e.g.:
::

~*.tmp
Expand Down