Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.
/admin/cli/
FolderUp one level  
Fileadhoc_task.php                       [source] [131 lines]   Task executor for adhoc tasks.
Filealternative_component_cache.php      [source] [111 lines]   This hack is intended for clustered sites that do not want to use shared cachedir for component cache.
Fileautomated_backups.php                [source] [99 lines]    Automated backups CLI cron
Filebackup.php                           [source] [119 lines]   This script allows to do backup.
Filebuild_theme_css.php                  [source] [119 lines]   Build and store theme CSS.
Filecfg.php                              [source] [185 lines]   CLI script allowing to get and set config values.
Filecheck_database_schema.php            [source] [76 lines]    Validate that the current db structure matches the install.xml files.
Filechecks.php                           [source] [171 lines]   CLI tool for system checks
Filecron.php                             [source] [178 lines]   CLI cron
Filedashboard_reset.php                  [source] [65 lines]    CLI script to reset dashboards.
Filedelete_course.php                    [source] [124 lines]   CLI script to delete a course.
Filefix_course_sequence.php              [source] [125 lines]   This script fixed incorrectly deleted users.
Filefix_deleted_users.php                [source] [92 lines]    This script fixed incorrectly deleted users.
Filefix_orphaned_calendar_events.php     [source] [138 lines]   Fix orphaned calendar events that were broken by MDL-67494.
Filefix_orphaned_question_categories.php [source] [103 lines]   This script fixes orphaned question categories.
Filegenerate_key.php                     [source] [79 lines]    Generates a secure key for the current server (presuming it does not already exist).
Fileinstall.php                          [source] [859 lines]   This script creates config.php file and prepares database.
Fileinstall_database.php                 [source] [207 lines]   This installs Moodle into empty database, config.php must already exist.
Filekill_all_sessions.php                [source] [55 lines]    CLI script to kill all user sessions without asking for confirmation.
Filemaintenance.php                      [source] [112 lines]   Enable or disable maintenance mode.
Filemysql_collation.php                  [source] [328 lines]   MySQL collation conversion tool.
Filemysql_compressed_rows.php            [source] [202 lines]   MySQL table row compression tool tool.
Filepurge_caches.php                     [source] [76 lines]    CLI script to purge caches without asking for confirmation.
Filereset_password.php                   [source] [108 lines]   This script allows you to reset any local user password.
Filerestore_backup.php                   [source] [109 lines]   This script allows to restore a course from CLI.
Filescheduled_task.php                   [source] [168 lines]   CLI task execution.
Filesvgtool.php                          [source] [182 lines]   This script implements some useful svg manipulation tricks.
Fileuninstall_plugins.php                [source] [183 lines]   CLI script to uninstall plugins.
Fileupgrade.php                          [source] [233 lines]   This script creates config.php file and prepares database.