layout | title |
---|---|
page |
Moodle Plugin CI Commands |
add-config
add-plugin
behat
codechecker
codefixer
completion
coveralls-upload
grunt
help
install
list
mustache
parallel
phpcbf
phpcpd
phpcs
phpdoc
phplint
phpmd
phpunit
savepoints
validate
Add a line to the Moodle config.php file
add-config [-m|--moodle MOODLE] [--] <line>
Add a line to the Moodle config.php file
Line of PHP code to add to the Moodle config.php file
- Is required: yes
- Is array: no
- Default:
NULL
Path to Moodle
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Is negatable: no
- Default:
'.'
Display help for the given command. When no command is given display help for the list command
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Do not output any message
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Display this application version
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Force (or disable --no-ansi) ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: yes
- Default:
NULL
Do not ask any interactive question
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Queue up an additional plugin to be installed in the test site
add-plugin [-b|--branch BRANCH] [-c|--clone CLONE] [--storage STORAGE] [--] [<project>]
Queue up an additional plugin to be installed in the test site
GitHub project, EG: moodlehq/moodle-local_hub, can't be used with --clone option
- Is required: no
- Is array: no
- Default:
NULL
The branch to checkout in plugin repo (if non-default)
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Is negatable: no
- Default:
NULL
Git clone URL, can't be used with --project option
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Is negatable: no
- Default:
NULL
Plugin storage directory
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Is negatable: no
- Default:
'moodle-plugin-ci-plugins'
Display help for the given command. When no command is given display help for the list command
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Do not output any message
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Display this application version
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Force (or disable --no-ansi) ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: yes
- Default:
NULL
Do not ask any interactive question
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Run Behat on a plugin
behat [-m|--moodle MOODLE] [-p|--profile PROFILE] [--suite SUITE] [--tags TAGS] [--name NAME] [--start-servers] [--auto-rerun AUTO-RERUN] [--selenium SELENIUM] [--dump] [--] <plugin>
Run Behat on a plugin
Path to the plugin
- Is required: yes
- Is array: no
- Default:
NULL
Path to Moodle
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Is negatable: no
- Default:
'.'
Behat profile option to use
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Is negatable: no
- Default:
'default'
Behat suite option to use (Moodle theme)
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Is negatable: no
- Default:
'default'
Behat tags option to use. If not set, defaults to the component name
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Is negatable: no
- Default:
''
Behat name option to use
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Is negatable: no
- Default:
''
Start Selenium and PHP servers
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Number of times to rerun failures
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Is negatable: no
- Default:
2
Selenium Docker image
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Is negatable: no
- Default:
NULL
Print contents of Behat failure HTML files
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Display help for the given command. When no command is given display help for the list command
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Do not output any message
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Display this application version
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Force (or disable --no-ansi) ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: yes
- Default:
NULL
Do not ask any interactive question
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Dump the shell completion script
completion [--debug] [--] [<shell>]
The completion command dumps the shell completion script required to use shell autocompletion (currently only bash completion is supported).
Dump the script to a global completion file and restart your shell:
bin/moodle-plugin-ci completion bash | sudo tee /etc/bash_completion.d/moodle-plugin-ci
Or dump the script to a local file and source it:
bin/moodle-plugin-ci completion bash > completion.sh
# source the file whenever you use the project
source completion.sh
# or add this line at the end of your "~/.bashrc" file:
source /path/to/completion.sh
Add this to the end of your shell configuration file (e.g. "~/.bashrc"):
eval "$(/path/to/bin/moodle-plugin-ci completion bash)"
The shell type (e.g. "bash"), the value of the "$SHELL" env var will be used if this is not given
- Is required: no
- Is array: no
- Default:
NULL
Tail the completion debug log
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Display help for the given command. When no command is given display help for the list command
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Do not output any message
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Display this application version
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Force (or disable --no-ansi) ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: yes
- Default:
NULL
Do not ask any interactive question
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Upload code coverage to Coveralls
coveralls-upload [--coverage-file COVERAGE-FILE] [--] <plugin>
Upload code coverage to Coveralls
Path to the plugin
- Is required: yes
- Is array: no
- Default:
NULL
Location of the Clover XML file to upload
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Is negatable: no
- Default:
'./coverage.xml'
Display help for the given command. When no command is given display help for the list command
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Do not output any message
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Display this application version
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Force (or disable --no-ansi) ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: yes
- Default:
NULL
Do not ask any interactive question
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Run Grunt task on a plugin
grunt [-m|--moodle MOODLE] [-t|--tasks TASKS] [--show-lint-warnings] [--max-lint-warnings MAX-LINT-WARNINGS] [--] <plugin>
Run Grunt task on a plugin
Path to the plugin
- Is required: yes
- Is array: no
- Default:
NULL
Path to Moodle
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Is negatable: no
- Default:
'.'
The Grunt tasks to run
- Accept value: yes
- Is value required: yes
- Is multiple: yes
- Is negatable: no
- Default:
array ( 0 => 'amd', 1 => 'yui', 2 => 'gherkinlint', 3 => 'stylelint:css', 4 => 'stylelint:less', 5 => 'stylelint:scss',)
Show eslint warnings
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Maximum number of eslint warnings
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Is negatable: no
- Default:
''
Display help for the given command. When no command is given display help for the list command
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Do not output any message
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Display this application version
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Force (or disable --no-ansi) ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: yes
- Default:
NULL
Do not ask any interactive question
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Display help for a command
help [--format FORMAT] [--raw] [--] [<command_name>]
The help command displays help for a given command:
bin/moodle-plugin-ci help list
You can also output the help in other formats by using the --format option:
bin/moodle-plugin-ci help --format=xml list
To display the list of available commands, please use the list command.
The command name
- Is required: no
- Is array: no
- Default:
'help'
The output format (txt, xml, json, or md)
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Is negatable: no
- Default:
'txt'
To output raw command help
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Display help for the given command. When no command is given display help for the list command
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Do not output any message
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Display this application version
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Force (or disable --no-ansi) ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: yes
- Default:
NULL
Do not ask any interactive question
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Install everything required for CI testing
install [--moodle MOODLE] [--data DATA] [--repo REPO] [--branch BRANCH] [--plugin PLUGIN] [--db-type DB-TYPE] [--db-user DB-USER] [--db-pass DB-PASS] [--db-name DB-NAME] [--db-host DB-HOST] [--db-port DB-PORT] [--not-paths NOT-PATHS] [--not-names NOT-NAMES] [--extra-plugins EXTRA-PLUGINS] [--no-init] [--no-plugin-node] [--node-version NODE-VERSION]
Install everything required for CI testing
Clone Moodle to this directory
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Is negatable: no
- Default:
'moodle'
Directory create for Moodle data files
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Is negatable: no
- Default:
'moodledata'
Moodle repository to clone
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Is negatable: no
- Default:
'https://github.com/moodle/moodle.git'
Moodle git branch to clone, EG: MOODLE_29_STABLE
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Is negatable: no
- Default:
NULL
Path to Moodle plugin
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Is negatable: no
- Default:
NULL
Database type, mysqli, pgsql or mariadb
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Is negatable: no
- Default:
NULL
Database user
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Is negatable: no
- Default:
NULL
Database pass
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Is negatable: no
- Default:
''
Database name
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Is negatable: no
- Default:
'moodle'
Database host
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Is negatable: no
- Default:
'localhost'
Database port
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Is negatable: no
- Default:
''
CSV of file paths to exclude
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Is negatable: no
- Default:
NULL
CSV of file names to exclude
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Is negatable: no
- Default:
NULL
Directory of extra plugins to install
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Is negatable: no
- Default:
NULL
Prevent PHPUnit and Behat initialization
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Prevent Node.js plugin dependencies installation
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Node.js version to use for nvm install (this will override one defined in .nvmrc)
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Is negatable: no
- Default:
NULL
Display help for the given command. When no command is given display help for the list command
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Do not output any message
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Display this application version
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Force (or disable --no-ansi) ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: yes
- Default:
NULL
Do not ask any interactive question
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
List commands
list [--raw] [--format FORMAT] [--short] [--] [<namespace>]
The list command lists all commands:
bin/moodle-plugin-ci list
You can also display the commands for a specific namespace:
bin/moodle-plugin-ci list test
You can also output the information in other formats by using the --format option:
bin/moodle-plugin-ci list --format=xml
It's also possible to get raw list of commands (useful for embedding command runner):
bin/moodle-plugin-ci list --raw
The namespace name
- Is required: no
- Is array: no
- Default:
NULL
To output raw command list
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
The output format (txt, xml, json, or md)
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Is negatable: no
- Default:
'txt'
To skip describing commands' arguments
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Display help for the given command. When no command is given display help for the list command
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Do not output any message
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Display this application version
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Force (or disable --no-ansi) ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: yes
- Default:
NULL
Do not ask any interactive question
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Run Mustache Lint on a plugin
mustache [-m|--moodle MOODLE] [--] <plugin>
Run Mustache Lint on a plugin
Path to the plugin
- Is required: yes
- Is array: no
- Default:
NULL
Path to Moodle
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Is negatable: no
- Default:
'.'
Display help for the given command. When no command is given display help for the list command
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Do not output any message
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Display this application version
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Force (or disable --no-ansi) ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: yes
- Default:
NULL
Do not ask any interactive question
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Run all of the tests and analysis against a plugin
parallel [-m|--moodle MOODLE] [--] <plugin>
Run all of the tests and analysis against a plugin
Path to the plugin
- Is required: yes
- Is array: no
- Default:
NULL
Path to Moodle
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Is negatable: no
- Default:
'.'
Display help for the given command. When no command is given display help for the list command
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Do not output any message
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Display this application version
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Force (or disable --no-ansi) ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: yes
- Default:
NULL
Do not ask any interactive question
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Run Code Beautifier and Fixer on a plugin
phpcbf [-s|--standard STANDARD] [--] <plugin>
codefixer
Run Code Beautifier and Fixer on a plugin
Path to the plugin
- Is required: yes
- Is array: no
- Default:
NULL
The name or path of the coding standard to use
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Is negatable: no
- Default:
'moodle'
Display help for the given command. When no command is given display help for the list command
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Do not output any message
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Display this application version
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Force (or disable --no-ansi) ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: yes
- Default:
NULL
Do not ask any interactive question
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Run PHP Copy/Paste Detector on a plugin (DEPRECATED)
phpcpd <plugin>
Run PHP Copy/Paste Detector on a plugin (DEPRECATED)
Path to the plugin
- Is required: yes
- Is array: no
- Default:
NULL
Display help for the given command. When no command is given display help for the list command
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Do not output any message
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Display this application version
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Force (or disable --no-ansi) ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: yes
- Default:
NULL
Do not ask any interactive question
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Run Moodle CodeSniffer standard on a plugin
phpcs [-s|--standard STANDARD] [-x|--exclude EXCLUDE] [--max-warnings MAX-WARNINGS] [--test-version TEST-VERSION] [--todo-comment-regex TODO-COMMENT-REGEX] [--license-regex LICENSE-REGEX] [--] <plugin>
codechecker
Run Moodle CodeSniffer standard on a plugin
Path to the plugin
- Is required: yes
- Is array: no
- Default:
NULL
The name or path of the coding standard to use
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Is negatable: no
- Default:
'moodle'
Comma separated list of sniff codes to exclude from checking
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Is negatable: no
- Default:
''
Number of warnings to trigger nonzero exit code - default: -1
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Is negatable: no
- Default:
-1
Version or range of version to test with PHPCompatibility
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Is negatable: no
- Default:
0
Regex to use to match TODO/@todo comments
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Is negatable: no
- Default:
''
Regex to use to match @license tags
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Is negatable: no
- Default:
''
Display help for the given command. When no command is given display help for the list command
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Do not output any message
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Display this application version
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Force (or disable --no-ansi) ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: yes
- Default:
NULL
Do not ask any interactive question
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Run Moodle PHPDoc Checker on a plugin
phpdoc [-m|--moodle MOODLE] [--max-warnings MAX-WARNINGS] [--] <plugin>
Run Moodle PHPDoc Checker on a plugin
Path to the plugin
- Is required: yes
- Is array: no
- Default:
NULL
Path to Moodle
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Is negatable: no
- Default:
'.'
Number of warnings to trigger nonzero exit code - default: -1
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Is negatable: no
- Default:
-1
Display help for the given command. When no command is given display help for the list command
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Do not output any message
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Display this application version
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Force (or disable --no-ansi) ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: yes
- Default:
NULL
Do not ask any interactive question
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Run PHP Lint on a plugin
phplint <plugin>
Run PHP Lint on a plugin
Path to the plugin
- Is required: yes
- Is array: no
- Default:
NULL
Display help for the given command. When no command is given display help for the list command
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Do not output any message
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Display this application version
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Force (or disable --no-ansi) ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: yes
- Default:
NULL
Do not ask any interactive question
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Run PHP Mess Detector on a plugin
phpmd [-m|--moodle MOODLE] [-r|--rules RULES] [--] <plugin>
Run PHP Mess Detector on a plugin
Path to the plugin
- Is required: yes
- Is array: no
- Default:
NULL
Path to Moodle
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Is negatable: no
- Default:
'.'
Path to PHP Mess Detector rule set
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Is negatable: no
- Default:
NULL
Display help for the given command. When no command is given display help for the list command
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Do not output any message
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Display this application version
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Force (or disable --no-ansi) ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: yes
- Default:
NULL
Do not ask any interactive question
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Run PHPUnit on a plugin
phpunit [-m|--moodle MOODLE] [-c|--configuration CONFIGURATION] [--testsuite TESTSUITE] [--filter FILTER] [--testdox] [--coverage-text] [--coverage-clover] [--coverage-pcov] [--coverage-xdebug] [--coverage-phpdbg] [--fail-on-incomplete] [--fail-on-risky] [--fail-on-skipped] [--fail-on-warning] [--] <plugin>
Run PHPUnit on a plugin
Path to the plugin
- Is required: yes
- Is array: no
- Default:
NULL
Path to Moodle
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Is negatable: no
- Default:
'.'
PHPUnit configuration XML file (relative to plugin directory)
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Is negatable: no
- Default:
NULL
PHPUnit testsuite option to use (must exist in the configuration file being used)
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Is negatable: no
- Default:
NULL
PHPUnit filter option to use
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Is negatable: no
- Default:
NULL
Enable testdox formatter
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Generate and print code coverage report in text format
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Generate code coverage report in Clover XML format
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Use the pcov extension to calculate code coverage
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Use the xdebug extension to calculate code coverage
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
(DEPRECATED) Use the phpdbg binary to calculate code coverage
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Treat incomplete tests as failures
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Treat risky tests as failures
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Treat skipped tests as failures
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Treat tests with warnings as failures
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Display help for the given command. When no command is given display help for the list command
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Do not output any message
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Display this application version
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Force (or disable --no-ansi) ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: yes
- Default:
NULL
Do not ask any interactive question
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Check upgrade savepoints
savepoints <plugin>
Check upgrade savepoints
Path to the plugin
- Is required: yes
- Is array: no
- Default:
NULL
Display help for the given command. When no command is given display help for the list command
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Do not output any message
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Display this application version
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Force (or disable --no-ansi) ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: yes
- Default:
NULL
Do not ask any interactive question
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Validate a plugin
validate [-m|--moodle MOODLE] [--] <plugin>
Validate a plugin
Path to the plugin
- Is required: yes
- Is array: no
- Default:
NULL
Path to Moodle
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Is negatable: no
- Default:
'.'
Display help for the given command. When no command is given display help for the list command
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Do not output any message
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Display this application version
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
Force (or disable --no-ansi) ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: yes
- Default:
NULL
Do not ask any interactive question
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false