occ
Usage:
command [options] [arguments]
Options:
-h
,--help
Display this help message-q
,--quiet
Do not output any message-V
,--version
Display this application version--ansi
Force ANSI output--no-ansi
Disable ANSI output
-n
,--no-interaction
Do not ask any interactive question--no-warnings
Skip global warnings, show command output only
-v
|vv
|vvv
,--verbose
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Available commands:
check
check dependencies of the server environmenthelp
displays help for a commandlist
Lists commandsstatus
show some status informationupgrade
run upgrade routines after installation of a new release. The release has to be installed before.
Manage configuration
config
config:app:delete
Delete an app config valueconfig:app:get
Get an app config valueconfig:app:set
Set an app config valueconfig:import
Import a list of configsconfig:list
List all configsconfig:system:delete
Delete a system config valueconfig:system:get
Get a system config valueconfig:system:set
Set a system config value
Manage Database
db
db:add-missing-indices
Add missing indices to the database tablesdb:convert-filecache-bigint
Convert the ID columns of the filecache to BigIntdb:convert-mysql-charset
Convert charset of MySQL/MariaDB to use utf8mb4db:convert-type
Convert the Nextcloud database to the newly configured one
Encryption Management
encryption
encryption:change-key-storage-root
Change key storage rootencryption:decrypt-all
Disable server-side encryption and decrypt all filesencryption:disable
Disable encryptionencryption:enable
Enable encryptionencryption:encrypt-all
Encrypt all files for all usersencryption:list-modules
List all available encryption modulesencryption:set-default-module
Set the encryption default moduleencryption:show-key-storage-root
Show current key storage rootencryption:status
Lists the current status of encryption
Federation Management
federation
federation:sync-addressbooks
Synchronizes addressbooks of all federated clouds
Files Management
files
files:cleanup
cleanup filecachefiles:recommendations:recommend
files:scan
rescan filesystemfiles:scan-app-data
rescan the AppData folderfiles:transfer-ownership
All files and folders are moved to another user - shares are moved as well.
Groups Management
roup
group:add
Add a groupgroup:adduser
add a user to a groupgroup:delete
Remove a groupgroup:list
list configured groupsgroup:removeuser
remove a user from a group
Integrity App, Core
integrity
integrity:check-app
Check integrity of an app using a signature.integrity:check-core
Check integrity of core code using a signature.integrity:sign-app
Signs an app using a private key.integrity:sign-core
Sign core using a private key.
Logs Management
log
log:file
manipulate logging backendlog:manage
manage logging configurationlog:tail
Tail the nextcloud logfilelog:watch
Watch the nextcloud logfile
NC Background jobs
background
background:ajax
Use ajax to run background jobsbackground:cron
Use cron to run background jobsbackground:webcron
Use webcron to run background jobs
NC Maintenance
maintenance
maintenance:data-fingerprint
update the systems data-fingerprint after a backup is restoredmaintenance:mimetype:update-db
Update database mimetypes and update filecachemaintenance:mimetype:update-js
Update mimetypelist.jsmaintenance:mode
set maintenance modemaintenance:repair
repair this installationmaintenance:theme:update
Apply custom theme changesmaintenance:update:htaccess
Updates the .htaccess file
NC Migration
migrations
migrations:execute
Execute a single migration version manually.migrations:generate
migrations:generate-from-schema
migrations:migrate
Execute a migration to a specified version or the latest available version.migrations:status
View the status of a set of migrations.
NC Security
security
security:certificates
list trusted certificatessecurity:certificates:import
import trusted certificatesecurity:certificates:remove
remove trusted certificate
NC Update
update
update:check
Check for server and app updates
User management
user
user:add
adds a useruser:delete
deletes the specified user and all datas useruser:disable
disables the specified useruser:enable
enables the specified useruser:info
show user infouser:lastseen
shows when the user was logged in last timeuser:list
list configured usersuser:report
shows how many users have accessuser:resetpassword
Resets the password of the named useruser:setting
Read and modify user settings
notification
notification:generate
Generate a notification for the given user
versions
versions:cleanup
Delete versions: delete versions of the given user(s), if no user is given all versions will be deletedversions:expire
Expires the users file versions: expire file versions of the given user(s), if no user is given file versions for all users will be expired.
Manage applications
app
app:check-code
check code to be compliantapp:disable
disable an appapp:enable
enable an appapp:getpath
Get an absolute path to the app directoryapp:install
install an appapp:list
List all available appsapp:remove
remove an appapp:update
update an app or all apps
mail
mail:account:create
creates IMAP accountmail:account:export
Exports a user’s IMAP account(s)
Circles
circles
circles:clean
remove all extra data from databasecircles:fixuniqueid
fix Unique Id issue.
Deck
deck
deck:export
Export a JSON dump of user data
Talk
talk
talk:command:add
Add a new commandtalk:command:add-samples
Adds some sample commands: /wiki, …talk:command:delete
Remove an existing commandtalk:command:list
List all available commandstalk:command:update
Add a new commandtalk:signaling:add
Add an external signaling server.talk:signaling:delete
Remove an existing signaling server.talk:signaling:list
List external signaling servers.talk:stun:add
Add a new STUN server.talk:stun:delete
Remove an existing STUN server.talk:stun:list
List STUN servers.talk:turn:add
Add a TURN server.talk:turn:delete
Remove an existing TURN server.talk:turn:list
List TURN servers.
2FA: Two Factor Auth
twofactorauth
twofactorauth:cleanup
Clean up the two-factor user-provider association of an uninstalled/removed providertwofactorauth:disable
Disable two-factor authentication for a usertwofactorauth:enable
Enable two-factor authentication for a usertwofactorauth:enforce
Enabled/disable enforced two-factor authenticationtwofactorauth:state
Get the two-factor authentication (2FA) state of a user
WebDAV
dav
dav:create-addressbook
Create a dav addressbookdav:create-calendar
Create a dav calendardav:list-calendars
List all calendars of a userdav:move-calendar
Move a calendar from an user to anotherdav:remove-invalid-shares
Remove invalid dav sharesdav:send-event-reminders
Sends event remindersdav:sync-birthday-calendar
Synchronizes the birthday calendardav:sync-system-addressbook
Synchronizes users to the system addressbook