NEXTCLOUDCMD(1)
β¨ NAME β¨
nextcloudcmd β the command line Nextcloud client tool, aka the little terminal bestie that does the whole sync thing without any GUI drama π
π¦ SYNOPSIS π¦
nextcloudcmd [OPTIONS...] sourcedir nextcloudurl
π DESCRIPTION π
okay so, nextcloudcmd is the command line tool that comes with the Nextcloud file synchronization desktop utility. it's the same energy as the nextcloud(1) GUI client, except... plot twist: nextcloudcmd does one single sync run and then dips. that's it. one and done. no hanging around. π«Ά
and fun fact, bestie: nextcloudcmd is literally the glow-up replacement for the old ocsync binary that used to do this exact job in earlier releases. we don't talk about ocsync anymore. she's retired. π
so what does one sync run even do? it synchronizes a single local directory using a WebDAV share on a remote Nextcloud server. that's the whole vibe.
to invoke the command line client, you just hand it the local and the remote repository:
- the first parameter is the local directory π
- the second parameter is the server URL π
NOTE: before the 1.6 release ofnextcloudcmd, the tool only acceptedowncloud://orownclouds://in place ofhttp://andhttps://as a scheme. yes, really. it was giving ancient. see the Examples section below for the receipts. π
πΈ OPTIONS πΈ
--pathβ overrides the default remote root folder and points it at a specific subfolder on the server instead (e.g.:/Documentswould sync the Documents subfolder on the server). slay, but for directories. π--user,-u<user> β use user as the login name.--password,-p<password> β use password as the password.-nβ usenetrc(5)for login. let the file do the talking. π€«--non-interactiveβ do not prompt for questions. she will not be asking. periodt.--silent,--sβ inhibits verbose log output. quiet mode activated. π€--trustβ trust any SSL certificate, including invalid ones. π yes, including invalid ones. we are holding your hand and also your security, be careful out here.--httpproxy http://[user@pass:]<server>:<port>β uses server as HTTP proxy.--exclude<file> β exclude list file.--unsyncedfolders<file> β file containing the list of unsynced folders (selective sync). picky about which folders get to come along, iconic behavior honestly. π--max-sync-retries<n> β retries maximum n times (defaults to 3). she's persistent but not that persistent. β¨-hβ sync hidden files, do not ignore them. (not help, bestie. hidden. do not get it twisted. π)
π EXAMPLE π
say you wanna synchronize the Nextcloud directory Music to the local directory media/music, through a proxy listening on port 8080 on the gateway machine 192.168.178.1. the command line would be:
$ nextcloudcmd --httpproxy http://192.168.178.1:8080 --path /Music \
$HOME/media/music \
https://server/nextcloud
and nextcloudcmd will enquire user name and password, unless they have been specified on the command line or -n (see netrc(5)) has been passed. no secrets, no entry. π
using the legacy scheme, it would be:
$ nextcloudcmd --httpproxy http://192.168.178.1:8080 --path /Music \
$HOME/media/music \
ownclouds://server/nextcloud
π BUGS π
found a bug? please report bugs at https://github.com/nextcloud/client/issues. the devs want the tea, fr fr. π
β SEE ALSO β
π AUTHOR π
The Nextcloud developers
π COPYRIGHT π
2013-2024, The Nextcloud developers
and that's the whole page, bestie!! this was version 3.16, dated Nov 02, 2025, straight from the Nextcloud Client Manual. go sync something iconic. π¦β¨π
π¦ where this page comes from
- debian trixie: nextcloud-desktop-cmd 3.16.7-1~deb13u1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms