Nextcloud commands
Files, folders, shares, users, groups and quotas on the Nextcloud server. Staff only, unless allowed for a client.
Run each as one terminal line starting with $ , with real values instead of the examples. Plain text version.
Common tasks
Give a client Nextcloud access in one step (user + password + folder + share + their record):
$ set up nextcloud for client narjis with folder /Gova
Several steps run one at a time: after each you get its result and send the next command (or "done"). Create commands also reuse what already exists (an existing user keeps their password):
$ create user narjis $ create folder /Gova $ share /Gova with narjis edit
Decide from a result: search first, then create only if it was not found, then share:
$ find folder TestMe (result: No folder named like "TestMe") $ create folder /TestMe $ share /TestMe with narjis edit done
Find a folder when you only know part of its name:
$ find folder alex
See inside a folder (with one level of subfolders):
$ list folders in /Clients
See the files in a folder, with sizes and dates (one level):
$ list files in /Clients/Acme
Users and passwords: a new user gets a strong random password, or the one you type; either way the login is sent to you privately. A password you type is never shown back, logged or sent to a brain (delete your message afterwards):
$ create user sara $ create user sara with a random password $ create user sara with password Blue-Cedar-2026 $ reset password of sara $ set password of sara to Blue-Cedar-2026
Check access: who sees a folder, and what a user can open:
$ who can see /Gova $ what does narjis have access to
All commands
$ reset my nextcloud password- Reset my Nextcloud password (changes something)
$ nextcloud space- How much Nextcloud space do I have (reads only)
$ share /Clients/ABC with Sales edit- Share a folder (changes something)
Form:share <folder> with <user or group> <view or edit>
Details: folder, user or group, whether it is a user or a group (optional), view or edit (optional)
Also:share "/My Docs" to group "Team A" view only,give hadi access to /Movies $ unshare /Clients/ABC from Sales- Stop sharing (changes something)
Form:unshare <folder> from <user or group>
Details: folder, user or group, whether it is a user or a group (optional)
Also:remove hadi from /Movies $ change /Docs for hadi to edit- Change a share to view/edit (changes something)
Form:change <folder> for <user or group> to <view or edit>
Details: folder, user or group, whether it is a user or a group (optional), view or edit
Also:set sales to view on /Clients/ABC $ who can see /Clients/ABC- Who can see a folder (reads only)
Form:who can see <folder>
Details: folder
Also:who has access to /Docs $ what does hadi have access to- What a user can access (reads only)
Form:what does <user> have access to
Details: user
Also:access of sara $ create folder /Clients/New- Create a folder (changes something)
Form:create folder <folder>
Details: folder
Also:mkdir /Docs/2026 $ public link for /Docs/Offer 7 days- Public link (password + expiry) (changes something)
Form:public link for <folder> <days> days
Details: folder, days (optional)
Also:link to /Docs $ create user sara- Create a Nextcloud user (random password, or the one you type) (changes something)
Form:create user <user id>
Details: user id, password (optional)
Also:add nextcloud user omar,create user sara with password Blue-Cedar-2026 $ set password of sara to Blue-Cedar-2026- Set a Nextcloud password you choose (changes something)
Form:set password of <user> to <password>
Details: user, password
Also:change sara's password to Blue-Cedar-2026 $ reset password of sara- Reset a Nextcloud password (changes something)
Form:reset password of <user>
Details: user
Also:change password of sara $ add sara to group Sales- Add a user to a group (changes something)
Form:add <user> to group <group>
Details: user, group $ set quota of sara to 5 GB- Set storage quota (changes something)
Form:set quota of <user> to <size>
Details: user, size
Also:give omar 10 GB of space $ disable user sara- Disable a Nextcloud user (changes something)
Form:disable user <user>
Details: user $ delete user abc111- Delete a Nextcloud user (and their files) (changes something)
Form:delete user <user>
Details: user
Also:delete nextcloud user abc111,remove abc111 from nextcloud $ enable user sara- Enable a Nextcloud user (changes something)
Form:enable user <user>
Details: user $ list users- List users (reads only)
Also:list nextcloud users $ access report- Access report: what every user can access (reads only)
Also:who has access to what,audit access $ find folder alex- Find a folder by name (reads only)
Form:find folder <name>
Details: name
Also:search for folder named invoices,where is folder Gova $ set up nextcloud for client narjis- Give a client Nextcloud access (user, folder, share) (changes something)
Form:set up nextcloud for client <client name>
Details: client name, folder (optional), user (optional)
Also:set up nextcloud for client narjis with folder /Gova,give client Acme nextcloud access as user acme.office $ list folders- List folders (and their subfolders) (reads only)
Details: folder (optional)
Also:list folders in /Clients,show subfolders of /Clients/Acme $ list all files- List all files in every folder and subfolder (reads only)
Details: folder (optional), folder (optional)
Also:list all files found on nextcloud,list all files in /CompanyFiles $ list files- List files in a folder (with sizes) (reads only)
Details: folder (optional), folder (optional)
Also:list files in /Clients/Acme,what files are in /Docs $ list groups- List groups (reads only)
$ info about hadi- User details (reads only)
Form:info about <user>
Details: user
Also:user info sara