Nextcloud - Files

Created by: Lester Caine, Last modification: 9 hours 22 minutes ago

occ files: functions help

Usage:
  command [options] [arguments]
Options:
  -h, --help            Display help for the given command. When no command is given display help for the list command
  -q, --quiet           Do not output any message
  -V, --version         Display this application version
      --ansi|--no-ansi  Force (or disable --no-ansi) 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 for the "files" namespace:
  files:cleanup                       Clean up orphaned filecache and mount entries
  files:copy                          Copy a file or folder
  files:delete                        Delete a file or folder
  files:get                           Get the contents of a file
  files:move                          Move a file or folder
  files:object:delete                 Delete an object from the object store
  files:object:get                    Get the contents of an object
  files:object:info                   Get the metadata of an object
  files:object:list                   List all objects in the object store
  files:object:multi:rename-config    Rename an object store configuration and move all users over to the new configuration,
  files:object:multi:users            Get the mapping between users and object store buckets
  files:object:orphans                List all objects in the object store that don't have a matching entry in the database
  files:object:put                    Write a file to the object store
  files:put                           Write contents of a file
  files:reminders                     List file reminders
  files:repair-tree                   Try and repair malformed filesystem tree structures
  files:sanitize-filenames            Renames files to match naming constraints
  files:scan                          rescan filesystem
  files:scan-app-data                 rescan the AppData folder
  files:transfer-ownership            All files and folders are moved to another user - outgoing shares and incoming user file shares (optionally) are moved as well.
  files:windows-compatible-filenames  Enforce naming constraints for windows compatible filenames

occ files:scan help

Description:
  rescan filesystem
Usage:
  files:scan [options] [--] [<user_id>...]
Arguments:
  user_id                                      will rescan all files of the given user(s)
Options:
      --output[=OUTPUT]                        Output format (plain, json or json_pretty, default is plain) [default: "plain"]
  -p, --path=PATH                              limit rescan to this path, eg. --path="/alice/files/Music", the user_id is determined by the path and the user_id parameter and --all are ignored
      --generate-metadata[=GENERATE-METADATA]  Generate metadata for all scanned files; if specified only generate for named value [default: ""]
      --all                                    will rescan all files of all known users
      --unscanned                              only scan files which are marked as not fully scanned
      --shallow                                do not scan folders recursively
      --home-only                              only scan the home storage, ignoring any mounted external storage or share
  -h, --help                                   Display help for the given command. When no command is given display help for the list command
  -q, --quiet                                  Do not output any message
  -V, --version                                Display this application version
      --ansi|--no-ansi                         Force (or disable --no-ansi) 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

Help:
  More extensive and thorough documentation may be found at https://docs.nextcloud.com