occ
Usage:
command [options] [arguments]
Options:
-h,--helpDisplay this help message-q,--quietDo not output any message-V,--versionDisplay this application version--ansiForce ANSI output--no-ansiDisable ANSI output
-n,--no-interactionDo not ask any interactive question--no-warningsSkip global warnings, show command output only
-v|vv|vvv,--verboseIncrease the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Available commands:
checkcheck dependencies of the server environmenthelpdisplays help for a commandlistLists commandsstatusshow some status informationupgraderun upgrade routines after installation of a new release. The release has to be installed before.
Manage configuration
config
config:app:deleteDelete an app config valueconfig:app:getGet an app config valueconfig:app:setSet an app config valueconfig:importImport a list of configsconfig:listList all configsconfig:system:deleteDelete a system config valueconfig:system:getGet a system config valueconfig:system:setSet a system config value
Manage Database
db
db:add-missing-indicesAdd missing indices to the database tablesdb:convert-filecache-bigintConvert the ID columns of the filecache to BigIntdb:convert-mysql-charsetConvert charset of MySQL/MariaDB to use utf8mb4db:convert-typeConvert the Nextcloud database to the newly configured one
Encryption Management
encryption
encryption:change-key-storage-rootChange key storage rootencryption:decrypt-allDisable server-side encryption and decrypt all filesencryption:disableDisable encryptionencryption:enableEnable encryptionencryption:encrypt-allEncrypt all files for all usersencryption:list-modulesList all available encryption modulesencryption:set-default-moduleSet the encryption default moduleencryption:show-key-storage-rootShow current key storage rootencryption:statusLists the current status of encryption
Federation Management
federation
federation:sync-addressbooksSynchronizes addressbooks of all federated clouds
Files Management
files
files:cleanupcleanup filecachefiles:recommendations:recommendfiles:scanrescan filesystemfiles:scan-app-datarescan the AppData folderfiles:transfer-ownershipAll files and folders are moved to another user - shares are moved as well.
Groups Management
group
group:addAdd a groupgroup:adduseradd a user to a groupgroup:deleteRemove a groupgroup:listlist configured groupsgroup:removeuserremove a user from a group
Integrity App, Core
integrity
integrity:check-appCheck integrity of an app using a signature.integrity:check-coreCheck integrity of core code using a signature.integrity:sign-appSigns an app using a private key.integrity:sign-coreSign core using a private key.
Logs Management
log
log:filemanipulate logging backendlog:managemanage logging configurationlog:tailTail the nextcloud logfilelog:watchWatch the nextcloud logfile
NC Background jobs
background
background:ajaxUse ajax to run background jobsbackground:cronUse cron to run background jobsbackground:webcronUse webcron to run background jobs
NC Maintenance
maintenance
maintenance:data-fingerprintupdate the systems data-fingerprint after a backup is restoredmaintenance:mimetype:update-dbUpdate database mimetypes and update filecachemaintenance:mimetype:update-jsUpdate mimetypelist.jsmaintenance:modeset maintenance modemaintenance:repairrepair this installationmaintenance:theme:updateApply custom theme changesmaintenance:update:htaccessUpdates the .htaccess file
NC Migration
migrations
migrations:executeExecute a single migration version manually.migrations:generatemigrations:generate-from-schemamigrations:migrateExecute a migration to a specified version or the latest available version.migrations:statusView the status of a set of migrations.
NC Security
security
security:certificateslist trusted certificatessecurity:certificates:importimport trusted certificatesecurity:certificates:removeremove trusted certificate
NC Update
update
update:checkCheck for server and app updates
User management
user
user:addadds a useruser:deletedeletes the specified user and all datas useruser:disabledisables the specified useruser:enableenables the specified useruser:infoshow user infouser:lastseenshows when the user was logged in last timeuser:listlist configured usersuser:reportshows how many users have accessuser:resetpasswordResets the password of the named useruser:settingRead and modify user settings
notification
notification:generateGenerate a notification for the given user
versions
versions:cleanupDelete versions: delete versions of the given user(s), if no user is given all versions will be deletedversions:expireExpires 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-codecheck code to be compliantapp:disabledisable an appapp:enableenable an appapp:getpathGet an absolute path to the app directoryapp:installinstall an appapp:listList all available appsapp:removeremove an appapp:updateupdate an app or all apps
mail
mail:account:createcreates IMAP accountmail:account:exportExports a user’s IMAP account(s)
Circles
circles
circles:cleanremove all extra data from databasecircles:fixuniqueidfix Unique Id issue.
Deck
deck
deck:exportExport a JSON dump of user data
Talk
talk
talk:command:addAdd a new commandtalk:command:add-samplesAdds some sample commands: /wiki, …talk:command:deleteRemove an existing commandtalk:command:listList all available commandstalk:command:updateAdd a new commandtalk:signaling:addAdd an external signaling server.talk:signaling:deleteRemove an existing signaling server.talk:signaling:listList external signaling servers.talk:stun:addAdd a new STUN server.talk:stun:deleteRemove an existing STUN server.talk:stun:listList STUN servers.talk:turn:addAdd a TURN server.talk:turn:deleteRemove an existing TURN server.talk:turn:listList TURN servers.
2FA: Two Factor Auth
twofactorauth
twofactorauth:cleanupClean up the two-factor user-provider association of an uninstalled/removed providertwofactorauth:disableDisable two-factor authentication for a usertwofactorauth:enableEnable two-factor authentication for a usertwofactorauth:enforceEnabled/disable enforced two-factor authenticationtwofactorauth:stateGet the two-factor authentication (2FA) state of a user
WebDAV
dav
dav:create-addressbookCreate a dav addressbookdav:create-calendarCreate a dav calendardav:list-calendarsList all calendars of a userdav:move-calendarMove a calendar from an user to anotherdav:remove-invalid-sharesRemove invalid dav sharesdav:send-event-remindersSends event remindersdav:sync-birthday-calendarSynchronizes the birthday calendardav:sync-system-addressbookSynchronizes users to the system addressbook