<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.sandbox.joomla.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Cavo789</id>
	<title>Joomla! Documentation - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://docs.sandbox.joomla.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Cavo789"/>
	<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/Special:Contributions/Cavo789"/>
	<updated>2026-07-09T19:15:18Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Update/fr&amp;diff=636621</id>
		<title>J4.x:CLI Update/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Update/fr&amp;diff=636621"/>
		<updated>2019-10-19T11:54:41Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: Created page with &amp;quot;&amp;quot;Installation à partir de l&amp;#039;URL&amp;quot; : Pour installer une extension à partir de l&amp;#039;URL, nous exécuterons la commande comme ceci et fournirons un argument et une option pour la c...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{Top portal heading|color=white-bkgd|text-color=#333|title=&lt;br /&gt;
GSoC 2018 &amp;lt;br /&amp;gt;&lt;br /&gt;
Documentation&amp;lt;br /&amp;gt;sur les lignes de commande}}&lt;br /&gt;
[[Image:Gsoc2016.png|75px|center|link=GSOC 2018]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;{{Joomla version|version=4.x}}&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Pour effectuer une tâche mineure dans Joomla!, le tableau de bord de l&#039;administrateur peut sembler fastidieux et lent. La mise à jour de l&#039;application CLI introduit un moyen plus rapide d&#039;effectuer certaines de ces opérations via la ligne de commande. Cela offre un moyen d&#039;intégrer les choses plus rapidement dans l&#039;application Joomla!. Grâce à ce logiciel, les petits tests peuvent être effectués plus rapidement sans passer par le processus du tableau de bord Web. C’est une application CLI pour Joomla! CMS qui permet à l&#039;utilisateur d&#039;effectuer des mises à jour dans le CMS.&lt;br /&gt;
&lt;br /&gt;
Cette documentation montre comment utiliser la mise à jour de l&#039;application CLI et comment étendre ses fonctionnalités en tant que développeur.&lt;br /&gt;
&lt;br /&gt;
===Pré-requis===&lt;br /&gt;
Comme c&#039;est le cas pour toutes les applications CLI (Command Line Interface), l&#039;accès à votre installation Joomla! via la ligne de commande est nécessaire pour utiliser les outils fournis par le CLI Update.&lt;br /&gt;
Vous devriez peut-être envisager d&#039;avoir un accès SSH pour votre serveur en direct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Termes et définitions===&lt;br /&gt;
*CLI - Command Line Interface&lt;br /&gt;
*SSH - Secure SHell&lt;br /&gt;
&lt;br /&gt;
==Utilisation du CLI Update==&lt;br /&gt;
In other for you to use the tools provided by CLI Update, as said in former section, you need access to a CLI into the root of the Joomla Installation. In other words you have to be in the root folder of your Joomla CMS as all commands will run from the root folder.&lt;br /&gt;
[[File:All commands.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
==Utilisation des commandes générales==&lt;br /&gt;
Dans cette section, nous parlerons de l&#039;utilisation des commandes, nous parlerons des différentes commandes, de ce qu&#039;elles sont et comment vous pouvez les utiliser. Nous irons voir les commandes disponibles dans le CLI Update.&lt;br /&gt;
&lt;br /&gt;
===Commandes disponibles===&lt;br /&gt;
Il y a un certain nombre de commandes disponibles dans le CLI Update qui sont prêtes à l&#039;emploi. Ces commandes sont regroupées en fonction de la zone du CMS Joomla! qu&#039;elles touchent.&lt;br /&gt;
&lt;br /&gt;
====Vérification des mises à jour mises à jour====&lt;br /&gt;
Le CLI Update fournit une commande pour vérifier les mises à jour de Joomla!, elle fonctionne comme la version web de &amp;lt;tt&amp;gt;com_joomlaupdate&amp;lt;/tt&amp;gt;, elle récupère la mise à jour et indique si la mise à jour est disponible ou pas. Pour lancer la vérification de mise à jour, nous allons simplement lancer la commande comme ceci à partir du répertoire racine :&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php check-updates&amp;lt;/tt&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
La commande s&#039;exécute et la sortie affiche une version de mise à jour disponible, si disponible, ou indique que l&#039;installation actuelle est à jour.&lt;br /&gt;
[[File:Check updates.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Commandes des composants==== &lt;br /&gt;
Le groupe suivant de commandes sont les commandes basées sur l&#039;extension, simplement dit, les commandes nous permettent de gérer les extensions dans le noyau Jommla!, le CLI Update est livré avec des commandes pour installer, lister et supprimer les extensions.&lt;br /&gt;
&lt;br /&gt;
======Liste des extensions installées======&lt;br /&gt;
Cette commande nous permet de lister toutes les extensions installées. Cette commande peut s&#039;exécuter de deux manières différentes qui sont :&lt;br /&gt;
*&amp;quot;Liste générale&amp;quot; : Liste toutes les extensions installées, par extension cela signifie que les composants, langages, plugins et modules seront listés ensemble lorsque vous lancez cette commande. C&#039;est ainsi que vous appelez la commande :{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:list&amp;lt;/tt/&amp;gt; {{-}}[[File:Extension list.png|center|800px]]&lt;br /&gt;
*&amp;quot;Listing par types&amp;quot; : La liste générale des extensions peut être fastidieuse si vous recherchez une extension particulière parmi la grande liste, cependant, vous pouvez réduire le nombre en spécifiant le type d&#039;extensions que vous pouvez afficher la commande en ajoutant une option de type à cette commande. Voici comment cela se fait : {{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:list --type=language&amp;lt;/tt&amp;gt;{{-}}[[File:Extension list type.png|center|800px]]&lt;br /&gt;
Ceci listera seulement les extensions basées sur la langue, vous pouvez spécifier le type comme module, plugin et composant.&lt;br /&gt;
&lt;br /&gt;
======Installation d&#039;une extension======&lt;br /&gt;
Joomla fournit l&#039;installation d&#039;une extension par le biais d&#039;une URL vers le fichier zip ou un chemin d&#039;accès au fichier, le CLI Update propose les deux possibilités et la manière de les utiliser est décrite ci-dessous.&lt;br /&gt;
*&amp;quot;Installation à partir de l&#039;URL&amp;quot; : Pour installer une extension à partir de l&#039;URL, nous exécuterons la commande comme ceci et fournirons un argument et une option pour la commande &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt;commande.{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:install url --url=https://github.com/joomla-extensions/patchtester/releases/download/3.0.0-beta3/com_patchtester.zip&amp;lt;/tt&amp;gt;{{-}}This will download the extension &amp;lt;tt&amp;gt;com_patchtester&amp;lt;/tt&amp;gt;.&lt;br /&gt;
{{-}}[[File:Extension install url.png|center|800px]]&lt;br /&gt;
*&#039;&#039;Installing from a PATH&#039;&#039;:To install an extension from a PATH we will run the same &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command and specify arguments for paths like this:{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:install path --path=/Users/bosunski/docs/com_pathtester.zip&amp;lt;/tt&amp;gt; {{-}}[[File:Extension install path.png|center|800px]]&lt;br /&gt;
This loads the extension and performs the installation as expected.&lt;br /&gt;
&lt;br /&gt;
======Removing an extension======&lt;br /&gt;
The last command under this category is the &amp;lt;tt&amp;gt;extension:remove&amp;lt;/tt&amp;gt; command that is used to remove extensions from the Joomla CMS. This command takes in the &amp;lt;tt&amp;gt;extension_id&amp;lt;/tt&amp;gt; as an argument, you can always use the &amp;lt;tt&amp;gt;extension:list&amp;lt;/tt&amp;gt; to display extension id. This is how we remove an extension of id &amp;lt;tt&amp;gt;803&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php extension:remove 803&amp;lt;/tt&amp;gt;&lt;br /&gt;
[[File:Extension Remove.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Updating the Joomla Core====&lt;br /&gt;
As much as the CLI Update provides a command to check update, it also provides a command to perform the update if an update is available. To perform update we will just run this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php core:update&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
This command updates the Joomla core updating it to the latest version available.&lt;br /&gt;
&lt;br /&gt;
[[File:Core update.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Installing Joomla! via the CLI====&lt;br /&gt;
The next command here is the &amp;lt;tt&amp;gt;core:install&amp;lt;/tt&amp;gt; command that lets installation of Joomla CMS to be done via the CLI. This command can  work in 2 modes: The Interactive mode and the Non-interactive mode.&lt;br /&gt;
&lt;br /&gt;
=====Interactive installation=====&lt;br /&gt;
To have a fresh installation of Joomla using the interactive mode we will just run the &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command like so:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php extension:install&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The default installation mode will run and will ask you to input the settings as it&#039;s required, once all options have been provided and validated, the installations will run and Joomla will be installed.&lt;br /&gt;
&lt;br /&gt;
[[File:Core install interactive.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Non-interactive Installation=====&lt;br /&gt;
The next type of installation is the Non-interactive mode. In this mode you will not be asked to input the options but rather all options will be specified within a file and the command will take in an option that specifies the path to the file you want to load the options from, it&#039;s done like this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php core:install --file=/path/to/config.json&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Core install file.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
An example of the contents of &amp;lt;tt&amp;gt;config.json&amp;lt;/tt&amp;gt; can be:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;language&amp;quot;:&amp;quot;en-GB&amp;quot;,&lt;br /&gt;
  &amp;quot;site_name&amp;quot;:&amp;quot;Joomla&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_email&amp;quot;:&amp;quot;email@example.com&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_user&amp;quot;:&amp;quot;user&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_password&amp;quot;:&amp;quot;password&amp;quot;,&lt;br /&gt;
  &amp;quot;db_type&amp;quot;:&amp;quot;mysql&amp;quot;,&lt;br /&gt;
  &amp;quot;db_host&amp;quot;:&amp;quot;localhost&amp;quot;,&lt;br /&gt;
  &amp;quot;db_user&amp;quot;:&amp;quot;root&amp;quot;,&lt;br /&gt;
  &amp;quot;db_pass&amp;quot;:&amp;quot;xcdxcx&amp;quot;,&lt;br /&gt;
  &amp;quot;db_name&amp;quot;:&amp;quot;jtest&amp;quot;,&lt;br /&gt;
  &amp;quot;db_prefix&amp;quot;:&amp;quot;efs0k_&amp;quot;,&lt;br /&gt;
  &amp;quot;db_old&amp;quot;:&amp;quot;remove&amp;quot;,&lt;br /&gt;
  &amp;quot;helpurl&amp;quot;:&amp;quot;https://joomla.org&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
OR as sample &amp;lt;tt&amp;gt;config.ini&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
site_name=&amp;quot;gsoc&amp;quot;&lt;br /&gt;
admin_email=&amp;quot;user@example.com&amp;quot;&lt;br /&gt;
admin_user=&amp;quot;user&amp;quot;&lt;br /&gt;
admin_password=&amp;quot;secret&amp;quot;&lt;br /&gt;
db_type=&amp;quot;mysql&amp;quot;&lt;br /&gt;
db_host=&amp;quot;localhost&amp;quot;&lt;br /&gt;
db_user=&amp;quot;root&amp;quot;&lt;br /&gt;
db_pass=&amp;quot;&amp;quot;&lt;br /&gt;
db_name=&amp;quot;joomla&amp;quot;&lt;br /&gt;
db_prefix=&amp;quot;prefix_&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The options defined are loaded and validated after which the installation will run.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Configuration based commands====&lt;br /&gt;
The next set of commands we will be looking at is for setting and viewing configuration options inside the Joomla installation:&lt;br /&gt;
&lt;br /&gt;
=====Setting configurations=====&lt;br /&gt;
The CLI Update provides a command to change the value of an option existing in the configuration. Using the &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command you can set any configuration option that exists inside the &amp;lt;tt&amp;gt;configuration.php&amp;lt;/tt&amp;gt;. This is how to use command:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:set mailer=mail&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Config set single.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
You can even add multiple option-value pairs like this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:set mailer=mail fromname=Joomla! sitename=&amp;quot;Joomla Site&amp;quot;&amp;lt;/tt&amp;gt;&lt;br /&gt;
This will set multiple options at once.&lt;br /&gt;
&lt;br /&gt;
[[File:Config set multiple.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Getting configurations=====&lt;br /&gt;
The next command in this category is the &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command, as the name suggests it gets the value of an option that exists inside the &amp;lt;tt&amp;gt;configuration.php&amp;lt;/tt&amp;gt;, when no argument is supplied to the command, it will display all the options available in a tabulated form. Here is the command:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get sitename&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return the value for the option &amp;lt;tt&amp;gt;sitename&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:011-cli.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return all the values for the available options.&lt;br /&gt;
&lt;br /&gt;
[[File:Config get all.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Getting grouped configurations=====&lt;br /&gt;
The CLI Update adds an option to &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command that allows us to get logically grouped options, say for example you want to view all your database related options, or you want to view all email related options. To achieve this the CLI Update provides an option to specify a group of options to display, here is how to do that: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get --group=mail&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Config get group.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
The command takes in the &amp;lt;tt&amp;gt;group&amp;lt;/tt&amp;gt; option and given the value of &amp;lt;tt&amp;gt;mail&amp;lt;/tt&amp;gt;. CLI Update currently supports group values: mail, db and session.&lt;br /&gt;
&lt;br /&gt;
====Site down and Site up commands====&lt;br /&gt;
As their name suggests, these commands allow you to quickly put your Joomla powered website into offline or online mode. Here is how to use the commands:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php site:up&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Site up.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php site:down&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Site down.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
The second command puts the website in offline mode while the first command brings the website to online mode.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Contributing to CLI Update as a developer==&lt;br /&gt;
&lt;br /&gt;
===Adding more commands===&lt;br /&gt;
The CLI Update ships with some commands which are added based on the need seen as of the time. However, the CLI Update allows other commands to be added easily and this is what this section is for. A video tutorial is included below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;video-container&amp;quot;&amp;gt;&lt;br /&gt;
{{#widget:YouTube|id=gcJJtTcPiTg}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Calling other commands within command classes===&lt;br /&gt;
Should in case a command you want to write for the CLI Update is going to be require that you call an existing command internally, this is how that can be achieved from within another command class:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
class RunHelloCommand extends AbstractCommand {&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
    public function execute(): int {&lt;br /&gt;
        $command = $this-&amp;gt;getApplication()-&amp;gt;getCommand(&#039;say:hello&#039;);&lt;br /&gt;
        $code = $command-&amp;gt;execute();&lt;br /&gt;
&lt;br /&gt;
        if($code === 0) {&lt;br /&gt;
            // command ran successfully, do something&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    ...&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here, we&#039;re attempting to call the &amp;lt;tt&amp;gt;say:hello&amp;lt;/tt&amp;gt; command created in the Video above.&lt;br /&gt;
&lt;br /&gt;
===Some important things to checkout===&lt;br /&gt;
*Symfony Style Documentation: [https://symfony.com/doc/current/console/style.html How to Style a Console Command]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Google Summer of Code 2018]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Joomla!_4.x]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Translations:J4.x:CLI_Update/26/fr&amp;diff=636620</id>
		<title>Translations:J4.x:CLI Update/26/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Translations:J4.x:CLI_Update/26/fr&amp;diff=636620"/>
		<updated>2019-10-19T11:54:40Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: Created page with &amp;quot;&amp;quot;Installation à partir de l&amp;#039;URL&amp;quot; : Pour installer une extension à partir de l&amp;#039;URL, nous exécuterons la commande comme ceci et fournirons un argument et une option pour la c...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;quot;Installation à partir de l&#039;URL&amp;quot; : Pour installer une extension à partir de l&#039;URL, nous exécuterons la commande comme ceci et fournirons un argument et une option pour la commande &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt;commande.{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:install url --url=https://github.com/joomla-extensions/patchtester/releases/download/3.0.0-beta3/com_patchtester.zip&amp;lt;/tt&amp;gt;{{-}}This will download the extension &amp;lt;tt&amp;gt;com_patchtester&amp;lt;/tt&amp;gt;.&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Update/fr&amp;diff=636613</id>
		<title>J4.x:CLI Update/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Update/fr&amp;diff=636613"/>
		<updated>2019-10-19T11:52:18Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: Created page with &amp;quot;Joomla fournit l&amp;#039;installation d&amp;#039;une extension par le biais d&amp;#039;une URL vers le fichier zip ou un chemin d&amp;#039;accès au fichier, le CLI Update propose les deux possibilités et la m...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{Top portal heading|color=white-bkgd|text-color=#333|title=&lt;br /&gt;
GSoC 2018 &amp;lt;br /&amp;gt;&lt;br /&gt;
Documentation&amp;lt;br /&amp;gt;sur les lignes de commande}}&lt;br /&gt;
[[Image:Gsoc2016.png|75px|center|link=GSOC 2018]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;{{Joomla version|version=4.x}}&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Pour effectuer une tâche mineure dans Joomla!, le tableau de bord de l&#039;administrateur peut sembler fastidieux et lent. La mise à jour de l&#039;application CLI introduit un moyen plus rapide d&#039;effectuer certaines de ces opérations via la ligne de commande. Cela offre un moyen d&#039;intégrer les choses plus rapidement dans l&#039;application Joomla!. Grâce à ce logiciel, les petits tests peuvent être effectués plus rapidement sans passer par le processus du tableau de bord Web. C’est une application CLI pour Joomla! CMS qui permet à l&#039;utilisateur d&#039;effectuer des mises à jour dans le CMS.&lt;br /&gt;
&lt;br /&gt;
Cette documentation montre comment utiliser la mise à jour de l&#039;application CLI et comment étendre ses fonctionnalités en tant que développeur.&lt;br /&gt;
&lt;br /&gt;
===Pré-requis===&lt;br /&gt;
Comme c&#039;est le cas pour toutes les applications CLI (Command Line Interface), l&#039;accès à votre installation Joomla! via la ligne de commande est nécessaire pour utiliser les outils fournis par le CLI Update.&lt;br /&gt;
Vous devriez peut-être envisager d&#039;avoir un accès SSH pour votre serveur en direct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Termes et définitions===&lt;br /&gt;
*CLI - Command Line Interface&lt;br /&gt;
*SSH - Secure SHell&lt;br /&gt;
&lt;br /&gt;
==Utilisation du CLI Update==&lt;br /&gt;
In other for you to use the tools provided by CLI Update, as said in former section, you need access to a CLI into the root of the Joomla Installation. In other words you have to be in the root folder of your Joomla CMS as all commands will run from the root folder.&lt;br /&gt;
[[File:All commands.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
==Utilisation des commandes générales==&lt;br /&gt;
Dans cette section, nous parlerons de l&#039;utilisation des commandes, nous parlerons des différentes commandes, de ce qu&#039;elles sont et comment vous pouvez les utiliser. Nous irons voir les commandes disponibles dans le CLI Update.&lt;br /&gt;
&lt;br /&gt;
===Commandes disponibles===&lt;br /&gt;
Il y a un certain nombre de commandes disponibles dans le CLI Update qui sont prêtes à l&#039;emploi. Ces commandes sont regroupées en fonction de la zone du CMS Joomla! qu&#039;elles touchent.&lt;br /&gt;
&lt;br /&gt;
====Vérification des mises à jour mises à jour====&lt;br /&gt;
Le CLI Update fournit une commande pour vérifier les mises à jour de Joomla!, elle fonctionne comme la version web de &amp;lt;tt&amp;gt;com_joomlaupdate&amp;lt;/tt&amp;gt;, elle récupère la mise à jour et indique si la mise à jour est disponible ou pas. Pour lancer la vérification de mise à jour, nous allons simplement lancer la commande comme ceci à partir du répertoire racine :&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php check-updates&amp;lt;/tt&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
La commande s&#039;exécute et la sortie affiche une version de mise à jour disponible, si disponible, ou indique que l&#039;installation actuelle est à jour.&lt;br /&gt;
[[File:Check updates.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Commandes des composants==== &lt;br /&gt;
Le groupe suivant de commandes sont les commandes basées sur l&#039;extension, simplement dit, les commandes nous permettent de gérer les extensions dans le noyau Jommla!, le CLI Update est livré avec des commandes pour installer, lister et supprimer les extensions.&lt;br /&gt;
&lt;br /&gt;
======Liste des extensions installées======&lt;br /&gt;
Cette commande nous permet de lister toutes les extensions installées. Cette commande peut s&#039;exécuter de deux manières différentes qui sont :&lt;br /&gt;
*&amp;quot;Liste générale&amp;quot; : Liste toutes les extensions installées, par extension cela signifie que les composants, langages, plugins et modules seront listés ensemble lorsque vous lancez cette commande. C&#039;est ainsi que vous appelez la commande :{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:list&amp;lt;/tt/&amp;gt; {{-}}[[File:Extension list.png|center|800px]]&lt;br /&gt;
*&amp;quot;Listing par types&amp;quot; : La liste générale des extensions peut être fastidieuse si vous recherchez une extension particulière parmi la grande liste, cependant, vous pouvez réduire le nombre en spécifiant le type d&#039;extensions que vous pouvez afficher la commande en ajoutant une option de type à cette commande. Voici comment cela se fait : {{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:list --type=language&amp;lt;/tt&amp;gt;{{-}}[[File:Extension list type.png|center|800px]]&lt;br /&gt;
Ceci listera seulement les extensions basées sur la langue, vous pouvez spécifier le type comme module, plugin et composant.&lt;br /&gt;
&lt;br /&gt;
======Installation d&#039;une extension======&lt;br /&gt;
Joomla fournit l&#039;installation d&#039;une extension par le biais d&#039;une URL vers le fichier zip ou un chemin d&#039;accès au fichier, le CLI Update propose les deux possibilités et la manière de les utiliser est décrite ci-dessous.&lt;br /&gt;
*&#039;&#039;Installing from URL&#039;&#039;: To install an extension from URL we will run the command like this and provide an argument and option for the &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command.{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:install url --url=https://github.com/joomla-extensions/patchtester/releases/download/3.0.0-beta3/com_patchtester.zip&amp;lt;/tt&amp;gt;{{-}}This will download the &amp;lt;tt&amp;gt;com_patchtester&amp;lt;/tt&amp;gt; extension.&lt;br /&gt;
{{-}}[[File:Extension install url.png|center|800px]]&lt;br /&gt;
*&#039;&#039;Installing from a PATH&#039;&#039;:To install an extension from a PATH we will run the same &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command and specify arguments for paths like this:{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:install path --path=/Users/bosunski/docs/com_pathtester.zip&amp;lt;/tt&amp;gt; {{-}}[[File:Extension install path.png|center|800px]]&lt;br /&gt;
This loads the extension and performs the installation as expected.&lt;br /&gt;
&lt;br /&gt;
======Removing an extension======&lt;br /&gt;
The last command under this category is the &amp;lt;tt&amp;gt;extension:remove&amp;lt;/tt&amp;gt; command that is used to remove extensions from the Joomla CMS. This command takes in the &amp;lt;tt&amp;gt;extension_id&amp;lt;/tt&amp;gt; as an argument, you can always use the &amp;lt;tt&amp;gt;extension:list&amp;lt;/tt&amp;gt; to display extension id. This is how we remove an extension of id &amp;lt;tt&amp;gt;803&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php extension:remove 803&amp;lt;/tt&amp;gt;&lt;br /&gt;
[[File:Extension Remove.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Updating the Joomla Core====&lt;br /&gt;
As much as the CLI Update provides a command to check update, it also provides a command to perform the update if an update is available. To perform update we will just run this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php core:update&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
This command updates the Joomla core updating it to the latest version available.&lt;br /&gt;
&lt;br /&gt;
[[File:Core update.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Installing Joomla! via the CLI====&lt;br /&gt;
The next command here is the &amp;lt;tt&amp;gt;core:install&amp;lt;/tt&amp;gt; command that lets installation of Joomla CMS to be done via the CLI. This command can  work in 2 modes: The Interactive mode and the Non-interactive mode.&lt;br /&gt;
&lt;br /&gt;
=====Interactive installation=====&lt;br /&gt;
To have a fresh installation of Joomla using the interactive mode we will just run the &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command like so:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php extension:install&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The default installation mode will run and will ask you to input the settings as it&#039;s required, once all options have been provided and validated, the installations will run and Joomla will be installed.&lt;br /&gt;
&lt;br /&gt;
[[File:Core install interactive.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Non-interactive Installation=====&lt;br /&gt;
The next type of installation is the Non-interactive mode. In this mode you will not be asked to input the options but rather all options will be specified within a file and the command will take in an option that specifies the path to the file you want to load the options from, it&#039;s done like this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php core:install --file=/path/to/config.json&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Core install file.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
An example of the contents of &amp;lt;tt&amp;gt;config.json&amp;lt;/tt&amp;gt; can be:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;language&amp;quot;:&amp;quot;en-GB&amp;quot;,&lt;br /&gt;
  &amp;quot;site_name&amp;quot;:&amp;quot;Joomla&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_email&amp;quot;:&amp;quot;email@example.com&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_user&amp;quot;:&amp;quot;user&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_password&amp;quot;:&amp;quot;password&amp;quot;,&lt;br /&gt;
  &amp;quot;db_type&amp;quot;:&amp;quot;mysql&amp;quot;,&lt;br /&gt;
  &amp;quot;db_host&amp;quot;:&amp;quot;localhost&amp;quot;,&lt;br /&gt;
  &amp;quot;db_user&amp;quot;:&amp;quot;root&amp;quot;,&lt;br /&gt;
  &amp;quot;db_pass&amp;quot;:&amp;quot;xcdxcx&amp;quot;,&lt;br /&gt;
  &amp;quot;db_name&amp;quot;:&amp;quot;jtest&amp;quot;,&lt;br /&gt;
  &amp;quot;db_prefix&amp;quot;:&amp;quot;efs0k_&amp;quot;,&lt;br /&gt;
  &amp;quot;db_old&amp;quot;:&amp;quot;remove&amp;quot;,&lt;br /&gt;
  &amp;quot;helpurl&amp;quot;:&amp;quot;https://joomla.org&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
OR as sample &amp;lt;tt&amp;gt;config.ini&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
site_name=&amp;quot;gsoc&amp;quot;&lt;br /&gt;
admin_email=&amp;quot;user@example.com&amp;quot;&lt;br /&gt;
admin_user=&amp;quot;user&amp;quot;&lt;br /&gt;
admin_password=&amp;quot;secret&amp;quot;&lt;br /&gt;
db_type=&amp;quot;mysql&amp;quot;&lt;br /&gt;
db_host=&amp;quot;localhost&amp;quot;&lt;br /&gt;
db_user=&amp;quot;root&amp;quot;&lt;br /&gt;
db_pass=&amp;quot;&amp;quot;&lt;br /&gt;
db_name=&amp;quot;joomla&amp;quot;&lt;br /&gt;
db_prefix=&amp;quot;prefix_&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The options defined are loaded and validated after which the installation will run.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Configuration based commands====&lt;br /&gt;
The next set of commands we will be looking at is for setting and viewing configuration options inside the Joomla installation:&lt;br /&gt;
&lt;br /&gt;
=====Setting configurations=====&lt;br /&gt;
The CLI Update provides a command to change the value of an option existing in the configuration. Using the &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command you can set any configuration option that exists inside the &amp;lt;tt&amp;gt;configuration.php&amp;lt;/tt&amp;gt;. This is how to use command:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:set mailer=mail&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Config set single.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
You can even add multiple option-value pairs like this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:set mailer=mail fromname=Joomla! sitename=&amp;quot;Joomla Site&amp;quot;&amp;lt;/tt&amp;gt;&lt;br /&gt;
This will set multiple options at once.&lt;br /&gt;
&lt;br /&gt;
[[File:Config set multiple.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Getting configurations=====&lt;br /&gt;
The next command in this category is the &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command, as the name suggests it gets the value of an option that exists inside the &amp;lt;tt&amp;gt;configuration.php&amp;lt;/tt&amp;gt;, when no argument is supplied to the command, it will display all the options available in a tabulated form. Here is the command:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get sitename&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return the value for the option &amp;lt;tt&amp;gt;sitename&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:011-cli.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return all the values for the available options.&lt;br /&gt;
&lt;br /&gt;
[[File:Config get all.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Getting grouped configurations=====&lt;br /&gt;
The CLI Update adds an option to &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command that allows us to get logically grouped options, say for example you want to view all your database related options, or you want to view all email related options. To achieve this the CLI Update provides an option to specify a group of options to display, here is how to do that: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get --group=mail&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Config get group.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
The command takes in the &amp;lt;tt&amp;gt;group&amp;lt;/tt&amp;gt; option and given the value of &amp;lt;tt&amp;gt;mail&amp;lt;/tt&amp;gt;. CLI Update currently supports group values: mail, db and session.&lt;br /&gt;
&lt;br /&gt;
====Site down and Site up commands====&lt;br /&gt;
As their name suggests, these commands allow you to quickly put your Joomla powered website into offline or online mode. Here is how to use the commands:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php site:up&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Site up.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php site:down&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Site down.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
The second command puts the website in offline mode while the first command brings the website to online mode.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Contributing to CLI Update as a developer==&lt;br /&gt;
&lt;br /&gt;
===Adding more commands===&lt;br /&gt;
The CLI Update ships with some commands which are added based on the need seen as of the time. However, the CLI Update allows other commands to be added easily and this is what this section is for. A video tutorial is included below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;video-container&amp;quot;&amp;gt;&lt;br /&gt;
{{#widget:YouTube|id=gcJJtTcPiTg}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Calling other commands within command classes===&lt;br /&gt;
Should in case a command you want to write for the CLI Update is going to be require that you call an existing command internally, this is how that can be achieved from within another command class:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
class RunHelloCommand extends AbstractCommand {&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
    public function execute(): int {&lt;br /&gt;
        $command = $this-&amp;gt;getApplication()-&amp;gt;getCommand(&#039;say:hello&#039;);&lt;br /&gt;
        $code = $command-&amp;gt;execute();&lt;br /&gt;
&lt;br /&gt;
        if($code === 0) {&lt;br /&gt;
            // command ran successfully, do something&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    ...&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here, we&#039;re attempting to call the &amp;lt;tt&amp;gt;say:hello&amp;lt;/tt&amp;gt; command created in the Video above.&lt;br /&gt;
&lt;br /&gt;
===Some important things to checkout===&lt;br /&gt;
*Symfony Style Documentation: [https://symfony.com/doc/current/console/style.html How to Style a Console Command]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Google Summer of Code 2018]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Joomla!_4.x]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Translations:J4.x:CLI_Update/25/fr&amp;diff=636612</id>
		<title>Translations:J4.x:CLI Update/25/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Translations:J4.x:CLI_Update/25/fr&amp;diff=636612"/>
		<updated>2019-10-19T11:52:18Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: Created page with &amp;quot;Joomla fournit l&amp;#039;installation d&amp;#039;une extension par le biais d&amp;#039;une URL vers le fichier zip ou un chemin d&amp;#039;accès au fichier, le CLI Update propose les deux possibilités et la m...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Joomla fournit l&#039;installation d&#039;une extension par le biais d&#039;une URL vers le fichier zip ou un chemin d&#039;accès au fichier, le CLI Update propose les deux possibilités et la manière de les utiliser est décrite ci-dessous.&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Update/fr&amp;diff=636605</id>
		<title>J4.x:CLI Update/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Update/fr&amp;diff=636605"/>
		<updated>2019-10-19T11:49:38Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: Created page with &amp;quot;======Installation d&amp;#039;une extension======&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{Top portal heading|color=white-bkgd|text-color=#333|title=&lt;br /&gt;
GSoC 2018 &amp;lt;br /&amp;gt;&lt;br /&gt;
Documentation&amp;lt;br /&amp;gt;sur les lignes de commande}}&lt;br /&gt;
[[Image:Gsoc2016.png|75px|center|link=GSOC 2018]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;{{Joomla version|version=4.x}}&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Pour effectuer une tâche mineure dans Joomla!, le tableau de bord de l&#039;administrateur peut sembler fastidieux et lent. La mise à jour de l&#039;application CLI introduit un moyen plus rapide d&#039;effectuer certaines de ces opérations via la ligne de commande. Cela offre un moyen d&#039;intégrer les choses plus rapidement dans l&#039;application Joomla!. Grâce à ce logiciel, les petits tests peuvent être effectués plus rapidement sans passer par le processus du tableau de bord Web. C’est une application CLI pour Joomla! CMS qui permet à l&#039;utilisateur d&#039;effectuer des mises à jour dans le CMS.&lt;br /&gt;
&lt;br /&gt;
Cette documentation montre comment utiliser la mise à jour de l&#039;application CLI et comment étendre ses fonctionnalités en tant que développeur.&lt;br /&gt;
&lt;br /&gt;
===Pré-requis===&lt;br /&gt;
Comme c&#039;est le cas pour toutes les applications CLI (Command Line Interface), l&#039;accès à votre installation Joomla! via la ligne de commande est nécessaire pour utiliser les outils fournis par le CLI Update.&lt;br /&gt;
Vous devriez peut-être envisager d&#039;avoir un accès SSH pour votre serveur en direct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Termes et définitions===&lt;br /&gt;
*CLI - Command Line Interface&lt;br /&gt;
*SSH - Secure SHell&lt;br /&gt;
&lt;br /&gt;
==Utilisation du CLI Update==&lt;br /&gt;
In other for you to use the tools provided by CLI Update, as said in former section, you need access to a CLI into the root of the Joomla Installation. In other words you have to be in the root folder of your Joomla CMS as all commands will run from the root folder.&lt;br /&gt;
[[File:All commands.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
==Utilisation des commandes générales==&lt;br /&gt;
Dans cette section, nous parlerons de l&#039;utilisation des commandes, nous parlerons des différentes commandes, de ce qu&#039;elles sont et comment vous pouvez les utiliser. Nous irons voir les commandes disponibles dans le CLI Update.&lt;br /&gt;
&lt;br /&gt;
===Commandes disponibles===&lt;br /&gt;
Il y a un certain nombre de commandes disponibles dans le CLI Update qui sont prêtes à l&#039;emploi. Ces commandes sont regroupées en fonction de la zone du CMS Joomla! qu&#039;elles touchent.&lt;br /&gt;
&lt;br /&gt;
====Vérification des mises à jour mises à jour====&lt;br /&gt;
Le CLI Update fournit une commande pour vérifier les mises à jour de Joomla!, elle fonctionne comme la version web de &amp;lt;tt&amp;gt;com_joomlaupdate&amp;lt;/tt&amp;gt;, elle récupère la mise à jour et indique si la mise à jour est disponible ou pas. Pour lancer la vérification de mise à jour, nous allons simplement lancer la commande comme ceci à partir du répertoire racine :&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php check-updates&amp;lt;/tt&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
La commande s&#039;exécute et la sortie affiche une version de mise à jour disponible, si disponible, ou indique que l&#039;installation actuelle est à jour.&lt;br /&gt;
[[File:Check updates.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Commandes des composants==== &lt;br /&gt;
Le groupe suivant de commandes sont les commandes basées sur l&#039;extension, simplement dit, les commandes nous permettent de gérer les extensions dans le noyau Jommla!, le CLI Update est livré avec des commandes pour installer, lister et supprimer les extensions.&lt;br /&gt;
&lt;br /&gt;
======Liste des extensions installées======&lt;br /&gt;
Cette commande nous permet de lister toutes les extensions installées. Cette commande peut s&#039;exécuter de deux manières différentes qui sont :&lt;br /&gt;
*&amp;quot;Liste générale&amp;quot; : Liste toutes les extensions installées, par extension cela signifie que les composants, langages, plugins et modules seront listés ensemble lorsque vous lancez cette commande. C&#039;est ainsi que vous appelez la commande :{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:list&amp;lt;/tt/&amp;gt; {{-}}[[File:Extension list.png|center|800px]]&lt;br /&gt;
*&amp;quot;Listing par types&amp;quot; : La liste générale des extensions peut être fastidieuse si vous recherchez une extension particulière parmi la grande liste, cependant, vous pouvez réduire le nombre en spécifiant le type d&#039;extensions que vous pouvez afficher la commande en ajoutant une option de type à cette commande. Voici comment cela se fait : {{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:list --type=language&amp;lt;/tt&amp;gt;{{-}}[[File:Extension list type.png|center|800px]]&lt;br /&gt;
Ceci listera seulement les extensions basées sur la langue, vous pouvez spécifier le type comme module, plugin et composant.&lt;br /&gt;
&lt;br /&gt;
======Installation d&#039;une extension======&lt;br /&gt;
Joomla provides installing an extension through an URL to the zip file or a path to the file, the CLI Update provides both as well and how you can use them is described below.&lt;br /&gt;
*&#039;&#039;Installing from URL&#039;&#039;: To install an extension from URL we will run the command like this and provide an argument and option for the &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command.{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:install url --url=https://github.com/joomla-extensions/patchtester/releases/download/3.0.0-beta3/com_patchtester.zip&amp;lt;/tt&amp;gt;{{-}}This will download the &amp;lt;tt&amp;gt;com_patchtester&amp;lt;/tt&amp;gt; extension.&lt;br /&gt;
{{-}}[[File:Extension install url.png|center|800px]]&lt;br /&gt;
*&#039;&#039;Installing from a PATH&#039;&#039;:To install an extension from a PATH we will run the same &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command and specify arguments for paths like this:{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:install path --path=/Users/bosunski/docs/com_pathtester.zip&amp;lt;/tt&amp;gt; {{-}}[[File:Extension install path.png|center|800px]]&lt;br /&gt;
This loads the extension and performs the installation as expected.&lt;br /&gt;
&lt;br /&gt;
======Removing an extension======&lt;br /&gt;
The last command under this category is the &amp;lt;tt&amp;gt;extension:remove&amp;lt;/tt&amp;gt; command that is used to remove extensions from the Joomla CMS. This command takes in the &amp;lt;tt&amp;gt;extension_id&amp;lt;/tt&amp;gt; as an argument, you can always use the &amp;lt;tt&amp;gt;extension:list&amp;lt;/tt&amp;gt; to display extension id. This is how we remove an extension of id &amp;lt;tt&amp;gt;803&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php extension:remove 803&amp;lt;/tt&amp;gt;&lt;br /&gt;
[[File:Extension Remove.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Updating the Joomla Core====&lt;br /&gt;
As much as the CLI Update provides a command to check update, it also provides a command to perform the update if an update is available. To perform update we will just run this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php core:update&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
This command updates the Joomla core updating it to the latest version available.&lt;br /&gt;
&lt;br /&gt;
[[File:Core update.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Installing Joomla! via the CLI====&lt;br /&gt;
The next command here is the &amp;lt;tt&amp;gt;core:install&amp;lt;/tt&amp;gt; command that lets installation of Joomla CMS to be done via the CLI. This command can  work in 2 modes: The Interactive mode and the Non-interactive mode.&lt;br /&gt;
&lt;br /&gt;
=====Interactive installation=====&lt;br /&gt;
To have a fresh installation of Joomla using the interactive mode we will just run the &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command like so:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php extension:install&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The default installation mode will run and will ask you to input the settings as it&#039;s required, once all options have been provided and validated, the installations will run and Joomla will be installed.&lt;br /&gt;
&lt;br /&gt;
[[File:Core install interactive.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Non-interactive Installation=====&lt;br /&gt;
The next type of installation is the Non-interactive mode. In this mode you will not be asked to input the options but rather all options will be specified within a file and the command will take in an option that specifies the path to the file you want to load the options from, it&#039;s done like this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php core:install --file=/path/to/config.json&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Core install file.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
An example of the contents of &amp;lt;tt&amp;gt;config.json&amp;lt;/tt&amp;gt; can be:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;language&amp;quot;:&amp;quot;en-GB&amp;quot;,&lt;br /&gt;
  &amp;quot;site_name&amp;quot;:&amp;quot;Joomla&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_email&amp;quot;:&amp;quot;email@example.com&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_user&amp;quot;:&amp;quot;user&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_password&amp;quot;:&amp;quot;password&amp;quot;,&lt;br /&gt;
  &amp;quot;db_type&amp;quot;:&amp;quot;mysql&amp;quot;,&lt;br /&gt;
  &amp;quot;db_host&amp;quot;:&amp;quot;localhost&amp;quot;,&lt;br /&gt;
  &amp;quot;db_user&amp;quot;:&amp;quot;root&amp;quot;,&lt;br /&gt;
  &amp;quot;db_pass&amp;quot;:&amp;quot;xcdxcx&amp;quot;,&lt;br /&gt;
  &amp;quot;db_name&amp;quot;:&amp;quot;jtest&amp;quot;,&lt;br /&gt;
  &amp;quot;db_prefix&amp;quot;:&amp;quot;efs0k_&amp;quot;,&lt;br /&gt;
  &amp;quot;db_old&amp;quot;:&amp;quot;remove&amp;quot;,&lt;br /&gt;
  &amp;quot;helpurl&amp;quot;:&amp;quot;https://joomla.org&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
OR as sample &amp;lt;tt&amp;gt;config.ini&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
site_name=&amp;quot;gsoc&amp;quot;&lt;br /&gt;
admin_email=&amp;quot;user@example.com&amp;quot;&lt;br /&gt;
admin_user=&amp;quot;user&amp;quot;&lt;br /&gt;
admin_password=&amp;quot;secret&amp;quot;&lt;br /&gt;
db_type=&amp;quot;mysql&amp;quot;&lt;br /&gt;
db_host=&amp;quot;localhost&amp;quot;&lt;br /&gt;
db_user=&amp;quot;root&amp;quot;&lt;br /&gt;
db_pass=&amp;quot;&amp;quot;&lt;br /&gt;
db_name=&amp;quot;joomla&amp;quot;&lt;br /&gt;
db_prefix=&amp;quot;prefix_&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The options defined are loaded and validated after which the installation will run.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Configuration based commands====&lt;br /&gt;
The next set of commands we will be looking at is for setting and viewing configuration options inside the Joomla installation:&lt;br /&gt;
&lt;br /&gt;
=====Setting configurations=====&lt;br /&gt;
The CLI Update provides a command to change the value of an option existing in the configuration. Using the &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command you can set any configuration option that exists inside the &amp;lt;tt&amp;gt;configuration.php&amp;lt;/tt&amp;gt;. This is how to use command:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:set mailer=mail&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Config set single.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
You can even add multiple option-value pairs like this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:set mailer=mail fromname=Joomla! sitename=&amp;quot;Joomla Site&amp;quot;&amp;lt;/tt&amp;gt;&lt;br /&gt;
This will set multiple options at once.&lt;br /&gt;
&lt;br /&gt;
[[File:Config set multiple.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Getting configurations=====&lt;br /&gt;
The next command in this category is the &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command, as the name suggests it gets the value of an option that exists inside the &amp;lt;tt&amp;gt;configuration.php&amp;lt;/tt&amp;gt;, when no argument is supplied to the command, it will display all the options available in a tabulated form. Here is the command:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get sitename&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return the value for the option &amp;lt;tt&amp;gt;sitename&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:011-cli.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return all the values for the available options.&lt;br /&gt;
&lt;br /&gt;
[[File:Config get all.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Getting grouped configurations=====&lt;br /&gt;
The CLI Update adds an option to &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command that allows us to get logically grouped options, say for example you want to view all your database related options, or you want to view all email related options. To achieve this the CLI Update provides an option to specify a group of options to display, here is how to do that: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get --group=mail&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Config get group.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
The command takes in the &amp;lt;tt&amp;gt;group&amp;lt;/tt&amp;gt; option and given the value of &amp;lt;tt&amp;gt;mail&amp;lt;/tt&amp;gt;. CLI Update currently supports group values: mail, db and session.&lt;br /&gt;
&lt;br /&gt;
====Site down and Site up commands====&lt;br /&gt;
As their name suggests, these commands allow you to quickly put your Joomla powered website into offline or online mode. Here is how to use the commands:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php site:up&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Site up.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php site:down&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Site down.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
The second command puts the website in offline mode while the first command brings the website to online mode.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Contributing to CLI Update as a developer==&lt;br /&gt;
&lt;br /&gt;
===Adding more commands===&lt;br /&gt;
The CLI Update ships with some commands which are added based on the need seen as of the time. However, the CLI Update allows other commands to be added easily and this is what this section is for. A video tutorial is included below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;video-container&amp;quot;&amp;gt;&lt;br /&gt;
{{#widget:YouTube|id=gcJJtTcPiTg}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Calling other commands within command classes===&lt;br /&gt;
Should in case a command you want to write for the CLI Update is going to be require that you call an existing command internally, this is how that can be achieved from within another command class:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
class RunHelloCommand extends AbstractCommand {&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
    public function execute(): int {&lt;br /&gt;
        $command = $this-&amp;gt;getApplication()-&amp;gt;getCommand(&#039;say:hello&#039;);&lt;br /&gt;
        $code = $command-&amp;gt;execute();&lt;br /&gt;
&lt;br /&gt;
        if($code === 0) {&lt;br /&gt;
            // command ran successfully, do something&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    ...&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here, we&#039;re attempting to call the &amp;lt;tt&amp;gt;say:hello&amp;lt;/tt&amp;gt; command created in the Video above.&lt;br /&gt;
&lt;br /&gt;
===Some important things to checkout===&lt;br /&gt;
*Symfony Style Documentation: [https://symfony.com/doc/current/console/style.html How to Style a Console Command]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Google Summer of Code 2018]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Joomla!_4.x]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Translations:J4.x:CLI_Update/24/fr&amp;diff=636604</id>
		<title>Translations:J4.x:CLI Update/24/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Translations:J4.x:CLI_Update/24/fr&amp;diff=636604"/>
		<updated>2019-10-19T11:49:38Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: Created page with &amp;quot;======Installation d&amp;#039;une extension======&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;======Installation d&#039;une extension======&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Update/fr&amp;diff=636603</id>
		<title>J4.x:CLI Update/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Update/fr&amp;diff=636603"/>
		<updated>2019-10-19T11:49:17Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: Created page with &amp;quot;Ceci listera seulement les extensions basées sur la langue, vous pouvez spécifier le type comme module, plugin et composant.&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{Top portal heading|color=white-bkgd|text-color=#333|title=&lt;br /&gt;
GSoC 2018 &amp;lt;br /&amp;gt;&lt;br /&gt;
Documentation&amp;lt;br /&amp;gt;sur les lignes de commande}}&lt;br /&gt;
[[Image:Gsoc2016.png|75px|center|link=GSOC 2018]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;{{Joomla version|version=4.x}}&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Pour effectuer une tâche mineure dans Joomla!, le tableau de bord de l&#039;administrateur peut sembler fastidieux et lent. La mise à jour de l&#039;application CLI introduit un moyen plus rapide d&#039;effectuer certaines de ces opérations via la ligne de commande. Cela offre un moyen d&#039;intégrer les choses plus rapidement dans l&#039;application Joomla!. Grâce à ce logiciel, les petits tests peuvent être effectués plus rapidement sans passer par le processus du tableau de bord Web. C’est une application CLI pour Joomla! CMS qui permet à l&#039;utilisateur d&#039;effectuer des mises à jour dans le CMS.&lt;br /&gt;
&lt;br /&gt;
Cette documentation montre comment utiliser la mise à jour de l&#039;application CLI et comment étendre ses fonctionnalités en tant que développeur.&lt;br /&gt;
&lt;br /&gt;
===Pré-requis===&lt;br /&gt;
Comme c&#039;est le cas pour toutes les applications CLI (Command Line Interface), l&#039;accès à votre installation Joomla! via la ligne de commande est nécessaire pour utiliser les outils fournis par le CLI Update.&lt;br /&gt;
Vous devriez peut-être envisager d&#039;avoir un accès SSH pour votre serveur en direct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Termes et définitions===&lt;br /&gt;
*CLI - Command Line Interface&lt;br /&gt;
*SSH - Secure SHell&lt;br /&gt;
&lt;br /&gt;
==Utilisation du CLI Update==&lt;br /&gt;
In other for you to use the tools provided by CLI Update, as said in former section, you need access to a CLI into the root of the Joomla Installation. In other words you have to be in the root folder of your Joomla CMS as all commands will run from the root folder.&lt;br /&gt;
[[File:All commands.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
==Utilisation des commandes générales==&lt;br /&gt;
Dans cette section, nous parlerons de l&#039;utilisation des commandes, nous parlerons des différentes commandes, de ce qu&#039;elles sont et comment vous pouvez les utiliser. Nous irons voir les commandes disponibles dans le CLI Update.&lt;br /&gt;
&lt;br /&gt;
===Commandes disponibles===&lt;br /&gt;
Il y a un certain nombre de commandes disponibles dans le CLI Update qui sont prêtes à l&#039;emploi. Ces commandes sont regroupées en fonction de la zone du CMS Joomla! qu&#039;elles touchent.&lt;br /&gt;
&lt;br /&gt;
====Vérification des mises à jour mises à jour====&lt;br /&gt;
Le CLI Update fournit une commande pour vérifier les mises à jour de Joomla!, elle fonctionne comme la version web de &amp;lt;tt&amp;gt;com_joomlaupdate&amp;lt;/tt&amp;gt;, elle récupère la mise à jour et indique si la mise à jour est disponible ou pas. Pour lancer la vérification de mise à jour, nous allons simplement lancer la commande comme ceci à partir du répertoire racine :&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php check-updates&amp;lt;/tt&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
La commande s&#039;exécute et la sortie affiche une version de mise à jour disponible, si disponible, ou indique que l&#039;installation actuelle est à jour.&lt;br /&gt;
[[File:Check updates.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Commandes des composants==== &lt;br /&gt;
Le groupe suivant de commandes sont les commandes basées sur l&#039;extension, simplement dit, les commandes nous permettent de gérer les extensions dans le noyau Jommla!, le CLI Update est livré avec des commandes pour installer, lister et supprimer les extensions.&lt;br /&gt;
&lt;br /&gt;
======Liste des extensions installées======&lt;br /&gt;
Cette commande nous permet de lister toutes les extensions installées. Cette commande peut s&#039;exécuter de deux manières différentes qui sont :&lt;br /&gt;
*&amp;quot;Liste générale&amp;quot; : Liste toutes les extensions installées, par extension cela signifie que les composants, langages, plugins et modules seront listés ensemble lorsque vous lancez cette commande. C&#039;est ainsi que vous appelez la commande :{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:list&amp;lt;/tt/&amp;gt; {{-}}[[File:Extension list.png|center|800px]]&lt;br /&gt;
*&amp;quot;Listing par types&amp;quot; : La liste générale des extensions peut être fastidieuse si vous recherchez une extension particulière parmi la grande liste, cependant, vous pouvez réduire le nombre en spécifiant le type d&#039;extensions que vous pouvez afficher la commande en ajoutant une option de type à cette commande. Voici comment cela se fait : {{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:list --type=language&amp;lt;/tt&amp;gt;{{-}}[[File:Extension list type.png|center|800px]]&lt;br /&gt;
Ceci listera seulement les extensions basées sur la langue, vous pouvez spécifier le type comme module, plugin et composant.&lt;br /&gt;
&lt;br /&gt;
======Installing an Extension======&lt;br /&gt;
Joomla provides installing an extension through an URL to the zip file or a path to the file, the CLI Update provides both as well and how you can use them is described below.&lt;br /&gt;
*&#039;&#039;Installing from URL&#039;&#039;: To install an extension from URL we will run the command like this and provide an argument and option for the &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command.{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:install url --url=https://github.com/joomla-extensions/patchtester/releases/download/3.0.0-beta3/com_patchtester.zip&amp;lt;/tt&amp;gt;{{-}}This will download the &amp;lt;tt&amp;gt;com_patchtester&amp;lt;/tt&amp;gt; extension.&lt;br /&gt;
{{-}}[[File:Extension install url.png|center|800px]]&lt;br /&gt;
*&#039;&#039;Installing from a PATH&#039;&#039;:To install an extension from a PATH we will run the same &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command and specify arguments for paths like this:{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:install path --path=/Users/bosunski/docs/com_pathtester.zip&amp;lt;/tt&amp;gt; {{-}}[[File:Extension install path.png|center|800px]]&lt;br /&gt;
This loads the extension and performs the installation as expected.&lt;br /&gt;
&lt;br /&gt;
======Removing an extension======&lt;br /&gt;
The last command under this category is the &amp;lt;tt&amp;gt;extension:remove&amp;lt;/tt&amp;gt; command that is used to remove extensions from the Joomla CMS. This command takes in the &amp;lt;tt&amp;gt;extension_id&amp;lt;/tt&amp;gt; as an argument, you can always use the &amp;lt;tt&amp;gt;extension:list&amp;lt;/tt&amp;gt; to display extension id. This is how we remove an extension of id &amp;lt;tt&amp;gt;803&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php extension:remove 803&amp;lt;/tt&amp;gt;&lt;br /&gt;
[[File:Extension Remove.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Updating the Joomla Core====&lt;br /&gt;
As much as the CLI Update provides a command to check update, it also provides a command to perform the update if an update is available. To perform update we will just run this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php core:update&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
This command updates the Joomla core updating it to the latest version available.&lt;br /&gt;
&lt;br /&gt;
[[File:Core update.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Installing Joomla! via the CLI====&lt;br /&gt;
The next command here is the &amp;lt;tt&amp;gt;core:install&amp;lt;/tt&amp;gt; command that lets installation of Joomla CMS to be done via the CLI. This command can  work in 2 modes: The Interactive mode and the Non-interactive mode.&lt;br /&gt;
&lt;br /&gt;
=====Interactive installation=====&lt;br /&gt;
To have a fresh installation of Joomla using the interactive mode we will just run the &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command like so:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php extension:install&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The default installation mode will run and will ask you to input the settings as it&#039;s required, once all options have been provided and validated, the installations will run and Joomla will be installed.&lt;br /&gt;
&lt;br /&gt;
[[File:Core install interactive.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Non-interactive Installation=====&lt;br /&gt;
The next type of installation is the Non-interactive mode. In this mode you will not be asked to input the options but rather all options will be specified within a file and the command will take in an option that specifies the path to the file you want to load the options from, it&#039;s done like this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php core:install --file=/path/to/config.json&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Core install file.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
An example of the contents of &amp;lt;tt&amp;gt;config.json&amp;lt;/tt&amp;gt; can be:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;language&amp;quot;:&amp;quot;en-GB&amp;quot;,&lt;br /&gt;
  &amp;quot;site_name&amp;quot;:&amp;quot;Joomla&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_email&amp;quot;:&amp;quot;email@example.com&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_user&amp;quot;:&amp;quot;user&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_password&amp;quot;:&amp;quot;password&amp;quot;,&lt;br /&gt;
  &amp;quot;db_type&amp;quot;:&amp;quot;mysql&amp;quot;,&lt;br /&gt;
  &amp;quot;db_host&amp;quot;:&amp;quot;localhost&amp;quot;,&lt;br /&gt;
  &amp;quot;db_user&amp;quot;:&amp;quot;root&amp;quot;,&lt;br /&gt;
  &amp;quot;db_pass&amp;quot;:&amp;quot;xcdxcx&amp;quot;,&lt;br /&gt;
  &amp;quot;db_name&amp;quot;:&amp;quot;jtest&amp;quot;,&lt;br /&gt;
  &amp;quot;db_prefix&amp;quot;:&amp;quot;efs0k_&amp;quot;,&lt;br /&gt;
  &amp;quot;db_old&amp;quot;:&amp;quot;remove&amp;quot;,&lt;br /&gt;
  &amp;quot;helpurl&amp;quot;:&amp;quot;https://joomla.org&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
OR as sample &amp;lt;tt&amp;gt;config.ini&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
site_name=&amp;quot;gsoc&amp;quot;&lt;br /&gt;
admin_email=&amp;quot;user@example.com&amp;quot;&lt;br /&gt;
admin_user=&amp;quot;user&amp;quot;&lt;br /&gt;
admin_password=&amp;quot;secret&amp;quot;&lt;br /&gt;
db_type=&amp;quot;mysql&amp;quot;&lt;br /&gt;
db_host=&amp;quot;localhost&amp;quot;&lt;br /&gt;
db_user=&amp;quot;root&amp;quot;&lt;br /&gt;
db_pass=&amp;quot;&amp;quot;&lt;br /&gt;
db_name=&amp;quot;joomla&amp;quot;&lt;br /&gt;
db_prefix=&amp;quot;prefix_&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The options defined are loaded and validated after which the installation will run.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Configuration based commands====&lt;br /&gt;
The next set of commands we will be looking at is for setting and viewing configuration options inside the Joomla installation:&lt;br /&gt;
&lt;br /&gt;
=====Setting configurations=====&lt;br /&gt;
The CLI Update provides a command to change the value of an option existing in the configuration. Using the &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command you can set any configuration option that exists inside the &amp;lt;tt&amp;gt;configuration.php&amp;lt;/tt&amp;gt;. This is how to use command:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:set mailer=mail&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Config set single.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
You can even add multiple option-value pairs like this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:set mailer=mail fromname=Joomla! sitename=&amp;quot;Joomla Site&amp;quot;&amp;lt;/tt&amp;gt;&lt;br /&gt;
This will set multiple options at once.&lt;br /&gt;
&lt;br /&gt;
[[File:Config set multiple.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Getting configurations=====&lt;br /&gt;
The next command in this category is the &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command, as the name suggests it gets the value of an option that exists inside the &amp;lt;tt&amp;gt;configuration.php&amp;lt;/tt&amp;gt;, when no argument is supplied to the command, it will display all the options available in a tabulated form. Here is the command:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get sitename&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return the value for the option &amp;lt;tt&amp;gt;sitename&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:011-cli.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return all the values for the available options.&lt;br /&gt;
&lt;br /&gt;
[[File:Config get all.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Getting grouped configurations=====&lt;br /&gt;
The CLI Update adds an option to &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command that allows us to get logically grouped options, say for example you want to view all your database related options, or you want to view all email related options. To achieve this the CLI Update provides an option to specify a group of options to display, here is how to do that: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get --group=mail&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Config get group.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
The command takes in the &amp;lt;tt&amp;gt;group&amp;lt;/tt&amp;gt; option and given the value of &amp;lt;tt&amp;gt;mail&amp;lt;/tt&amp;gt;. CLI Update currently supports group values: mail, db and session.&lt;br /&gt;
&lt;br /&gt;
====Site down and Site up commands====&lt;br /&gt;
As their name suggests, these commands allow you to quickly put your Joomla powered website into offline or online mode. Here is how to use the commands:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php site:up&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Site up.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php site:down&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Site down.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
The second command puts the website in offline mode while the first command brings the website to online mode.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Contributing to CLI Update as a developer==&lt;br /&gt;
&lt;br /&gt;
===Adding more commands===&lt;br /&gt;
The CLI Update ships with some commands which are added based on the need seen as of the time. However, the CLI Update allows other commands to be added easily and this is what this section is for. A video tutorial is included below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;video-container&amp;quot;&amp;gt;&lt;br /&gt;
{{#widget:YouTube|id=gcJJtTcPiTg}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Calling other commands within command classes===&lt;br /&gt;
Should in case a command you want to write for the CLI Update is going to be require that you call an existing command internally, this is how that can be achieved from within another command class:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
class RunHelloCommand extends AbstractCommand {&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
    public function execute(): int {&lt;br /&gt;
        $command = $this-&amp;gt;getApplication()-&amp;gt;getCommand(&#039;say:hello&#039;);&lt;br /&gt;
        $code = $command-&amp;gt;execute();&lt;br /&gt;
&lt;br /&gt;
        if($code === 0) {&lt;br /&gt;
            // command ran successfully, do something&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    ...&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here, we&#039;re attempting to call the &amp;lt;tt&amp;gt;say:hello&amp;lt;/tt&amp;gt; command created in the Video above.&lt;br /&gt;
&lt;br /&gt;
===Some important things to checkout===&lt;br /&gt;
*Symfony Style Documentation: [https://symfony.com/doc/current/console/style.html How to Style a Console Command]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Google Summer of Code 2018]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Joomla!_4.x]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Translations:J4.x:CLI_Update/23/fr&amp;diff=636602</id>
		<title>Translations:J4.x:CLI Update/23/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Translations:J4.x:CLI_Update/23/fr&amp;diff=636602"/>
		<updated>2019-10-19T11:49:16Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: Created page with &amp;quot;Ceci listera seulement les extensions basées sur la langue, vous pouvez spécifier le type comme module, plugin et composant.&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Ceci listera seulement les extensions basées sur la langue, vous pouvez spécifier le type comme module, plugin et composant.&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Update/fr&amp;diff=636599</id>
		<title>J4.x:CLI Update/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Update/fr&amp;diff=636599"/>
		<updated>2019-10-19T11:48:09Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: Created page with &amp;quot;&amp;quot;Listing par types&amp;quot; : La liste générale des extensions peut être fastidieuse si vous recherchez une extension particulière parmi la grande liste, cependant, vous pouvez r...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{Top portal heading|color=white-bkgd|text-color=#333|title=&lt;br /&gt;
GSoC 2018 &amp;lt;br /&amp;gt;&lt;br /&gt;
Documentation&amp;lt;br /&amp;gt;sur les lignes de commande}}&lt;br /&gt;
[[Image:Gsoc2016.png|75px|center|link=GSOC 2018]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;{{Joomla version|version=4.x}}&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Pour effectuer une tâche mineure dans Joomla!, le tableau de bord de l&#039;administrateur peut sembler fastidieux et lent. La mise à jour de l&#039;application CLI introduit un moyen plus rapide d&#039;effectuer certaines de ces opérations via la ligne de commande. Cela offre un moyen d&#039;intégrer les choses plus rapidement dans l&#039;application Joomla!. Grâce à ce logiciel, les petits tests peuvent être effectués plus rapidement sans passer par le processus du tableau de bord Web. C’est une application CLI pour Joomla! CMS qui permet à l&#039;utilisateur d&#039;effectuer des mises à jour dans le CMS.&lt;br /&gt;
&lt;br /&gt;
Cette documentation montre comment utiliser la mise à jour de l&#039;application CLI et comment étendre ses fonctionnalités en tant que développeur.&lt;br /&gt;
&lt;br /&gt;
===Pré-requis===&lt;br /&gt;
Comme c&#039;est le cas pour toutes les applications CLI (Command Line Interface), l&#039;accès à votre installation Joomla! via la ligne de commande est nécessaire pour utiliser les outils fournis par le CLI Update.&lt;br /&gt;
Vous devriez peut-être envisager d&#039;avoir un accès SSH pour votre serveur en direct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Termes et définitions===&lt;br /&gt;
*CLI - Command Line Interface&lt;br /&gt;
*SSH - Secure SHell&lt;br /&gt;
&lt;br /&gt;
==Utilisation du CLI Update==&lt;br /&gt;
In other for you to use the tools provided by CLI Update, as said in former section, you need access to a CLI into the root of the Joomla Installation. In other words you have to be in the root folder of your Joomla CMS as all commands will run from the root folder.&lt;br /&gt;
[[File:All commands.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
==Utilisation des commandes générales==&lt;br /&gt;
Dans cette section, nous parlerons de l&#039;utilisation des commandes, nous parlerons des différentes commandes, de ce qu&#039;elles sont et comment vous pouvez les utiliser. Nous irons voir les commandes disponibles dans le CLI Update.&lt;br /&gt;
&lt;br /&gt;
===Commandes disponibles===&lt;br /&gt;
Il y a un certain nombre de commandes disponibles dans le CLI Update qui sont prêtes à l&#039;emploi. Ces commandes sont regroupées en fonction de la zone du CMS Joomla! qu&#039;elles touchent.&lt;br /&gt;
&lt;br /&gt;
====Vérification des mises à jour mises à jour====&lt;br /&gt;
Le CLI Update fournit une commande pour vérifier les mises à jour de Joomla!, elle fonctionne comme la version web de &amp;lt;tt&amp;gt;com_joomlaupdate&amp;lt;/tt&amp;gt;, elle récupère la mise à jour et indique si la mise à jour est disponible ou pas. Pour lancer la vérification de mise à jour, nous allons simplement lancer la commande comme ceci à partir du répertoire racine :&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php check-updates&amp;lt;/tt&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
La commande s&#039;exécute et la sortie affiche une version de mise à jour disponible, si disponible, ou indique que l&#039;installation actuelle est à jour.&lt;br /&gt;
[[File:Check updates.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Commandes des composants==== &lt;br /&gt;
Le groupe suivant de commandes sont les commandes basées sur l&#039;extension, simplement dit, les commandes nous permettent de gérer les extensions dans le noyau Jommla!, le CLI Update est livré avec des commandes pour installer, lister et supprimer les extensions.&lt;br /&gt;
&lt;br /&gt;
======Liste des extensions installées======&lt;br /&gt;
Cette commande nous permet de lister toutes les extensions installées. Cette commande peut s&#039;exécuter de deux manières différentes qui sont :&lt;br /&gt;
*&amp;quot;Liste générale&amp;quot; : Liste toutes les extensions installées, par extension cela signifie que les composants, langages, plugins et modules seront listés ensemble lorsque vous lancez cette commande. C&#039;est ainsi que vous appelez la commande :{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:list&amp;lt;/tt/&amp;gt; {{-}}[[File:Extension list.png|center|800px]]&lt;br /&gt;
*&amp;quot;Listing par types&amp;quot; : La liste générale des extensions peut être fastidieuse si vous recherchez une extension particulière parmi la grande liste, cependant, vous pouvez réduire le nombre en spécifiant le type d&#039;extensions que vous pouvez afficher la commande en ajoutant une option de type à cette commande. Voici comment cela se fait : {{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:list --type=language&amp;lt;/tt&amp;gt;{{-}}[[File:Extension list type.png|center|800px]]&lt;br /&gt;
This will list out only language based extensions, you can specify type as module, plugin and component as well.&lt;br /&gt;
&lt;br /&gt;
======Installing an Extension======&lt;br /&gt;
Joomla provides installing an extension through an URL to the zip file or a path to the file, the CLI Update provides both as well and how you can use them is described below.&lt;br /&gt;
*&#039;&#039;Installing from URL&#039;&#039;: To install an extension from URL we will run the command like this and provide an argument and option for the &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command.{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:install url --url=https://github.com/joomla-extensions/patchtester/releases/download/3.0.0-beta3/com_patchtester.zip&amp;lt;/tt&amp;gt;{{-}}This will download the &amp;lt;tt&amp;gt;com_patchtester&amp;lt;/tt&amp;gt; extension.&lt;br /&gt;
{{-}}[[File:Extension install url.png|center|800px]]&lt;br /&gt;
*&#039;&#039;Installing from a PATH&#039;&#039;:To install an extension from a PATH we will run the same &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command and specify arguments for paths like this:{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:install path --path=/Users/bosunski/docs/com_pathtester.zip&amp;lt;/tt&amp;gt; {{-}}[[File:Extension install path.png|center|800px]]&lt;br /&gt;
This loads the extension and performs the installation as expected.&lt;br /&gt;
&lt;br /&gt;
======Removing an extension======&lt;br /&gt;
The last command under this category is the &amp;lt;tt&amp;gt;extension:remove&amp;lt;/tt&amp;gt; command that is used to remove extensions from the Joomla CMS. This command takes in the &amp;lt;tt&amp;gt;extension_id&amp;lt;/tt&amp;gt; as an argument, you can always use the &amp;lt;tt&amp;gt;extension:list&amp;lt;/tt&amp;gt; to display extension id. This is how we remove an extension of id &amp;lt;tt&amp;gt;803&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php extension:remove 803&amp;lt;/tt&amp;gt;&lt;br /&gt;
[[File:Extension Remove.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Updating the Joomla Core====&lt;br /&gt;
As much as the CLI Update provides a command to check update, it also provides a command to perform the update if an update is available. To perform update we will just run this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php core:update&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
This command updates the Joomla core updating it to the latest version available.&lt;br /&gt;
&lt;br /&gt;
[[File:Core update.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Installing Joomla! via the CLI====&lt;br /&gt;
The next command here is the &amp;lt;tt&amp;gt;core:install&amp;lt;/tt&amp;gt; command that lets installation of Joomla CMS to be done via the CLI. This command can  work in 2 modes: The Interactive mode and the Non-interactive mode.&lt;br /&gt;
&lt;br /&gt;
=====Interactive installation=====&lt;br /&gt;
To have a fresh installation of Joomla using the interactive mode we will just run the &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command like so:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php extension:install&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The default installation mode will run and will ask you to input the settings as it&#039;s required, once all options have been provided and validated, the installations will run and Joomla will be installed.&lt;br /&gt;
&lt;br /&gt;
[[File:Core install interactive.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Non-interactive Installation=====&lt;br /&gt;
The next type of installation is the Non-interactive mode. In this mode you will not be asked to input the options but rather all options will be specified within a file and the command will take in an option that specifies the path to the file you want to load the options from, it&#039;s done like this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php core:install --file=/path/to/config.json&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Core install file.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
An example of the contents of &amp;lt;tt&amp;gt;config.json&amp;lt;/tt&amp;gt; can be:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;language&amp;quot;:&amp;quot;en-GB&amp;quot;,&lt;br /&gt;
  &amp;quot;site_name&amp;quot;:&amp;quot;Joomla&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_email&amp;quot;:&amp;quot;email@example.com&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_user&amp;quot;:&amp;quot;user&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_password&amp;quot;:&amp;quot;password&amp;quot;,&lt;br /&gt;
  &amp;quot;db_type&amp;quot;:&amp;quot;mysql&amp;quot;,&lt;br /&gt;
  &amp;quot;db_host&amp;quot;:&amp;quot;localhost&amp;quot;,&lt;br /&gt;
  &amp;quot;db_user&amp;quot;:&amp;quot;root&amp;quot;,&lt;br /&gt;
  &amp;quot;db_pass&amp;quot;:&amp;quot;xcdxcx&amp;quot;,&lt;br /&gt;
  &amp;quot;db_name&amp;quot;:&amp;quot;jtest&amp;quot;,&lt;br /&gt;
  &amp;quot;db_prefix&amp;quot;:&amp;quot;efs0k_&amp;quot;,&lt;br /&gt;
  &amp;quot;db_old&amp;quot;:&amp;quot;remove&amp;quot;,&lt;br /&gt;
  &amp;quot;helpurl&amp;quot;:&amp;quot;https://joomla.org&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
OR as sample &amp;lt;tt&amp;gt;config.ini&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
site_name=&amp;quot;gsoc&amp;quot;&lt;br /&gt;
admin_email=&amp;quot;user@example.com&amp;quot;&lt;br /&gt;
admin_user=&amp;quot;user&amp;quot;&lt;br /&gt;
admin_password=&amp;quot;secret&amp;quot;&lt;br /&gt;
db_type=&amp;quot;mysql&amp;quot;&lt;br /&gt;
db_host=&amp;quot;localhost&amp;quot;&lt;br /&gt;
db_user=&amp;quot;root&amp;quot;&lt;br /&gt;
db_pass=&amp;quot;&amp;quot;&lt;br /&gt;
db_name=&amp;quot;joomla&amp;quot;&lt;br /&gt;
db_prefix=&amp;quot;prefix_&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The options defined are loaded and validated after which the installation will run.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Configuration based commands====&lt;br /&gt;
The next set of commands we will be looking at is for setting and viewing configuration options inside the Joomla installation:&lt;br /&gt;
&lt;br /&gt;
=====Setting configurations=====&lt;br /&gt;
The CLI Update provides a command to change the value of an option existing in the configuration. Using the &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command you can set any configuration option that exists inside the &amp;lt;tt&amp;gt;configuration.php&amp;lt;/tt&amp;gt;. This is how to use command:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:set mailer=mail&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Config set single.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
You can even add multiple option-value pairs like this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:set mailer=mail fromname=Joomla! sitename=&amp;quot;Joomla Site&amp;quot;&amp;lt;/tt&amp;gt;&lt;br /&gt;
This will set multiple options at once.&lt;br /&gt;
&lt;br /&gt;
[[File:Config set multiple.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Getting configurations=====&lt;br /&gt;
The next command in this category is the &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command, as the name suggests it gets the value of an option that exists inside the &amp;lt;tt&amp;gt;configuration.php&amp;lt;/tt&amp;gt;, when no argument is supplied to the command, it will display all the options available in a tabulated form. Here is the command:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get sitename&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return the value for the option &amp;lt;tt&amp;gt;sitename&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:011-cli.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return all the values for the available options.&lt;br /&gt;
&lt;br /&gt;
[[File:Config get all.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Getting grouped configurations=====&lt;br /&gt;
The CLI Update adds an option to &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command that allows us to get logically grouped options, say for example you want to view all your database related options, or you want to view all email related options. To achieve this the CLI Update provides an option to specify a group of options to display, here is how to do that: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get --group=mail&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Config get group.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
The command takes in the &amp;lt;tt&amp;gt;group&amp;lt;/tt&amp;gt; option and given the value of &amp;lt;tt&amp;gt;mail&amp;lt;/tt&amp;gt;. CLI Update currently supports group values: mail, db and session.&lt;br /&gt;
&lt;br /&gt;
====Site down and Site up commands====&lt;br /&gt;
As their name suggests, these commands allow you to quickly put your Joomla powered website into offline or online mode. Here is how to use the commands:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php site:up&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Site up.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php site:down&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Site down.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
The second command puts the website in offline mode while the first command brings the website to online mode.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Contributing to CLI Update as a developer==&lt;br /&gt;
&lt;br /&gt;
===Adding more commands===&lt;br /&gt;
The CLI Update ships with some commands which are added based on the need seen as of the time. However, the CLI Update allows other commands to be added easily and this is what this section is for. A video tutorial is included below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;video-container&amp;quot;&amp;gt;&lt;br /&gt;
{{#widget:YouTube|id=gcJJtTcPiTg}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Calling other commands within command classes===&lt;br /&gt;
Should in case a command you want to write for the CLI Update is going to be require that you call an existing command internally, this is how that can be achieved from within another command class:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
class RunHelloCommand extends AbstractCommand {&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
    public function execute(): int {&lt;br /&gt;
        $command = $this-&amp;gt;getApplication()-&amp;gt;getCommand(&#039;say:hello&#039;);&lt;br /&gt;
        $code = $command-&amp;gt;execute();&lt;br /&gt;
&lt;br /&gt;
        if($code === 0) {&lt;br /&gt;
            // command ran successfully, do something&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    ...&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here, we&#039;re attempting to call the &amp;lt;tt&amp;gt;say:hello&amp;lt;/tt&amp;gt; command created in the Video above.&lt;br /&gt;
&lt;br /&gt;
===Some important things to checkout===&lt;br /&gt;
*Symfony Style Documentation: [https://symfony.com/doc/current/console/style.html How to Style a Console Command]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Google Summer of Code 2018]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Joomla!_4.x]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Translations:J4.x:CLI_Update/22/fr&amp;diff=636598</id>
		<title>Translations:J4.x:CLI Update/22/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Translations:J4.x:CLI_Update/22/fr&amp;diff=636598"/>
		<updated>2019-10-19T11:48:09Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: Created page with &amp;quot;&amp;quot;Listing par types&amp;quot; : La liste générale des extensions peut être fastidieuse si vous recherchez une extension particulière parmi la grande liste, cependant, vous pouvez r...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;quot;Listing par types&amp;quot; : La liste générale des extensions peut être fastidieuse si vous recherchez une extension particulière parmi la grande liste, cependant, vous pouvez réduire le nombre en spécifiant le type d&#039;extensions que vous pouvez afficher la commande en ajoutant une option de type à cette commande. Voici comment cela se fait :&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Update/fr&amp;diff=636583</id>
		<title>J4.x:CLI Update/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Update/fr&amp;diff=636583"/>
		<updated>2019-10-19T11:46:18Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: Created page with &amp;quot;&amp;quot;Liste générale&amp;quot; : Liste toutes les extensions installées, par extension cela signifie que les composants, langages, plugins et modules seront listés ensemble lorsque vous...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{Top portal heading|color=white-bkgd|text-color=#333|title=&lt;br /&gt;
GSoC 2018 &amp;lt;br /&amp;gt;&lt;br /&gt;
Documentation&amp;lt;br /&amp;gt;sur les lignes de commande}}&lt;br /&gt;
[[Image:Gsoc2016.png|75px|center|link=GSOC 2018]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;{{Joomla version|version=4.x}}&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Pour effectuer une tâche mineure dans Joomla!, le tableau de bord de l&#039;administrateur peut sembler fastidieux et lent. La mise à jour de l&#039;application CLI introduit un moyen plus rapide d&#039;effectuer certaines de ces opérations via la ligne de commande. Cela offre un moyen d&#039;intégrer les choses plus rapidement dans l&#039;application Joomla!. Grâce à ce logiciel, les petits tests peuvent être effectués plus rapidement sans passer par le processus du tableau de bord Web. C’est une application CLI pour Joomla! CMS qui permet à l&#039;utilisateur d&#039;effectuer des mises à jour dans le CMS.&lt;br /&gt;
&lt;br /&gt;
Cette documentation montre comment utiliser la mise à jour de l&#039;application CLI et comment étendre ses fonctionnalités en tant que développeur.&lt;br /&gt;
&lt;br /&gt;
===Pré-requis===&lt;br /&gt;
Comme c&#039;est le cas pour toutes les applications CLI (Command Line Interface), l&#039;accès à votre installation Joomla! via la ligne de commande est nécessaire pour utiliser les outils fournis par le CLI Update.&lt;br /&gt;
Vous devriez peut-être envisager d&#039;avoir un accès SSH pour votre serveur en direct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Termes et définitions===&lt;br /&gt;
*CLI - Command Line Interface&lt;br /&gt;
*SSH - Secure SHell&lt;br /&gt;
&lt;br /&gt;
==Utilisation du CLI Update==&lt;br /&gt;
In other for you to use the tools provided by CLI Update, as said in former section, you need access to a CLI into the root of the Joomla Installation. In other words you have to be in the root folder of your Joomla CMS as all commands will run from the root folder.&lt;br /&gt;
[[File:All commands.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
==Utilisation des commandes générales==&lt;br /&gt;
Dans cette section, nous parlerons de l&#039;utilisation des commandes, nous parlerons des différentes commandes, de ce qu&#039;elles sont et comment vous pouvez les utiliser. Nous irons voir les commandes disponibles dans le CLI Update.&lt;br /&gt;
&lt;br /&gt;
===Commandes disponibles===&lt;br /&gt;
Il y a un certain nombre de commandes disponibles dans le CLI Update qui sont prêtes à l&#039;emploi. Ces commandes sont regroupées en fonction de la zone du CMS Joomla! qu&#039;elles touchent.&lt;br /&gt;
&lt;br /&gt;
====Vérification des mises à jour mises à jour====&lt;br /&gt;
Le CLI Update fournit une commande pour vérifier les mises à jour de Joomla!, elle fonctionne comme la version web de &amp;lt;tt&amp;gt;com_joomlaupdate&amp;lt;/tt&amp;gt;, elle récupère la mise à jour et indique si la mise à jour est disponible ou pas. Pour lancer la vérification de mise à jour, nous allons simplement lancer la commande comme ceci à partir du répertoire racine :&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php check-updates&amp;lt;/tt&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
La commande s&#039;exécute et la sortie affiche une version de mise à jour disponible, si disponible, ou indique que l&#039;installation actuelle est à jour.&lt;br /&gt;
[[File:Check updates.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Commandes des composants==== &lt;br /&gt;
Le groupe suivant de commandes sont les commandes basées sur l&#039;extension, simplement dit, les commandes nous permettent de gérer les extensions dans le noyau Jommla!, le CLI Update est livré avec des commandes pour installer, lister et supprimer les extensions.&lt;br /&gt;
&lt;br /&gt;
======Liste des extensions installées======&lt;br /&gt;
Cette commande nous permet de lister toutes les extensions installées. Cette commande peut s&#039;exécuter de deux manières différentes qui sont :&lt;br /&gt;
*&amp;quot;Liste générale&amp;quot; : Liste toutes les extensions installées, par extension cela signifie que les composants, langages, plugins et modules seront listés ensemble lorsque vous lancez cette commande. C&#039;est ainsi que vous appelez la commande :{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:list&amp;lt;/tt/&amp;gt; {{-}}[[File:Extension list.png|center|800px]]&lt;br /&gt;
*&#039;&#039;Listing By types&#039;&#039;: General listing of extension can be tedious if you&#039;re looking for a particular extension out of the big list, however, you can beat down the numbers specifying the type of extensions you can the command to display by adding a type option to the command. Here is how that is done: {{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:list --type=language&amp;lt;/tt&amp;gt;{{-}}[[File:Extension list type.png|center|800px]]&lt;br /&gt;
This will list out only language based extensions, you can specify type as module, plugin and component as well.&lt;br /&gt;
&lt;br /&gt;
======Installing an Extension======&lt;br /&gt;
Joomla provides installing an extension through an URL to the zip file or a path to the file, the CLI Update provides both as well and how you can use them is described below.&lt;br /&gt;
*&#039;&#039;Installing from URL&#039;&#039;: To install an extension from URL we will run the command like this and provide an argument and option for the &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command.{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:install url --url=https://github.com/joomla-extensions/patchtester/releases/download/3.0.0-beta3/com_patchtester.zip&amp;lt;/tt&amp;gt;{{-}}This will download the &amp;lt;tt&amp;gt;com_patchtester&amp;lt;/tt&amp;gt; extension.&lt;br /&gt;
{{-}}[[File:Extension install url.png|center|800px]]&lt;br /&gt;
*&#039;&#039;Installing from a PATH&#039;&#039;:To install an extension from a PATH we will run the same &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command and specify arguments for paths like this:{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:install path --path=/Users/bosunski/docs/com_pathtester.zip&amp;lt;/tt&amp;gt; {{-}}[[File:Extension install path.png|center|800px]]&lt;br /&gt;
This loads the extension and performs the installation as expected.&lt;br /&gt;
&lt;br /&gt;
======Removing an extension======&lt;br /&gt;
The last command under this category is the &amp;lt;tt&amp;gt;extension:remove&amp;lt;/tt&amp;gt; command that is used to remove extensions from the Joomla CMS. This command takes in the &amp;lt;tt&amp;gt;extension_id&amp;lt;/tt&amp;gt; as an argument, you can always use the &amp;lt;tt&amp;gt;extension:list&amp;lt;/tt&amp;gt; to display extension id. This is how we remove an extension of id &amp;lt;tt&amp;gt;803&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php extension:remove 803&amp;lt;/tt&amp;gt;&lt;br /&gt;
[[File:Extension Remove.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Updating the Joomla Core====&lt;br /&gt;
As much as the CLI Update provides a command to check update, it also provides a command to perform the update if an update is available. To perform update we will just run this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php core:update&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
This command updates the Joomla core updating it to the latest version available.&lt;br /&gt;
&lt;br /&gt;
[[File:Core update.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Installing Joomla! via the CLI====&lt;br /&gt;
The next command here is the &amp;lt;tt&amp;gt;core:install&amp;lt;/tt&amp;gt; command that lets installation of Joomla CMS to be done via the CLI. This command can  work in 2 modes: The Interactive mode and the Non-interactive mode.&lt;br /&gt;
&lt;br /&gt;
=====Interactive installation=====&lt;br /&gt;
To have a fresh installation of Joomla using the interactive mode we will just run the &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command like so:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php extension:install&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The default installation mode will run and will ask you to input the settings as it&#039;s required, once all options have been provided and validated, the installations will run and Joomla will be installed.&lt;br /&gt;
&lt;br /&gt;
[[File:Core install interactive.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Non-interactive Installation=====&lt;br /&gt;
The next type of installation is the Non-interactive mode. In this mode you will not be asked to input the options but rather all options will be specified within a file and the command will take in an option that specifies the path to the file you want to load the options from, it&#039;s done like this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php core:install --file=/path/to/config.json&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Core install file.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
An example of the contents of &amp;lt;tt&amp;gt;config.json&amp;lt;/tt&amp;gt; can be:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;language&amp;quot;:&amp;quot;en-GB&amp;quot;,&lt;br /&gt;
  &amp;quot;site_name&amp;quot;:&amp;quot;Joomla&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_email&amp;quot;:&amp;quot;email@example.com&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_user&amp;quot;:&amp;quot;user&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_password&amp;quot;:&amp;quot;password&amp;quot;,&lt;br /&gt;
  &amp;quot;db_type&amp;quot;:&amp;quot;mysql&amp;quot;,&lt;br /&gt;
  &amp;quot;db_host&amp;quot;:&amp;quot;localhost&amp;quot;,&lt;br /&gt;
  &amp;quot;db_user&amp;quot;:&amp;quot;root&amp;quot;,&lt;br /&gt;
  &amp;quot;db_pass&amp;quot;:&amp;quot;xcdxcx&amp;quot;,&lt;br /&gt;
  &amp;quot;db_name&amp;quot;:&amp;quot;jtest&amp;quot;,&lt;br /&gt;
  &amp;quot;db_prefix&amp;quot;:&amp;quot;efs0k_&amp;quot;,&lt;br /&gt;
  &amp;quot;db_old&amp;quot;:&amp;quot;remove&amp;quot;,&lt;br /&gt;
  &amp;quot;helpurl&amp;quot;:&amp;quot;https://joomla.org&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
OR as sample &amp;lt;tt&amp;gt;config.ini&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
site_name=&amp;quot;gsoc&amp;quot;&lt;br /&gt;
admin_email=&amp;quot;user@example.com&amp;quot;&lt;br /&gt;
admin_user=&amp;quot;user&amp;quot;&lt;br /&gt;
admin_password=&amp;quot;secret&amp;quot;&lt;br /&gt;
db_type=&amp;quot;mysql&amp;quot;&lt;br /&gt;
db_host=&amp;quot;localhost&amp;quot;&lt;br /&gt;
db_user=&amp;quot;root&amp;quot;&lt;br /&gt;
db_pass=&amp;quot;&amp;quot;&lt;br /&gt;
db_name=&amp;quot;joomla&amp;quot;&lt;br /&gt;
db_prefix=&amp;quot;prefix_&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The options defined are loaded and validated after which the installation will run.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Configuration based commands====&lt;br /&gt;
The next set of commands we will be looking at is for setting and viewing configuration options inside the Joomla installation:&lt;br /&gt;
&lt;br /&gt;
=====Setting configurations=====&lt;br /&gt;
The CLI Update provides a command to change the value of an option existing in the configuration. Using the &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command you can set any configuration option that exists inside the &amp;lt;tt&amp;gt;configuration.php&amp;lt;/tt&amp;gt;. This is how to use command:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:set mailer=mail&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Config set single.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
You can even add multiple option-value pairs like this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:set mailer=mail fromname=Joomla! sitename=&amp;quot;Joomla Site&amp;quot;&amp;lt;/tt&amp;gt;&lt;br /&gt;
This will set multiple options at once.&lt;br /&gt;
&lt;br /&gt;
[[File:Config set multiple.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Getting configurations=====&lt;br /&gt;
The next command in this category is the &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command, as the name suggests it gets the value of an option that exists inside the &amp;lt;tt&amp;gt;configuration.php&amp;lt;/tt&amp;gt;, when no argument is supplied to the command, it will display all the options available in a tabulated form. Here is the command:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get sitename&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return the value for the option &amp;lt;tt&amp;gt;sitename&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:011-cli.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return all the values for the available options.&lt;br /&gt;
&lt;br /&gt;
[[File:Config get all.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Getting grouped configurations=====&lt;br /&gt;
The CLI Update adds an option to &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command that allows us to get logically grouped options, say for example you want to view all your database related options, or you want to view all email related options. To achieve this the CLI Update provides an option to specify a group of options to display, here is how to do that: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get --group=mail&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Config get group.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
The command takes in the &amp;lt;tt&amp;gt;group&amp;lt;/tt&amp;gt; option and given the value of &amp;lt;tt&amp;gt;mail&amp;lt;/tt&amp;gt;. CLI Update currently supports group values: mail, db and session.&lt;br /&gt;
&lt;br /&gt;
====Site down and Site up commands====&lt;br /&gt;
As their name suggests, these commands allow you to quickly put your Joomla powered website into offline or online mode. Here is how to use the commands:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php site:up&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Site up.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php site:down&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Site down.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
The second command puts the website in offline mode while the first command brings the website to online mode.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Contributing to CLI Update as a developer==&lt;br /&gt;
&lt;br /&gt;
===Adding more commands===&lt;br /&gt;
The CLI Update ships with some commands which are added based on the need seen as of the time. However, the CLI Update allows other commands to be added easily and this is what this section is for. A video tutorial is included below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;video-container&amp;quot;&amp;gt;&lt;br /&gt;
{{#widget:YouTube|id=gcJJtTcPiTg}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Calling other commands within command classes===&lt;br /&gt;
Should in case a command you want to write for the CLI Update is going to be require that you call an existing command internally, this is how that can be achieved from within another command class:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
class RunHelloCommand extends AbstractCommand {&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
    public function execute(): int {&lt;br /&gt;
        $command = $this-&amp;gt;getApplication()-&amp;gt;getCommand(&#039;say:hello&#039;);&lt;br /&gt;
        $code = $command-&amp;gt;execute();&lt;br /&gt;
&lt;br /&gt;
        if($code === 0) {&lt;br /&gt;
            // command ran successfully, do something&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    ...&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here, we&#039;re attempting to call the &amp;lt;tt&amp;gt;say:hello&amp;lt;/tt&amp;gt; command created in the Video above.&lt;br /&gt;
&lt;br /&gt;
===Some important things to checkout===&lt;br /&gt;
*Symfony Style Documentation: [https://symfony.com/doc/current/console/style.html How to Style a Console Command]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Google Summer of Code 2018]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Joomla!_4.x]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Translations:J4.x:CLI_Update/21/fr&amp;diff=636582</id>
		<title>Translations:J4.x:CLI Update/21/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Translations:J4.x:CLI_Update/21/fr&amp;diff=636582"/>
		<updated>2019-10-19T11:46:17Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: Created page with &amp;quot;&amp;quot;Liste générale&amp;quot; : Liste toutes les extensions installées, par extension cela signifie que les composants, langages, plugins et modules seront listés ensemble lorsque vous...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;quot;Liste générale&amp;quot; : Liste toutes les extensions installées, par extension cela signifie que les composants, langages, plugins et modules seront listés ensemble lorsque vous lancez cette commande. C&#039;est ainsi que vous appelez la commande :&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Update/fr&amp;diff=636581</id>
		<title>J4.x:CLI Update/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Update/fr&amp;diff=636581"/>
		<updated>2019-10-19T11:45:46Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: Created page with &amp;quot;Cette commande nous permet de lister toutes les extensions installées. Cette commande peut s&amp;#039;exécuter de deux manières différentes qui sont :&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{Top portal heading|color=white-bkgd|text-color=#333|title=&lt;br /&gt;
GSoC 2018 &amp;lt;br /&amp;gt;&lt;br /&gt;
Documentation&amp;lt;br /&amp;gt;sur les lignes de commande}}&lt;br /&gt;
[[Image:Gsoc2016.png|75px|center|link=GSOC 2018]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;{{Joomla version|version=4.x}}&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Pour effectuer une tâche mineure dans Joomla!, le tableau de bord de l&#039;administrateur peut sembler fastidieux et lent. La mise à jour de l&#039;application CLI introduit un moyen plus rapide d&#039;effectuer certaines de ces opérations via la ligne de commande. Cela offre un moyen d&#039;intégrer les choses plus rapidement dans l&#039;application Joomla!. Grâce à ce logiciel, les petits tests peuvent être effectués plus rapidement sans passer par le processus du tableau de bord Web. C’est une application CLI pour Joomla! CMS qui permet à l&#039;utilisateur d&#039;effectuer des mises à jour dans le CMS.&lt;br /&gt;
&lt;br /&gt;
Cette documentation montre comment utiliser la mise à jour de l&#039;application CLI et comment étendre ses fonctionnalités en tant que développeur.&lt;br /&gt;
&lt;br /&gt;
===Pré-requis===&lt;br /&gt;
Comme c&#039;est le cas pour toutes les applications CLI (Command Line Interface), l&#039;accès à votre installation Joomla! via la ligne de commande est nécessaire pour utiliser les outils fournis par le CLI Update.&lt;br /&gt;
Vous devriez peut-être envisager d&#039;avoir un accès SSH pour votre serveur en direct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Termes et définitions===&lt;br /&gt;
*CLI - Command Line Interface&lt;br /&gt;
*SSH - Secure SHell&lt;br /&gt;
&lt;br /&gt;
==Utilisation du CLI Update==&lt;br /&gt;
In other for you to use the tools provided by CLI Update, as said in former section, you need access to a CLI into the root of the Joomla Installation. In other words you have to be in the root folder of your Joomla CMS as all commands will run from the root folder.&lt;br /&gt;
[[File:All commands.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
==Utilisation des commandes générales==&lt;br /&gt;
Dans cette section, nous parlerons de l&#039;utilisation des commandes, nous parlerons des différentes commandes, de ce qu&#039;elles sont et comment vous pouvez les utiliser. Nous irons voir les commandes disponibles dans le CLI Update.&lt;br /&gt;
&lt;br /&gt;
===Commandes disponibles===&lt;br /&gt;
Il y a un certain nombre de commandes disponibles dans le CLI Update qui sont prêtes à l&#039;emploi. Ces commandes sont regroupées en fonction de la zone du CMS Joomla! qu&#039;elles touchent.&lt;br /&gt;
&lt;br /&gt;
====Vérification des mises à jour mises à jour====&lt;br /&gt;
Le CLI Update fournit une commande pour vérifier les mises à jour de Joomla!, elle fonctionne comme la version web de &amp;lt;tt&amp;gt;com_joomlaupdate&amp;lt;/tt&amp;gt;, elle récupère la mise à jour et indique si la mise à jour est disponible ou pas. Pour lancer la vérification de mise à jour, nous allons simplement lancer la commande comme ceci à partir du répertoire racine :&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php check-updates&amp;lt;/tt&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
La commande s&#039;exécute et la sortie affiche une version de mise à jour disponible, si disponible, ou indique que l&#039;installation actuelle est à jour.&lt;br /&gt;
[[File:Check updates.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Commandes des composants==== &lt;br /&gt;
Le groupe suivant de commandes sont les commandes basées sur l&#039;extension, simplement dit, les commandes nous permettent de gérer les extensions dans le noyau Jommla!, le CLI Update est livré avec des commandes pour installer, lister et supprimer les extensions.&lt;br /&gt;
&lt;br /&gt;
======Liste des extensions installées======&lt;br /&gt;
Cette commande nous permet de lister toutes les extensions installées. Cette commande peut s&#039;exécuter de deux manières différentes qui sont :&lt;br /&gt;
*&#039;&#039;General Listing&#039;&#039;: Lists all the extensions installed, by extensions it means components, languages, plugins, modules will be listed together when you run this command. This is how you call the command:{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:list&amp;lt;/tt/&amp;gt; {{-}}[[File:Extension list.png|center|800px]]&lt;br /&gt;
*&#039;&#039;Listing By types&#039;&#039;: General listing of extension can be tedious if you&#039;re looking for a particular extension out of the big list, however, you can beat down the numbers specifying the type of extensions you can the command to display by adding a type option to the command. Here is how that is done: {{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:list --type=language&amp;lt;/tt&amp;gt;{{-}}[[File:Extension list type.png|center|800px]]&lt;br /&gt;
This will list out only language based extensions, you can specify type as module, plugin and component as well.&lt;br /&gt;
&lt;br /&gt;
======Installing an Extension======&lt;br /&gt;
Joomla provides installing an extension through an URL to the zip file or a path to the file, the CLI Update provides both as well and how you can use them is described below.&lt;br /&gt;
*&#039;&#039;Installing from URL&#039;&#039;: To install an extension from URL we will run the command like this and provide an argument and option for the &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command.{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:install url --url=https://github.com/joomla-extensions/patchtester/releases/download/3.0.0-beta3/com_patchtester.zip&amp;lt;/tt&amp;gt;{{-}}This will download the &amp;lt;tt&amp;gt;com_patchtester&amp;lt;/tt&amp;gt; extension.&lt;br /&gt;
{{-}}[[File:Extension install url.png|center|800px]]&lt;br /&gt;
*&#039;&#039;Installing from a PATH&#039;&#039;:To install an extension from a PATH we will run the same &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command and specify arguments for paths like this:{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:install path --path=/Users/bosunski/docs/com_pathtester.zip&amp;lt;/tt&amp;gt; {{-}}[[File:Extension install path.png|center|800px]]&lt;br /&gt;
This loads the extension and performs the installation as expected.&lt;br /&gt;
&lt;br /&gt;
======Removing an extension======&lt;br /&gt;
The last command under this category is the &amp;lt;tt&amp;gt;extension:remove&amp;lt;/tt&amp;gt; command that is used to remove extensions from the Joomla CMS. This command takes in the &amp;lt;tt&amp;gt;extension_id&amp;lt;/tt&amp;gt; as an argument, you can always use the &amp;lt;tt&amp;gt;extension:list&amp;lt;/tt&amp;gt; to display extension id. This is how we remove an extension of id &amp;lt;tt&amp;gt;803&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php extension:remove 803&amp;lt;/tt&amp;gt;&lt;br /&gt;
[[File:Extension Remove.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Updating the Joomla Core====&lt;br /&gt;
As much as the CLI Update provides a command to check update, it also provides a command to perform the update if an update is available. To perform update we will just run this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php core:update&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
This command updates the Joomla core updating it to the latest version available.&lt;br /&gt;
&lt;br /&gt;
[[File:Core update.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Installing Joomla! via the CLI====&lt;br /&gt;
The next command here is the &amp;lt;tt&amp;gt;core:install&amp;lt;/tt&amp;gt; command that lets installation of Joomla CMS to be done via the CLI. This command can  work in 2 modes: The Interactive mode and the Non-interactive mode.&lt;br /&gt;
&lt;br /&gt;
=====Interactive installation=====&lt;br /&gt;
To have a fresh installation of Joomla using the interactive mode we will just run the &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command like so:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php extension:install&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The default installation mode will run and will ask you to input the settings as it&#039;s required, once all options have been provided and validated, the installations will run and Joomla will be installed.&lt;br /&gt;
&lt;br /&gt;
[[File:Core install interactive.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Non-interactive Installation=====&lt;br /&gt;
The next type of installation is the Non-interactive mode. In this mode you will not be asked to input the options but rather all options will be specified within a file and the command will take in an option that specifies the path to the file you want to load the options from, it&#039;s done like this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php core:install --file=/path/to/config.json&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Core install file.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
An example of the contents of &amp;lt;tt&amp;gt;config.json&amp;lt;/tt&amp;gt; can be:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;language&amp;quot;:&amp;quot;en-GB&amp;quot;,&lt;br /&gt;
  &amp;quot;site_name&amp;quot;:&amp;quot;Joomla&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_email&amp;quot;:&amp;quot;email@example.com&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_user&amp;quot;:&amp;quot;user&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_password&amp;quot;:&amp;quot;password&amp;quot;,&lt;br /&gt;
  &amp;quot;db_type&amp;quot;:&amp;quot;mysql&amp;quot;,&lt;br /&gt;
  &amp;quot;db_host&amp;quot;:&amp;quot;localhost&amp;quot;,&lt;br /&gt;
  &amp;quot;db_user&amp;quot;:&amp;quot;root&amp;quot;,&lt;br /&gt;
  &amp;quot;db_pass&amp;quot;:&amp;quot;xcdxcx&amp;quot;,&lt;br /&gt;
  &amp;quot;db_name&amp;quot;:&amp;quot;jtest&amp;quot;,&lt;br /&gt;
  &amp;quot;db_prefix&amp;quot;:&amp;quot;efs0k_&amp;quot;,&lt;br /&gt;
  &amp;quot;db_old&amp;quot;:&amp;quot;remove&amp;quot;,&lt;br /&gt;
  &amp;quot;helpurl&amp;quot;:&amp;quot;https://joomla.org&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
OR as sample &amp;lt;tt&amp;gt;config.ini&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
site_name=&amp;quot;gsoc&amp;quot;&lt;br /&gt;
admin_email=&amp;quot;user@example.com&amp;quot;&lt;br /&gt;
admin_user=&amp;quot;user&amp;quot;&lt;br /&gt;
admin_password=&amp;quot;secret&amp;quot;&lt;br /&gt;
db_type=&amp;quot;mysql&amp;quot;&lt;br /&gt;
db_host=&amp;quot;localhost&amp;quot;&lt;br /&gt;
db_user=&amp;quot;root&amp;quot;&lt;br /&gt;
db_pass=&amp;quot;&amp;quot;&lt;br /&gt;
db_name=&amp;quot;joomla&amp;quot;&lt;br /&gt;
db_prefix=&amp;quot;prefix_&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The options defined are loaded and validated after which the installation will run.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Configuration based commands====&lt;br /&gt;
The next set of commands we will be looking at is for setting and viewing configuration options inside the Joomla installation:&lt;br /&gt;
&lt;br /&gt;
=====Setting configurations=====&lt;br /&gt;
The CLI Update provides a command to change the value of an option existing in the configuration. Using the &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command you can set any configuration option that exists inside the &amp;lt;tt&amp;gt;configuration.php&amp;lt;/tt&amp;gt;. This is how to use command:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:set mailer=mail&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Config set single.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
You can even add multiple option-value pairs like this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:set mailer=mail fromname=Joomla! sitename=&amp;quot;Joomla Site&amp;quot;&amp;lt;/tt&amp;gt;&lt;br /&gt;
This will set multiple options at once.&lt;br /&gt;
&lt;br /&gt;
[[File:Config set multiple.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Getting configurations=====&lt;br /&gt;
The next command in this category is the &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command, as the name suggests it gets the value of an option that exists inside the &amp;lt;tt&amp;gt;configuration.php&amp;lt;/tt&amp;gt;, when no argument is supplied to the command, it will display all the options available in a tabulated form. Here is the command:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get sitename&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return the value for the option &amp;lt;tt&amp;gt;sitename&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:011-cli.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return all the values for the available options.&lt;br /&gt;
&lt;br /&gt;
[[File:Config get all.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Getting grouped configurations=====&lt;br /&gt;
The CLI Update adds an option to &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command that allows us to get logically grouped options, say for example you want to view all your database related options, or you want to view all email related options. To achieve this the CLI Update provides an option to specify a group of options to display, here is how to do that: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get --group=mail&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Config get group.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
The command takes in the &amp;lt;tt&amp;gt;group&amp;lt;/tt&amp;gt; option and given the value of &amp;lt;tt&amp;gt;mail&amp;lt;/tt&amp;gt;. CLI Update currently supports group values: mail, db and session.&lt;br /&gt;
&lt;br /&gt;
====Site down and Site up commands====&lt;br /&gt;
As their name suggests, these commands allow you to quickly put your Joomla powered website into offline or online mode. Here is how to use the commands:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php site:up&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Site up.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php site:down&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Site down.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
The second command puts the website in offline mode while the first command brings the website to online mode.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Contributing to CLI Update as a developer==&lt;br /&gt;
&lt;br /&gt;
===Adding more commands===&lt;br /&gt;
The CLI Update ships with some commands which are added based on the need seen as of the time. However, the CLI Update allows other commands to be added easily and this is what this section is for. A video tutorial is included below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;video-container&amp;quot;&amp;gt;&lt;br /&gt;
{{#widget:YouTube|id=gcJJtTcPiTg}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Calling other commands within command classes===&lt;br /&gt;
Should in case a command you want to write for the CLI Update is going to be require that you call an existing command internally, this is how that can be achieved from within another command class:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
class RunHelloCommand extends AbstractCommand {&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
    public function execute(): int {&lt;br /&gt;
        $command = $this-&amp;gt;getApplication()-&amp;gt;getCommand(&#039;say:hello&#039;);&lt;br /&gt;
        $code = $command-&amp;gt;execute();&lt;br /&gt;
&lt;br /&gt;
        if($code === 0) {&lt;br /&gt;
            // command ran successfully, do something&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    ...&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here, we&#039;re attempting to call the &amp;lt;tt&amp;gt;say:hello&amp;lt;/tt&amp;gt; command created in the Video above.&lt;br /&gt;
&lt;br /&gt;
===Some important things to checkout===&lt;br /&gt;
*Symfony Style Documentation: [https://symfony.com/doc/current/console/style.html How to Style a Console Command]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Google Summer of Code 2018]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Joomla!_4.x]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Translations:J4.x:CLI_Update/20/fr&amp;diff=636580</id>
		<title>Translations:J4.x:CLI Update/20/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Translations:J4.x:CLI_Update/20/fr&amp;diff=636580"/>
		<updated>2019-10-19T11:45:46Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: Created page with &amp;quot;Cette commande nous permet de lister toutes les extensions installées. Cette commande peut s&amp;#039;exécuter de deux manières différentes qui sont :&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Cette commande nous permet de lister toutes les extensions installées. Cette commande peut s&#039;exécuter de deux manières différentes qui sont :&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Update/fr&amp;diff=636576</id>
		<title>J4.x:CLI Update/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Update/fr&amp;diff=636576"/>
		<updated>2019-10-19T11:45:26Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: Created page with &amp;quot;======Liste des extensions installées======&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{Top portal heading|color=white-bkgd|text-color=#333|title=&lt;br /&gt;
GSoC 2018 &amp;lt;br /&amp;gt;&lt;br /&gt;
Documentation&amp;lt;br /&amp;gt;sur les lignes de commande}}&lt;br /&gt;
[[Image:Gsoc2016.png|75px|center|link=GSOC 2018]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;{{Joomla version|version=4.x}}&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Pour effectuer une tâche mineure dans Joomla!, le tableau de bord de l&#039;administrateur peut sembler fastidieux et lent. La mise à jour de l&#039;application CLI introduit un moyen plus rapide d&#039;effectuer certaines de ces opérations via la ligne de commande. Cela offre un moyen d&#039;intégrer les choses plus rapidement dans l&#039;application Joomla!. Grâce à ce logiciel, les petits tests peuvent être effectués plus rapidement sans passer par le processus du tableau de bord Web. C’est une application CLI pour Joomla! CMS qui permet à l&#039;utilisateur d&#039;effectuer des mises à jour dans le CMS.&lt;br /&gt;
&lt;br /&gt;
Cette documentation montre comment utiliser la mise à jour de l&#039;application CLI et comment étendre ses fonctionnalités en tant que développeur.&lt;br /&gt;
&lt;br /&gt;
===Pré-requis===&lt;br /&gt;
Comme c&#039;est le cas pour toutes les applications CLI (Command Line Interface), l&#039;accès à votre installation Joomla! via la ligne de commande est nécessaire pour utiliser les outils fournis par le CLI Update.&lt;br /&gt;
Vous devriez peut-être envisager d&#039;avoir un accès SSH pour votre serveur en direct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Termes et définitions===&lt;br /&gt;
*CLI - Command Line Interface&lt;br /&gt;
*SSH - Secure SHell&lt;br /&gt;
&lt;br /&gt;
==Utilisation du CLI Update==&lt;br /&gt;
In other for you to use the tools provided by CLI Update, as said in former section, you need access to a CLI into the root of the Joomla Installation. In other words you have to be in the root folder of your Joomla CMS as all commands will run from the root folder.&lt;br /&gt;
[[File:All commands.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
==Utilisation des commandes générales==&lt;br /&gt;
Dans cette section, nous parlerons de l&#039;utilisation des commandes, nous parlerons des différentes commandes, de ce qu&#039;elles sont et comment vous pouvez les utiliser. Nous irons voir les commandes disponibles dans le CLI Update.&lt;br /&gt;
&lt;br /&gt;
===Commandes disponibles===&lt;br /&gt;
Il y a un certain nombre de commandes disponibles dans le CLI Update qui sont prêtes à l&#039;emploi. Ces commandes sont regroupées en fonction de la zone du CMS Joomla! qu&#039;elles touchent.&lt;br /&gt;
&lt;br /&gt;
====Vérification des mises à jour mises à jour====&lt;br /&gt;
Le CLI Update fournit une commande pour vérifier les mises à jour de Joomla!, elle fonctionne comme la version web de &amp;lt;tt&amp;gt;com_joomlaupdate&amp;lt;/tt&amp;gt;, elle récupère la mise à jour et indique si la mise à jour est disponible ou pas. Pour lancer la vérification de mise à jour, nous allons simplement lancer la commande comme ceci à partir du répertoire racine :&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php check-updates&amp;lt;/tt&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
La commande s&#039;exécute et la sortie affiche une version de mise à jour disponible, si disponible, ou indique que l&#039;installation actuelle est à jour.&lt;br /&gt;
[[File:Check updates.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Commandes des composants==== &lt;br /&gt;
Le groupe suivant de commandes sont les commandes basées sur l&#039;extension, simplement dit, les commandes nous permettent de gérer les extensions dans le noyau Jommla!, le CLI Update est livré avec des commandes pour installer, lister et supprimer les extensions.&lt;br /&gt;
&lt;br /&gt;
======Liste des extensions installées======&lt;br /&gt;
This command allows us to list all installed extensions. This command can run in two different ways which are:&lt;br /&gt;
*&#039;&#039;General Listing&#039;&#039;: Lists all the extensions installed, by extensions it means components, languages, plugins, modules will be listed together when you run this command. This is how you call the command:{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:list&amp;lt;/tt/&amp;gt; {{-}}[[File:Extension list.png|center|800px]]&lt;br /&gt;
*&#039;&#039;Listing By types&#039;&#039;: General listing of extension can be tedious if you&#039;re looking for a particular extension out of the big list, however, you can beat down the numbers specifying the type of extensions you can the command to display by adding a type option to the command. Here is how that is done: {{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:list --type=language&amp;lt;/tt&amp;gt;{{-}}[[File:Extension list type.png|center|800px]]&lt;br /&gt;
This will list out only language based extensions, you can specify type as module, plugin and component as well.&lt;br /&gt;
&lt;br /&gt;
======Installing an Extension======&lt;br /&gt;
Joomla provides installing an extension through an URL to the zip file or a path to the file, the CLI Update provides both as well and how you can use them is described below.&lt;br /&gt;
*&#039;&#039;Installing from URL&#039;&#039;: To install an extension from URL we will run the command like this and provide an argument and option for the &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command.{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:install url --url=https://github.com/joomla-extensions/patchtester/releases/download/3.0.0-beta3/com_patchtester.zip&amp;lt;/tt&amp;gt;{{-}}This will download the &amp;lt;tt&amp;gt;com_patchtester&amp;lt;/tt&amp;gt; extension.&lt;br /&gt;
{{-}}[[File:Extension install url.png|center|800px]]&lt;br /&gt;
*&#039;&#039;Installing from a PATH&#039;&#039;:To install an extension from a PATH we will run the same &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command and specify arguments for paths like this:{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:install path --path=/Users/bosunski/docs/com_pathtester.zip&amp;lt;/tt&amp;gt; {{-}}[[File:Extension install path.png|center|800px]]&lt;br /&gt;
This loads the extension and performs the installation as expected.&lt;br /&gt;
&lt;br /&gt;
======Removing an extension======&lt;br /&gt;
The last command under this category is the &amp;lt;tt&amp;gt;extension:remove&amp;lt;/tt&amp;gt; command that is used to remove extensions from the Joomla CMS. This command takes in the &amp;lt;tt&amp;gt;extension_id&amp;lt;/tt&amp;gt; as an argument, you can always use the &amp;lt;tt&amp;gt;extension:list&amp;lt;/tt&amp;gt; to display extension id. This is how we remove an extension of id &amp;lt;tt&amp;gt;803&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php extension:remove 803&amp;lt;/tt&amp;gt;&lt;br /&gt;
[[File:Extension Remove.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Updating the Joomla Core====&lt;br /&gt;
As much as the CLI Update provides a command to check update, it also provides a command to perform the update if an update is available. To perform update we will just run this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php core:update&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
This command updates the Joomla core updating it to the latest version available.&lt;br /&gt;
&lt;br /&gt;
[[File:Core update.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Installing Joomla! via the CLI====&lt;br /&gt;
The next command here is the &amp;lt;tt&amp;gt;core:install&amp;lt;/tt&amp;gt; command that lets installation of Joomla CMS to be done via the CLI. This command can  work in 2 modes: The Interactive mode and the Non-interactive mode.&lt;br /&gt;
&lt;br /&gt;
=====Interactive installation=====&lt;br /&gt;
To have a fresh installation of Joomla using the interactive mode we will just run the &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command like so:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php extension:install&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The default installation mode will run and will ask you to input the settings as it&#039;s required, once all options have been provided and validated, the installations will run and Joomla will be installed.&lt;br /&gt;
&lt;br /&gt;
[[File:Core install interactive.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Non-interactive Installation=====&lt;br /&gt;
The next type of installation is the Non-interactive mode. In this mode you will not be asked to input the options but rather all options will be specified within a file and the command will take in an option that specifies the path to the file you want to load the options from, it&#039;s done like this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php core:install --file=/path/to/config.json&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Core install file.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
An example of the contents of &amp;lt;tt&amp;gt;config.json&amp;lt;/tt&amp;gt; can be:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;language&amp;quot;:&amp;quot;en-GB&amp;quot;,&lt;br /&gt;
  &amp;quot;site_name&amp;quot;:&amp;quot;Joomla&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_email&amp;quot;:&amp;quot;email@example.com&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_user&amp;quot;:&amp;quot;user&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_password&amp;quot;:&amp;quot;password&amp;quot;,&lt;br /&gt;
  &amp;quot;db_type&amp;quot;:&amp;quot;mysql&amp;quot;,&lt;br /&gt;
  &amp;quot;db_host&amp;quot;:&amp;quot;localhost&amp;quot;,&lt;br /&gt;
  &amp;quot;db_user&amp;quot;:&amp;quot;root&amp;quot;,&lt;br /&gt;
  &amp;quot;db_pass&amp;quot;:&amp;quot;xcdxcx&amp;quot;,&lt;br /&gt;
  &amp;quot;db_name&amp;quot;:&amp;quot;jtest&amp;quot;,&lt;br /&gt;
  &amp;quot;db_prefix&amp;quot;:&amp;quot;efs0k_&amp;quot;,&lt;br /&gt;
  &amp;quot;db_old&amp;quot;:&amp;quot;remove&amp;quot;,&lt;br /&gt;
  &amp;quot;helpurl&amp;quot;:&amp;quot;https://joomla.org&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
OR as sample &amp;lt;tt&amp;gt;config.ini&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
site_name=&amp;quot;gsoc&amp;quot;&lt;br /&gt;
admin_email=&amp;quot;user@example.com&amp;quot;&lt;br /&gt;
admin_user=&amp;quot;user&amp;quot;&lt;br /&gt;
admin_password=&amp;quot;secret&amp;quot;&lt;br /&gt;
db_type=&amp;quot;mysql&amp;quot;&lt;br /&gt;
db_host=&amp;quot;localhost&amp;quot;&lt;br /&gt;
db_user=&amp;quot;root&amp;quot;&lt;br /&gt;
db_pass=&amp;quot;&amp;quot;&lt;br /&gt;
db_name=&amp;quot;joomla&amp;quot;&lt;br /&gt;
db_prefix=&amp;quot;prefix_&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The options defined are loaded and validated after which the installation will run.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Configuration based commands====&lt;br /&gt;
The next set of commands we will be looking at is for setting and viewing configuration options inside the Joomla installation:&lt;br /&gt;
&lt;br /&gt;
=====Setting configurations=====&lt;br /&gt;
The CLI Update provides a command to change the value of an option existing in the configuration. Using the &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command you can set any configuration option that exists inside the &amp;lt;tt&amp;gt;configuration.php&amp;lt;/tt&amp;gt;. This is how to use command:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:set mailer=mail&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Config set single.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
You can even add multiple option-value pairs like this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:set mailer=mail fromname=Joomla! sitename=&amp;quot;Joomla Site&amp;quot;&amp;lt;/tt&amp;gt;&lt;br /&gt;
This will set multiple options at once.&lt;br /&gt;
&lt;br /&gt;
[[File:Config set multiple.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Getting configurations=====&lt;br /&gt;
The next command in this category is the &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command, as the name suggests it gets the value of an option that exists inside the &amp;lt;tt&amp;gt;configuration.php&amp;lt;/tt&amp;gt;, when no argument is supplied to the command, it will display all the options available in a tabulated form. Here is the command:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get sitename&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return the value for the option &amp;lt;tt&amp;gt;sitename&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:011-cli.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return all the values for the available options.&lt;br /&gt;
&lt;br /&gt;
[[File:Config get all.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Getting grouped configurations=====&lt;br /&gt;
The CLI Update adds an option to &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command that allows us to get logically grouped options, say for example you want to view all your database related options, or you want to view all email related options. To achieve this the CLI Update provides an option to specify a group of options to display, here is how to do that: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get --group=mail&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Config get group.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
The command takes in the &amp;lt;tt&amp;gt;group&amp;lt;/tt&amp;gt; option and given the value of &amp;lt;tt&amp;gt;mail&amp;lt;/tt&amp;gt;. CLI Update currently supports group values: mail, db and session.&lt;br /&gt;
&lt;br /&gt;
====Site down and Site up commands====&lt;br /&gt;
As their name suggests, these commands allow you to quickly put your Joomla powered website into offline or online mode. Here is how to use the commands:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php site:up&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Site up.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php site:down&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Site down.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
The second command puts the website in offline mode while the first command brings the website to online mode.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Contributing to CLI Update as a developer==&lt;br /&gt;
&lt;br /&gt;
===Adding more commands===&lt;br /&gt;
The CLI Update ships with some commands which are added based on the need seen as of the time. However, the CLI Update allows other commands to be added easily and this is what this section is for. A video tutorial is included below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;video-container&amp;quot;&amp;gt;&lt;br /&gt;
{{#widget:YouTube|id=gcJJtTcPiTg}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Calling other commands within command classes===&lt;br /&gt;
Should in case a command you want to write for the CLI Update is going to be require that you call an existing command internally, this is how that can be achieved from within another command class:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
class RunHelloCommand extends AbstractCommand {&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
    public function execute(): int {&lt;br /&gt;
        $command = $this-&amp;gt;getApplication()-&amp;gt;getCommand(&#039;say:hello&#039;);&lt;br /&gt;
        $code = $command-&amp;gt;execute();&lt;br /&gt;
&lt;br /&gt;
        if($code === 0) {&lt;br /&gt;
            // command ran successfully, do something&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    ...&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here, we&#039;re attempting to call the &amp;lt;tt&amp;gt;say:hello&amp;lt;/tt&amp;gt; command created in the Video above.&lt;br /&gt;
&lt;br /&gt;
===Some important things to checkout===&lt;br /&gt;
*Symfony Style Documentation: [https://symfony.com/doc/current/console/style.html How to Style a Console Command]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Google Summer of Code 2018]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Joomla!_4.x]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Translations:J4.x:CLI_Update/19/fr&amp;diff=636575</id>
		<title>Translations:J4.x:CLI Update/19/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Translations:J4.x:CLI_Update/19/fr&amp;diff=636575"/>
		<updated>2019-10-19T11:45:25Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: Created page with &amp;quot;======Liste des extensions installées======&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;======Liste des extensions installées======&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Update/fr&amp;diff=636574</id>
		<title>J4.x:CLI Update/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Update/fr&amp;diff=636574"/>
		<updated>2019-10-19T11:45:05Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{Top portal heading|color=white-bkgd|text-color=#333|title=&lt;br /&gt;
GSoC 2018 &amp;lt;br /&amp;gt;&lt;br /&gt;
Documentation&amp;lt;br /&amp;gt;sur les lignes de commande}}&lt;br /&gt;
[[Image:Gsoc2016.png|75px|center|link=GSOC 2018]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;{{Joomla version|version=4.x}}&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Pour effectuer une tâche mineure dans Joomla!, le tableau de bord de l&#039;administrateur peut sembler fastidieux et lent. La mise à jour de l&#039;application CLI introduit un moyen plus rapide d&#039;effectuer certaines de ces opérations via la ligne de commande. Cela offre un moyen d&#039;intégrer les choses plus rapidement dans l&#039;application Joomla!. Grâce à ce logiciel, les petits tests peuvent être effectués plus rapidement sans passer par le processus du tableau de bord Web. C’est une application CLI pour Joomla! CMS qui permet à l&#039;utilisateur d&#039;effectuer des mises à jour dans le CMS.&lt;br /&gt;
&lt;br /&gt;
Cette documentation montre comment utiliser la mise à jour de l&#039;application CLI et comment étendre ses fonctionnalités en tant que développeur.&lt;br /&gt;
&lt;br /&gt;
===Pré-requis===&lt;br /&gt;
Comme c&#039;est le cas pour toutes les applications CLI (Command Line Interface), l&#039;accès à votre installation Joomla! via la ligne de commande est nécessaire pour utiliser les outils fournis par le CLI Update.&lt;br /&gt;
Vous devriez peut-être envisager d&#039;avoir un accès SSH pour votre serveur en direct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Termes et définitions===&lt;br /&gt;
*CLI - Command Line Interface&lt;br /&gt;
*SSH - Secure SHell&lt;br /&gt;
&lt;br /&gt;
==Utilisation du CLI Update==&lt;br /&gt;
In other for you to use the tools provided by CLI Update, as said in former section, you need access to a CLI into the root of the Joomla Installation. In other words you have to be in the root folder of your Joomla CMS as all commands will run from the root folder.&lt;br /&gt;
[[File:All commands.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
==Utilisation des commandes générales==&lt;br /&gt;
Dans cette section, nous parlerons de l&#039;utilisation des commandes, nous parlerons des différentes commandes, de ce qu&#039;elles sont et comment vous pouvez les utiliser. Nous irons voir les commandes disponibles dans le CLI Update.&lt;br /&gt;
&lt;br /&gt;
===Commandes disponibles===&lt;br /&gt;
Il y a un certain nombre de commandes disponibles dans le CLI Update qui sont prêtes à l&#039;emploi. Ces commandes sont regroupées en fonction de la zone du CMS Joomla! qu&#039;elles touchent.&lt;br /&gt;
&lt;br /&gt;
====Vérification des mises à jour mises à jour====&lt;br /&gt;
Le CLI Update fournit une commande pour vérifier les mises à jour de Joomla!, elle fonctionne comme la version web de &amp;lt;tt&amp;gt;com_joomlaupdate&amp;lt;/tt&amp;gt;, elle récupère la mise à jour et indique si la mise à jour est disponible ou pas. Pour lancer la vérification de mise à jour, nous allons simplement lancer la commande comme ceci à partir du répertoire racine :&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php check-updates&amp;lt;/tt&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
La commande s&#039;exécute et la sortie affiche une version de mise à jour disponible, si disponible, ou indique que l&#039;installation actuelle est à jour.&lt;br /&gt;
[[File:Check updates.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Commandes des composants==== &lt;br /&gt;
Le groupe suivant de commandes sont les commandes basées sur l&#039;extension, simplement dit, les commandes nous permettent de gérer les extensions dans le noyau Jommla!, le CLI Update est livré avec des commandes pour installer, lister et supprimer les extensions.&lt;br /&gt;
&lt;br /&gt;
======Listing installed extensions======&lt;br /&gt;
This command allows us to list all installed extensions. This command can run in two different ways which are:&lt;br /&gt;
*&#039;&#039;General Listing&#039;&#039;: Lists all the extensions installed, by extensions it means components, languages, plugins, modules will be listed together when you run this command. This is how you call the command:{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:list&amp;lt;/tt/&amp;gt; {{-}}[[File:Extension list.png|center|800px]]&lt;br /&gt;
*&#039;&#039;Listing By types&#039;&#039;: General listing of extension can be tedious if you&#039;re looking for a particular extension out of the big list, however, you can beat down the numbers specifying the type of extensions you can the command to display by adding a type option to the command. Here is how that is done: {{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:list --type=language&amp;lt;/tt&amp;gt;{{-}}[[File:Extension list type.png|center|800px]]&lt;br /&gt;
This will list out only language based extensions, you can specify type as module, plugin and component as well.&lt;br /&gt;
&lt;br /&gt;
======Installing an Extension======&lt;br /&gt;
Joomla provides installing an extension through an URL to the zip file or a path to the file, the CLI Update provides both as well and how you can use them is described below.&lt;br /&gt;
*&#039;&#039;Installing from URL&#039;&#039;: To install an extension from URL we will run the command like this and provide an argument and option for the &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command.{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:install url --url=https://github.com/joomla-extensions/patchtester/releases/download/3.0.0-beta3/com_patchtester.zip&amp;lt;/tt&amp;gt;{{-}}This will download the &amp;lt;tt&amp;gt;com_patchtester&amp;lt;/tt&amp;gt; extension.&lt;br /&gt;
{{-}}[[File:Extension install url.png|center|800px]]&lt;br /&gt;
*&#039;&#039;Installing from a PATH&#039;&#039;:To install an extension from a PATH we will run the same &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command and specify arguments for paths like this:{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:install path --path=/Users/bosunski/docs/com_pathtester.zip&amp;lt;/tt&amp;gt; {{-}}[[File:Extension install path.png|center|800px]]&lt;br /&gt;
This loads the extension and performs the installation as expected.&lt;br /&gt;
&lt;br /&gt;
======Removing an extension======&lt;br /&gt;
The last command under this category is the &amp;lt;tt&amp;gt;extension:remove&amp;lt;/tt&amp;gt; command that is used to remove extensions from the Joomla CMS. This command takes in the &amp;lt;tt&amp;gt;extension_id&amp;lt;/tt&amp;gt; as an argument, you can always use the &amp;lt;tt&amp;gt;extension:list&amp;lt;/tt&amp;gt; to display extension id. This is how we remove an extension of id &amp;lt;tt&amp;gt;803&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php extension:remove 803&amp;lt;/tt&amp;gt;&lt;br /&gt;
[[File:Extension Remove.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Updating the Joomla Core====&lt;br /&gt;
As much as the CLI Update provides a command to check update, it also provides a command to perform the update if an update is available. To perform update we will just run this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php core:update&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
This command updates the Joomla core updating it to the latest version available.&lt;br /&gt;
&lt;br /&gt;
[[File:Core update.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Installing Joomla! via the CLI====&lt;br /&gt;
The next command here is the &amp;lt;tt&amp;gt;core:install&amp;lt;/tt&amp;gt; command that lets installation of Joomla CMS to be done via the CLI. This command can  work in 2 modes: The Interactive mode and the Non-interactive mode.&lt;br /&gt;
&lt;br /&gt;
=====Interactive installation=====&lt;br /&gt;
To have a fresh installation of Joomla using the interactive mode we will just run the &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command like so:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php extension:install&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The default installation mode will run and will ask you to input the settings as it&#039;s required, once all options have been provided and validated, the installations will run and Joomla will be installed.&lt;br /&gt;
&lt;br /&gt;
[[File:Core install interactive.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Non-interactive Installation=====&lt;br /&gt;
The next type of installation is the Non-interactive mode. In this mode you will not be asked to input the options but rather all options will be specified within a file and the command will take in an option that specifies the path to the file you want to load the options from, it&#039;s done like this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php core:install --file=/path/to/config.json&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Core install file.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
An example of the contents of &amp;lt;tt&amp;gt;config.json&amp;lt;/tt&amp;gt; can be:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;language&amp;quot;:&amp;quot;en-GB&amp;quot;,&lt;br /&gt;
  &amp;quot;site_name&amp;quot;:&amp;quot;Joomla&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_email&amp;quot;:&amp;quot;email@example.com&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_user&amp;quot;:&amp;quot;user&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_password&amp;quot;:&amp;quot;password&amp;quot;,&lt;br /&gt;
  &amp;quot;db_type&amp;quot;:&amp;quot;mysql&amp;quot;,&lt;br /&gt;
  &amp;quot;db_host&amp;quot;:&amp;quot;localhost&amp;quot;,&lt;br /&gt;
  &amp;quot;db_user&amp;quot;:&amp;quot;root&amp;quot;,&lt;br /&gt;
  &amp;quot;db_pass&amp;quot;:&amp;quot;xcdxcx&amp;quot;,&lt;br /&gt;
  &amp;quot;db_name&amp;quot;:&amp;quot;jtest&amp;quot;,&lt;br /&gt;
  &amp;quot;db_prefix&amp;quot;:&amp;quot;efs0k_&amp;quot;,&lt;br /&gt;
  &amp;quot;db_old&amp;quot;:&amp;quot;remove&amp;quot;,&lt;br /&gt;
  &amp;quot;helpurl&amp;quot;:&amp;quot;https://joomla.org&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
OR as sample &amp;lt;tt&amp;gt;config.ini&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
site_name=&amp;quot;gsoc&amp;quot;&lt;br /&gt;
admin_email=&amp;quot;user@example.com&amp;quot;&lt;br /&gt;
admin_user=&amp;quot;user&amp;quot;&lt;br /&gt;
admin_password=&amp;quot;secret&amp;quot;&lt;br /&gt;
db_type=&amp;quot;mysql&amp;quot;&lt;br /&gt;
db_host=&amp;quot;localhost&amp;quot;&lt;br /&gt;
db_user=&amp;quot;root&amp;quot;&lt;br /&gt;
db_pass=&amp;quot;&amp;quot;&lt;br /&gt;
db_name=&amp;quot;joomla&amp;quot;&lt;br /&gt;
db_prefix=&amp;quot;prefix_&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The options defined are loaded and validated after which the installation will run.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Configuration based commands====&lt;br /&gt;
The next set of commands we will be looking at is for setting and viewing configuration options inside the Joomla installation:&lt;br /&gt;
&lt;br /&gt;
=====Setting configurations=====&lt;br /&gt;
The CLI Update provides a command to change the value of an option existing in the configuration. Using the &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command you can set any configuration option that exists inside the &amp;lt;tt&amp;gt;configuration.php&amp;lt;/tt&amp;gt;. This is how to use command:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:set mailer=mail&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Config set single.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
You can even add multiple option-value pairs like this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:set mailer=mail fromname=Joomla! sitename=&amp;quot;Joomla Site&amp;quot;&amp;lt;/tt&amp;gt;&lt;br /&gt;
This will set multiple options at once.&lt;br /&gt;
&lt;br /&gt;
[[File:Config set multiple.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Getting configurations=====&lt;br /&gt;
The next command in this category is the &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command, as the name suggests it gets the value of an option that exists inside the &amp;lt;tt&amp;gt;configuration.php&amp;lt;/tt&amp;gt;, when no argument is supplied to the command, it will display all the options available in a tabulated form. Here is the command:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get sitename&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return the value for the option &amp;lt;tt&amp;gt;sitename&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:011-cli.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return all the values for the available options.&lt;br /&gt;
&lt;br /&gt;
[[File:Config get all.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Getting grouped configurations=====&lt;br /&gt;
The CLI Update adds an option to &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command that allows us to get logically grouped options, say for example you want to view all your database related options, or you want to view all email related options. To achieve this the CLI Update provides an option to specify a group of options to display, here is how to do that: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get --group=mail&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Config get group.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
The command takes in the &amp;lt;tt&amp;gt;group&amp;lt;/tt&amp;gt; option and given the value of &amp;lt;tt&amp;gt;mail&amp;lt;/tt&amp;gt;. CLI Update currently supports group values: mail, db and session.&lt;br /&gt;
&lt;br /&gt;
====Site down and Site up commands====&lt;br /&gt;
As their name suggests, these commands allow you to quickly put your Joomla powered website into offline or online mode. Here is how to use the commands:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php site:up&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Site up.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php site:down&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Site down.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
The second command puts the website in offline mode while the first command brings the website to online mode.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Contributing to CLI Update as a developer==&lt;br /&gt;
&lt;br /&gt;
===Adding more commands===&lt;br /&gt;
The CLI Update ships with some commands which are added based on the need seen as of the time. However, the CLI Update allows other commands to be added easily and this is what this section is for. A video tutorial is included below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;video-container&amp;quot;&amp;gt;&lt;br /&gt;
{{#widget:YouTube|id=gcJJtTcPiTg}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Calling other commands within command classes===&lt;br /&gt;
Should in case a command you want to write for the CLI Update is going to be require that you call an existing command internally, this is how that can be achieved from within another command class:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
class RunHelloCommand extends AbstractCommand {&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
    public function execute(): int {&lt;br /&gt;
        $command = $this-&amp;gt;getApplication()-&amp;gt;getCommand(&#039;say:hello&#039;);&lt;br /&gt;
        $code = $command-&amp;gt;execute();&lt;br /&gt;
&lt;br /&gt;
        if($code === 0) {&lt;br /&gt;
            // command ran successfully, do something&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    ...&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here, we&#039;re attempting to call the &amp;lt;tt&amp;gt;say:hello&amp;lt;/tt&amp;gt; command created in the Video above.&lt;br /&gt;
&lt;br /&gt;
===Some important things to checkout===&lt;br /&gt;
*Symfony Style Documentation: [https://symfony.com/doc/current/console/style.html How to Style a Console Command]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Google Summer of Code 2018]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Joomla!_4.x]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Translations:J4.x:CLI_Update/15/fr&amp;diff=636573</id>
		<title>Translations:J4.x:CLI Update/15/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Translations:J4.x:CLI_Update/15/fr&amp;diff=636573"/>
		<updated>2019-10-19T11:45:04Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Le CLI Update fournit une commande pour vérifier les mises à jour de Joomla!, elle fonctionne comme la version web de &amp;lt;tt&amp;gt;com_joomlaupdate&amp;lt;/tt&amp;gt;, elle récupère la mise à jour et indique si la mise à jour est disponible ou pas. Pour lancer la vérification de mise à jour, nous allons simplement lancer la commande comme ceci à partir du répertoire racine :&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Update/fr&amp;diff=636572</id>
		<title>J4.x:CLI Update/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Update/fr&amp;diff=636572"/>
		<updated>2019-10-19T11:44:55Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{Top portal heading|color=white-bkgd|text-color=#333|title=&lt;br /&gt;
GSoC 2018 &amp;lt;br /&amp;gt;&lt;br /&gt;
Documentation&amp;lt;br /&amp;gt;sur les lignes de commande}}&lt;br /&gt;
[[Image:Gsoc2016.png|75px|center|link=GSOC 2018]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;{{Joomla version|version=4.x}}&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Pour effectuer une tâche mineure dans Joomla!, le tableau de bord de l&#039;administrateur peut sembler fastidieux et lent. La mise à jour de l&#039;application CLI introduit un moyen plus rapide d&#039;effectuer certaines de ces opérations via la ligne de commande. Cela offre un moyen d&#039;intégrer les choses plus rapidement dans l&#039;application Joomla!. Grâce à ce logiciel, les petits tests peuvent être effectués plus rapidement sans passer par le processus du tableau de bord Web. C’est une application CLI pour Joomla! CMS qui permet à l&#039;utilisateur d&#039;effectuer des mises à jour dans le CMS.&lt;br /&gt;
&lt;br /&gt;
Cette documentation montre comment utiliser la mise à jour de l&#039;application CLI et comment étendre ses fonctionnalités en tant que développeur.&lt;br /&gt;
&lt;br /&gt;
===Pré-requis===&lt;br /&gt;
Comme c&#039;est le cas pour toutes les applications CLI (Command Line Interface), l&#039;accès à votre installation Joomla! via la ligne de commande est nécessaire pour utiliser les outils fournis par le CLI Update.&lt;br /&gt;
Vous devriez peut-être envisager d&#039;avoir un accès SSH pour votre serveur en direct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Termes et définitions===&lt;br /&gt;
*CLI - Command Line Interface&lt;br /&gt;
*SSH - Secure SHell&lt;br /&gt;
&lt;br /&gt;
==Utilisation du CLI Update==&lt;br /&gt;
In other for you to use the tools provided by CLI Update, as said in former section, you need access to a CLI into the root of the Joomla Installation. In other words you have to be in the root folder of your Joomla CMS as all commands will run from the root folder.&lt;br /&gt;
[[File:All commands.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
==Utilisation des commandes générales==&lt;br /&gt;
Dans cette section, nous parlerons de l&#039;utilisation des commandes, nous parlerons des différentes commandes, de ce qu&#039;elles sont et comment vous pouvez les utiliser. Nous irons voir les commandes disponibles dans le CLI Update.&lt;br /&gt;
&lt;br /&gt;
===Commandes disponibles===&lt;br /&gt;
Il y a un certain nombre de commandes disponibles dans le CLI Update qui sont prêtes à l&#039;emploi. Ces commandes sont regroupées en fonction de la zone du CMS Joomla! qu&#039;elles touchent.&lt;br /&gt;
&lt;br /&gt;
====Vérification des mises à jour mises à jour====&lt;br /&gt;
La mise à jour de CLI fournit une commande pour vérifier les mises à jour de Joomla!, elle fonctionne comme la version web de &amp;lt;tt&amp;gt;com_joomlaupdate&amp;lt;/tt&amp;gt;, elle récupère la mise à jour et indique si la mise à jour est disponible ou pas. Pour lancer la vérification de mise à jour, nous allons simplement lancer la commande comme ceci à partir du répertoire racine :&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php check-updates&amp;lt;/tt&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
La commande s&#039;exécute et la sortie affiche une version de mise à jour disponible, si disponible, ou indique que l&#039;installation actuelle est à jour.&lt;br /&gt;
[[File:Check updates.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Commandes des composants==== &lt;br /&gt;
Le groupe suivant de commandes sont les commandes basées sur l&#039;extension, simplement dit, les commandes nous permettent de gérer les extensions dans le noyau Jommla!, le CLI Update est livré avec des commandes pour installer, lister et supprimer les extensions.&lt;br /&gt;
&lt;br /&gt;
======Listing installed extensions======&lt;br /&gt;
This command allows us to list all installed extensions. This command can run in two different ways which are:&lt;br /&gt;
*&#039;&#039;General Listing&#039;&#039;: Lists all the extensions installed, by extensions it means components, languages, plugins, modules will be listed together when you run this command. This is how you call the command:{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:list&amp;lt;/tt/&amp;gt; {{-}}[[File:Extension list.png|center|800px]]&lt;br /&gt;
*&#039;&#039;Listing By types&#039;&#039;: General listing of extension can be tedious if you&#039;re looking for a particular extension out of the big list, however, you can beat down the numbers specifying the type of extensions you can the command to display by adding a type option to the command. Here is how that is done: {{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:list --type=language&amp;lt;/tt&amp;gt;{{-}}[[File:Extension list type.png|center|800px]]&lt;br /&gt;
This will list out only language based extensions, you can specify type as module, plugin and component as well.&lt;br /&gt;
&lt;br /&gt;
======Installing an Extension======&lt;br /&gt;
Joomla provides installing an extension through an URL to the zip file or a path to the file, the CLI Update provides both as well and how you can use them is described below.&lt;br /&gt;
*&#039;&#039;Installing from URL&#039;&#039;: To install an extension from URL we will run the command like this and provide an argument and option for the &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command.{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:install url --url=https://github.com/joomla-extensions/patchtester/releases/download/3.0.0-beta3/com_patchtester.zip&amp;lt;/tt&amp;gt;{{-}}This will download the &amp;lt;tt&amp;gt;com_patchtester&amp;lt;/tt&amp;gt; extension.&lt;br /&gt;
{{-}}[[File:Extension install url.png|center|800px]]&lt;br /&gt;
*&#039;&#039;Installing from a PATH&#039;&#039;:To install an extension from a PATH we will run the same &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command and specify arguments for paths like this:{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:install path --path=/Users/bosunski/docs/com_pathtester.zip&amp;lt;/tt&amp;gt; {{-}}[[File:Extension install path.png|center|800px]]&lt;br /&gt;
This loads the extension and performs the installation as expected.&lt;br /&gt;
&lt;br /&gt;
======Removing an extension======&lt;br /&gt;
The last command under this category is the &amp;lt;tt&amp;gt;extension:remove&amp;lt;/tt&amp;gt; command that is used to remove extensions from the Joomla CMS. This command takes in the &amp;lt;tt&amp;gt;extension_id&amp;lt;/tt&amp;gt; as an argument, you can always use the &amp;lt;tt&amp;gt;extension:list&amp;lt;/tt&amp;gt; to display extension id. This is how we remove an extension of id &amp;lt;tt&amp;gt;803&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php extension:remove 803&amp;lt;/tt&amp;gt;&lt;br /&gt;
[[File:Extension Remove.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Updating the Joomla Core====&lt;br /&gt;
As much as the CLI Update provides a command to check update, it also provides a command to perform the update if an update is available. To perform update we will just run this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php core:update&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
This command updates the Joomla core updating it to the latest version available.&lt;br /&gt;
&lt;br /&gt;
[[File:Core update.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Installing Joomla! via the CLI====&lt;br /&gt;
The next command here is the &amp;lt;tt&amp;gt;core:install&amp;lt;/tt&amp;gt; command that lets installation of Joomla CMS to be done via the CLI. This command can  work in 2 modes: The Interactive mode and the Non-interactive mode.&lt;br /&gt;
&lt;br /&gt;
=====Interactive installation=====&lt;br /&gt;
To have a fresh installation of Joomla using the interactive mode we will just run the &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command like so:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php extension:install&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The default installation mode will run and will ask you to input the settings as it&#039;s required, once all options have been provided and validated, the installations will run and Joomla will be installed.&lt;br /&gt;
&lt;br /&gt;
[[File:Core install interactive.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Non-interactive Installation=====&lt;br /&gt;
The next type of installation is the Non-interactive mode. In this mode you will not be asked to input the options but rather all options will be specified within a file and the command will take in an option that specifies the path to the file you want to load the options from, it&#039;s done like this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php core:install --file=/path/to/config.json&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Core install file.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
An example of the contents of &amp;lt;tt&amp;gt;config.json&amp;lt;/tt&amp;gt; can be:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;language&amp;quot;:&amp;quot;en-GB&amp;quot;,&lt;br /&gt;
  &amp;quot;site_name&amp;quot;:&amp;quot;Joomla&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_email&amp;quot;:&amp;quot;email@example.com&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_user&amp;quot;:&amp;quot;user&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_password&amp;quot;:&amp;quot;password&amp;quot;,&lt;br /&gt;
  &amp;quot;db_type&amp;quot;:&amp;quot;mysql&amp;quot;,&lt;br /&gt;
  &amp;quot;db_host&amp;quot;:&amp;quot;localhost&amp;quot;,&lt;br /&gt;
  &amp;quot;db_user&amp;quot;:&amp;quot;root&amp;quot;,&lt;br /&gt;
  &amp;quot;db_pass&amp;quot;:&amp;quot;xcdxcx&amp;quot;,&lt;br /&gt;
  &amp;quot;db_name&amp;quot;:&amp;quot;jtest&amp;quot;,&lt;br /&gt;
  &amp;quot;db_prefix&amp;quot;:&amp;quot;efs0k_&amp;quot;,&lt;br /&gt;
  &amp;quot;db_old&amp;quot;:&amp;quot;remove&amp;quot;,&lt;br /&gt;
  &amp;quot;helpurl&amp;quot;:&amp;quot;https://joomla.org&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
OR as sample &amp;lt;tt&amp;gt;config.ini&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
site_name=&amp;quot;gsoc&amp;quot;&lt;br /&gt;
admin_email=&amp;quot;user@example.com&amp;quot;&lt;br /&gt;
admin_user=&amp;quot;user&amp;quot;&lt;br /&gt;
admin_password=&amp;quot;secret&amp;quot;&lt;br /&gt;
db_type=&amp;quot;mysql&amp;quot;&lt;br /&gt;
db_host=&amp;quot;localhost&amp;quot;&lt;br /&gt;
db_user=&amp;quot;root&amp;quot;&lt;br /&gt;
db_pass=&amp;quot;&amp;quot;&lt;br /&gt;
db_name=&amp;quot;joomla&amp;quot;&lt;br /&gt;
db_prefix=&amp;quot;prefix_&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The options defined are loaded and validated after which the installation will run.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Configuration based commands====&lt;br /&gt;
The next set of commands we will be looking at is for setting and viewing configuration options inside the Joomla installation:&lt;br /&gt;
&lt;br /&gt;
=====Setting configurations=====&lt;br /&gt;
The CLI Update provides a command to change the value of an option existing in the configuration. Using the &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command you can set any configuration option that exists inside the &amp;lt;tt&amp;gt;configuration.php&amp;lt;/tt&amp;gt;. This is how to use command:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:set mailer=mail&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Config set single.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
You can even add multiple option-value pairs like this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:set mailer=mail fromname=Joomla! sitename=&amp;quot;Joomla Site&amp;quot;&amp;lt;/tt&amp;gt;&lt;br /&gt;
This will set multiple options at once.&lt;br /&gt;
&lt;br /&gt;
[[File:Config set multiple.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Getting configurations=====&lt;br /&gt;
The next command in this category is the &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command, as the name suggests it gets the value of an option that exists inside the &amp;lt;tt&amp;gt;configuration.php&amp;lt;/tt&amp;gt;, when no argument is supplied to the command, it will display all the options available in a tabulated form. Here is the command:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get sitename&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return the value for the option &amp;lt;tt&amp;gt;sitename&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:011-cli.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return all the values for the available options.&lt;br /&gt;
&lt;br /&gt;
[[File:Config get all.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Getting grouped configurations=====&lt;br /&gt;
The CLI Update adds an option to &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command that allows us to get logically grouped options, say for example you want to view all your database related options, or you want to view all email related options. To achieve this the CLI Update provides an option to specify a group of options to display, here is how to do that: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get --group=mail&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Config get group.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
The command takes in the &amp;lt;tt&amp;gt;group&amp;lt;/tt&amp;gt; option and given the value of &amp;lt;tt&amp;gt;mail&amp;lt;/tt&amp;gt;. CLI Update currently supports group values: mail, db and session.&lt;br /&gt;
&lt;br /&gt;
====Site down and Site up commands====&lt;br /&gt;
As their name suggests, these commands allow you to quickly put your Joomla powered website into offline or online mode. Here is how to use the commands:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php site:up&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Site up.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php site:down&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Site down.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
The second command puts the website in offline mode while the first command brings the website to online mode.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Contributing to CLI Update as a developer==&lt;br /&gt;
&lt;br /&gt;
===Adding more commands===&lt;br /&gt;
The CLI Update ships with some commands which are added based on the need seen as of the time. However, the CLI Update allows other commands to be added easily and this is what this section is for. A video tutorial is included below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;video-container&amp;quot;&amp;gt;&lt;br /&gt;
{{#widget:YouTube|id=gcJJtTcPiTg}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Calling other commands within command classes===&lt;br /&gt;
Should in case a command you want to write for the CLI Update is going to be require that you call an existing command internally, this is how that can be achieved from within another command class:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
class RunHelloCommand extends AbstractCommand {&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
    public function execute(): int {&lt;br /&gt;
        $command = $this-&amp;gt;getApplication()-&amp;gt;getCommand(&#039;say:hello&#039;);&lt;br /&gt;
        $code = $command-&amp;gt;execute();&lt;br /&gt;
&lt;br /&gt;
        if($code === 0) {&lt;br /&gt;
            // command ran successfully, do something&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    ...&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here, we&#039;re attempting to call the &amp;lt;tt&amp;gt;say:hello&amp;lt;/tt&amp;gt; command created in the Video above.&lt;br /&gt;
&lt;br /&gt;
===Some important things to checkout===&lt;br /&gt;
*Symfony Style Documentation: [https://symfony.com/doc/current/console/style.html How to Style a Console Command]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Google Summer of Code 2018]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Joomla!_4.x]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Translations:J4.x:CLI_Update/13/fr&amp;diff=636571</id>
		<title>Translations:J4.x:CLI Update/13/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Translations:J4.x:CLI_Update/13/fr&amp;diff=636571"/>
		<updated>2019-10-19T11:44:54Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Il y a un certain nombre de commandes disponibles dans le CLI Update qui sont prêtes à l&#039;emploi. Ces commandes sont regroupées en fonction de la zone du CMS Joomla! qu&#039;elles touchent.&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Update/fr&amp;diff=636568</id>
		<title>J4.x:CLI Update/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Update/fr&amp;diff=636568"/>
		<updated>2019-10-19T11:44:48Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{Top portal heading|color=white-bkgd|text-color=#333|title=&lt;br /&gt;
GSoC 2018 &amp;lt;br /&amp;gt;&lt;br /&gt;
Documentation&amp;lt;br /&amp;gt;sur les lignes de commande}}&lt;br /&gt;
[[Image:Gsoc2016.png|75px|center|link=GSOC 2018]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;{{Joomla version|version=4.x}}&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Pour effectuer une tâche mineure dans Joomla!, le tableau de bord de l&#039;administrateur peut sembler fastidieux et lent. La mise à jour de l&#039;application CLI introduit un moyen plus rapide d&#039;effectuer certaines de ces opérations via la ligne de commande. Cela offre un moyen d&#039;intégrer les choses plus rapidement dans l&#039;application Joomla!. Grâce à ce logiciel, les petits tests peuvent être effectués plus rapidement sans passer par le processus du tableau de bord Web. C’est une application CLI pour Joomla! CMS qui permet à l&#039;utilisateur d&#039;effectuer des mises à jour dans le CMS.&lt;br /&gt;
&lt;br /&gt;
Cette documentation montre comment utiliser la mise à jour de l&#039;application CLI et comment étendre ses fonctionnalités en tant que développeur.&lt;br /&gt;
&lt;br /&gt;
===Pré-requis===&lt;br /&gt;
Comme c&#039;est le cas pour toutes les applications CLI (Command Line Interface), l&#039;accès à votre installation Joomla! via la ligne de commande est nécessaire pour utiliser les outils fournis par le CLI Update.&lt;br /&gt;
Vous devriez peut-être envisager d&#039;avoir un accès SSH pour votre serveur en direct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Termes et définitions===&lt;br /&gt;
*CLI - Command Line Interface&lt;br /&gt;
*SSH - Secure SHell&lt;br /&gt;
&lt;br /&gt;
==Utilisation du CLI Update==&lt;br /&gt;
In other for you to use the tools provided by CLI Update, as said in former section, you need access to a CLI into the root of the Joomla Installation. In other words you have to be in the root folder of your Joomla CMS as all commands will run from the root folder.&lt;br /&gt;
[[File:All commands.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
==Utilisation des commandes générales==&lt;br /&gt;
Dans cette section, nous parlerons de l&#039;utilisation des commandes, nous parlerons des différentes commandes, de ce qu&#039;elles sont et comment vous pouvez les utiliser. Nous irons voir les commandes disponibles dans le CLI Update.&lt;br /&gt;
&lt;br /&gt;
===Commandes disponibles===&lt;br /&gt;
Il y a un certain nombre de commandes disponibles dans le CLI Update qui sont prêtes à l&#039;emploi. Ces commandes sont regroupées en fonction de la zone du CMS Joomla ! qu&#039;elles touchent.&lt;br /&gt;
&lt;br /&gt;
====Vérification des mises à jour mises à jour====&lt;br /&gt;
La mise à jour de CLI fournit une commande pour vérifier les mises à jour de Joomla!, elle fonctionne comme la version web de &amp;lt;tt&amp;gt;com_joomlaupdate&amp;lt;/tt&amp;gt;, elle récupère la mise à jour et indique si la mise à jour est disponible ou pas. Pour lancer la vérification de mise à jour, nous allons simplement lancer la commande comme ceci à partir du répertoire racine :&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php check-updates&amp;lt;/tt&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
La commande s&#039;exécute et la sortie affiche une version de mise à jour disponible, si disponible, ou indique que l&#039;installation actuelle est à jour.&lt;br /&gt;
[[File:Check updates.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Commandes des composants==== &lt;br /&gt;
Le groupe suivant de commandes sont les commandes basées sur l&#039;extension, simplement dit, les commandes nous permettent de gérer les extensions dans le noyau Jommla!, le CLI Update est livré avec des commandes pour installer, lister et supprimer les extensions.&lt;br /&gt;
&lt;br /&gt;
======Listing installed extensions======&lt;br /&gt;
This command allows us to list all installed extensions. This command can run in two different ways which are:&lt;br /&gt;
*&#039;&#039;General Listing&#039;&#039;: Lists all the extensions installed, by extensions it means components, languages, plugins, modules will be listed together when you run this command. This is how you call the command:{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:list&amp;lt;/tt/&amp;gt; {{-}}[[File:Extension list.png|center|800px]]&lt;br /&gt;
*&#039;&#039;Listing By types&#039;&#039;: General listing of extension can be tedious if you&#039;re looking for a particular extension out of the big list, however, you can beat down the numbers specifying the type of extensions you can the command to display by adding a type option to the command. Here is how that is done: {{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:list --type=language&amp;lt;/tt&amp;gt;{{-}}[[File:Extension list type.png|center|800px]]&lt;br /&gt;
This will list out only language based extensions, you can specify type as module, plugin and component as well.&lt;br /&gt;
&lt;br /&gt;
======Installing an Extension======&lt;br /&gt;
Joomla provides installing an extension through an URL to the zip file or a path to the file, the CLI Update provides both as well and how you can use them is described below.&lt;br /&gt;
*&#039;&#039;Installing from URL&#039;&#039;: To install an extension from URL we will run the command like this and provide an argument and option for the &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command.{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:install url --url=https://github.com/joomla-extensions/patchtester/releases/download/3.0.0-beta3/com_patchtester.zip&amp;lt;/tt&amp;gt;{{-}}This will download the &amp;lt;tt&amp;gt;com_patchtester&amp;lt;/tt&amp;gt; extension.&lt;br /&gt;
{{-}}[[File:Extension install url.png|center|800px]]&lt;br /&gt;
*&#039;&#039;Installing from a PATH&#039;&#039;:To install an extension from a PATH we will run the same &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command and specify arguments for paths like this:{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:install path --path=/Users/bosunski/docs/com_pathtester.zip&amp;lt;/tt&amp;gt; {{-}}[[File:Extension install path.png|center|800px]]&lt;br /&gt;
This loads the extension and performs the installation as expected.&lt;br /&gt;
&lt;br /&gt;
======Removing an extension======&lt;br /&gt;
The last command under this category is the &amp;lt;tt&amp;gt;extension:remove&amp;lt;/tt&amp;gt; command that is used to remove extensions from the Joomla CMS. This command takes in the &amp;lt;tt&amp;gt;extension_id&amp;lt;/tt&amp;gt; as an argument, you can always use the &amp;lt;tt&amp;gt;extension:list&amp;lt;/tt&amp;gt; to display extension id. This is how we remove an extension of id &amp;lt;tt&amp;gt;803&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php extension:remove 803&amp;lt;/tt&amp;gt;&lt;br /&gt;
[[File:Extension Remove.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Updating the Joomla Core====&lt;br /&gt;
As much as the CLI Update provides a command to check update, it also provides a command to perform the update if an update is available. To perform update we will just run this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php core:update&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
This command updates the Joomla core updating it to the latest version available.&lt;br /&gt;
&lt;br /&gt;
[[File:Core update.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Installing Joomla! via the CLI====&lt;br /&gt;
The next command here is the &amp;lt;tt&amp;gt;core:install&amp;lt;/tt&amp;gt; command that lets installation of Joomla CMS to be done via the CLI. This command can  work in 2 modes: The Interactive mode and the Non-interactive mode.&lt;br /&gt;
&lt;br /&gt;
=====Interactive installation=====&lt;br /&gt;
To have a fresh installation of Joomla using the interactive mode we will just run the &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command like so:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php extension:install&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The default installation mode will run and will ask you to input the settings as it&#039;s required, once all options have been provided and validated, the installations will run and Joomla will be installed.&lt;br /&gt;
&lt;br /&gt;
[[File:Core install interactive.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Non-interactive Installation=====&lt;br /&gt;
The next type of installation is the Non-interactive mode. In this mode you will not be asked to input the options but rather all options will be specified within a file and the command will take in an option that specifies the path to the file you want to load the options from, it&#039;s done like this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php core:install --file=/path/to/config.json&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Core install file.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
An example of the contents of &amp;lt;tt&amp;gt;config.json&amp;lt;/tt&amp;gt; can be:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;language&amp;quot;:&amp;quot;en-GB&amp;quot;,&lt;br /&gt;
  &amp;quot;site_name&amp;quot;:&amp;quot;Joomla&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_email&amp;quot;:&amp;quot;email@example.com&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_user&amp;quot;:&amp;quot;user&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_password&amp;quot;:&amp;quot;password&amp;quot;,&lt;br /&gt;
  &amp;quot;db_type&amp;quot;:&amp;quot;mysql&amp;quot;,&lt;br /&gt;
  &amp;quot;db_host&amp;quot;:&amp;quot;localhost&amp;quot;,&lt;br /&gt;
  &amp;quot;db_user&amp;quot;:&amp;quot;root&amp;quot;,&lt;br /&gt;
  &amp;quot;db_pass&amp;quot;:&amp;quot;xcdxcx&amp;quot;,&lt;br /&gt;
  &amp;quot;db_name&amp;quot;:&amp;quot;jtest&amp;quot;,&lt;br /&gt;
  &amp;quot;db_prefix&amp;quot;:&amp;quot;efs0k_&amp;quot;,&lt;br /&gt;
  &amp;quot;db_old&amp;quot;:&amp;quot;remove&amp;quot;,&lt;br /&gt;
  &amp;quot;helpurl&amp;quot;:&amp;quot;https://joomla.org&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
OR as sample &amp;lt;tt&amp;gt;config.ini&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
site_name=&amp;quot;gsoc&amp;quot;&lt;br /&gt;
admin_email=&amp;quot;user@example.com&amp;quot;&lt;br /&gt;
admin_user=&amp;quot;user&amp;quot;&lt;br /&gt;
admin_password=&amp;quot;secret&amp;quot;&lt;br /&gt;
db_type=&amp;quot;mysql&amp;quot;&lt;br /&gt;
db_host=&amp;quot;localhost&amp;quot;&lt;br /&gt;
db_user=&amp;quot;root&amp;quot;&lt;br /&gt;
db_pass=&amp;quot;&amp;quot;&lt;br /&gt;
db_name=&amp;quot;joomla&amp;quot;&lt;br /&gt;
db_prefix=&amp;quot;prefix_&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The options defined are loaded and validated after which the installation will run.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Configuration based commands====&lt;br /&gt;
The next set of commands we will be looking at is for setting and viewing configuration options inside the Joomla installation:&lt;br /&gt;
&lt;br /&gt;
=====Setting configurations=====&lt;br /&gt;
The CLI Update provides a command to change the value of an option existing in the configuration. Using the &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command you can set any configuration option that exists inside the &amp;lt;tt&amp;gt;configuration.php&amp;lt;/tt&amp;gt;. This is how to use command:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:set mailer=mail&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Config set single.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
You can even add multiple option-value pairs like this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:set mailer=mail fromname=Joomla! sitename=&amp;quot;Joomla Site&amp;quot;&amp;lt;/tt&amp;gt;&lt;br /&gt;
This will set multiple options at once.&lt;br /&gt;
&lt;br /&gt;
[[File:Config set multiple.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Getting configurations=====&lt;br /&gt;
The next command in this category is the &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command, as the name suggests it gets the value of an option that exists inside the &amp;lt;tt&amp;gt;configuration.php&amp;lt;/tt&amp;gt;, when no argument is supplied to the command, it will display all the options available in a tabulated form. Here is the command:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get sitename&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return the value for the option &amp;lt;tt&amp;gt;sitename&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:011-cli.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return all the values for the available options.&lt;br /&gt;
&lt;br /&gt;
[[File:Config get all.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Getting grouped configurations=====&lt;br /&gt;
The CLI Update adds an option to &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command that allows us to get logically grouped options, say for example you want to view all your database related options, or you want to view all email related options. To achieve this the CLI Update provides an option to specify a group of options to display, here is how to do that: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get --group=mail&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Config get group.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
The command takes in the &amp;lt;tt&amp;gt;group&amp;lt;/tt&amp;gt; option and given the value of &amp;lt;tt&amp;gt;mail&amp;lt;/tt&amp;gt;. CLI Update currently supports group values: mail, db and session.&lt;br /&gt;
&lt;br /&gt;
====Site down and Site up commands====&lt;br /&gt;
As their name suggests, these commands allow you to quickly put your Joomla powered website into offline or online mode. Here is how to use the commands:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php site:up&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Site up.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php site:down&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Site down.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
The second command puts the website in offline mode while the first command brings the website to online mode.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Contributing to CLI Update as a developer==&lt;br /&gt;
&lt;br /&gt;
===Adding more commands===&lt;br /&gt;
The CLI Update ships with some commands which are added based on the need seen as of the time. However, the CLI Update allows other commands to be added easily and this is what this section is for. A video tutorial is included below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;video-container&amp;quot;&amp;gt;&lt;br /&gt;
{{#widget:YouTube|id=gcJJtTcPiTg}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Calling other commands within command classes===&lt;br /&gt;
Should in case a command you want to write for the CLI Update is going to be require that you call an existing command internally, this is how that can be achieved from within another command class:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
class RunHelloCommand extends AbstractCommand {&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
    public function execute(): int {&lt;br /&gt;
        $command = $this-&amp;gt;getApplication()-&amp;gt;getCommand(&#039;say:hello&#039;);&lt;br /&gt;
        $code = $command-&amp;gt;execute();&lt;br /&gt;
&lt;br /&gt;
        if($code === 0) {&lt;br /&gt;
            // command ran successfully, do something&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    ...&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here, we&#039;re attempting to call the &amp;lt;tt&amp;gt;say:hello&amp;lt;/tt&amp;gt; command created in the Video above.&lt;br /&gt;
&lt;br /&gt;
===Some important things to checkout===&lt;br /&gt;
*Symfony Style Documentation: [https://symfony.com/doc/current/console/style.html How to Style a Console Command]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Google Summer of Code 2018]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Joomla!_4.x]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Translations:J4.x:CLI_Update/13/fr&amp;diff=636567</id>
		<title>Translations:J4.x:CLI Update/13/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Translations:J4.x:CLI_Update/13/fr&amp;diff=636567"/>
		<updated>2019-10-19T11:44:47Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Il y a un certain nombre de commandes disponibles dans le CLI Update qui sont prêtes à l&#039;emploi. Ces commandes sont regroupées en fonction de la zone du CMS Joomla ! qu&#039;elles touchent.&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Update/fr&amp;diff=636566</id>
		<title>J4.x:CLI Update/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Update/fr&amp;diff=636566"/>
		<updated>2019-10-19T11:44:34Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{Top portal heading|color=white-bkgd|text-color=#333|title=&lt;br /&gt;
GSoC 2018 &amp;lt;br /&amp;gt;&lt;br /&gt;
Documentation&amp;lt;br /&amp;gt;sur les lignes de commande}}&lt;br /&gt;
[[Image:Gsoc2016.png|75px|center|link=GSOC 2018]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;{{Joomla version|version=4.x}}&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Pour effectuer une tâche mineure dans Joomla!, le tableau de bord de l&#039;administrateur peut sembler fastidieux et lent. La mise à jour de l&#039;application CLI introduit un moyen plus rapide d&#039;effectuer certaines de ces opérations via la ligne de commande. Cela offre un moyen d&#039;intégrer les choses plus rapidement dans l&#039;application Joomla!. Grâce à ce logiciel, les petits tests peuvent être effectués plus rapidement sans passer par le processus du tableau de bord Web. C’est une application CLI pour Joomla! CMS qui permet à l&#039;utilisateur d&#039;effectuer des mises à jour dans le CMS.&lt;br /&gt;
&lt;br /&gt;
Cette documentation montre comment utiliser la mise à jour de l&#039;application CLI et comment étendre ses fonctionnalités en tant que développeur.&lt;br /&gt;
&lt;br /&gt;
===Pré-requis===&lt;br /&gt;
Comme c&#039;est le cas pour toutes les applications CLI (Command Line Interface), l&#039;accès à votre installation Joomla! via la ligne de commande est nécessaire pour utiliser les outils fournis par le CLI Update.&lt;br /&gt;
Vous devriez peut-être envisager d&#039;avoir un accès SSH pour votre serveur en direct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Termes et définitions===&lt;br /&gt;
*CLI - Command Line Interface&lt;br /&gt;
*SSH - Secure SHell&lt;br /&gt;
&lt;br /&gt;
==Utilisation du CLI Update==&lt;br /&gt;
In other for you to use the tools provided by CLI Update, as said in former section, you need access to a CLI into the root of the Joomla Installation. In other words you have to be in the root folder of your Joomla CMS as all commands will run from the root folder.&lt;br /&gt;
[[File:All commands.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
==Utilisation des commandes générales==&lt;br /&gt;
Dans cette section, nous parlerons de l&#039;utilisation des commandes, nous parlerons des différentes commandes, de ce qu&#039;elles sont et comment vous pouvez les utiliser. Nous irons voir les commandes disponibles dans le CLI Update.&lt;br /&gt;
&lt;br /&gt;
===Commandes disponibles===&lt;br /&gt;
Il y a un certain nombre de commandes disponibles dans la mise à jour de CLI qui sont prêtes à l&#039;emploi. Ces commandes sont regroupées en fonction de la zone du CMS Joomla ! qu&#039;elles touchent.&lt;br /&gt;
&lt;br /&gt;
====Vérification des mises à jour mises à jour====&lt;br /&gt;
La mise à jour de CLI fournit une commande pour vérifier les mises à jour de Joomla!, elle fonctionne comme la version web de &amp;lt;tt&amp;gt;com_joomlaupdate&amp;lt;/tt&amp;gt;, elle récupère la mise à jour et indique si la mise à jour est disponible ou pas. Pour lancer la vérification de mise à jour, nous allons simplement lancer la commande comme ceci à partir du répertoire racine :&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php check-updates&amp;lt;/tt&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
La commande s&#039;exécute et la sortie affiche une version de mise à jour disponible, si disponible, ou indique que l&#039;installation actuelle est à jour.&lt;br /&gt;
[[File:Check updates.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Commandes des composants==== &lt;br /&gt;
Le groupe suivant de commandes sont les commandes basées sur l&#039;extension, simplement dit, les commandes nous permettent de gérer les extensions dans le noyau Jommla!, le CLI Update est livré avec des commandes pour installer, lister et supprimer les extensions.&lt;br /&gt;
&lt;br /&gt;
======Listing installed extensions======&lt;br /&gt;
This command allows us to list all installed extensions. This command can run in two different ways which are:&lt;br /&gt;
*&#039;&#039;General Listing&#039;&#039;: Lists all the extensions installed, by extensions it means components, languages, plugins, modules will be listed together when you run this command. This is how you call the command:{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:list&amp;lt;/tt/&amp;gt; {{-}}[[File:Extension list.png|center|800px]]&lt;br /&gt;
*&#039;&#039;Listing By types&#039;&#039;: General listing of extension can be tedious if you&#039;re looking for a particular extension out of the big list, however, you can beat down the numbers specifying the type of extensions you can the command to display by adding a type option to the command. Here is how that is done: {{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:list --type=language&amp;lt;/tt&amp;gt;{{-}}[[File:Extension list type.png|center|800px]]&lt;br /&gt;
This will list out only language based extensions, you can specify type as module, plugin and component as well.&lt;br /&gt;
&lt;br /&gt;
======Installing an Extension======&lt;br /&gt;
Joomla provides installing an extension through an URL to the zip file or a path to the file, the CLI Update provides both as well and how you can use them is described below.&lt;br /&gt;
*&#039;&#039;Installing from URL&#039;&#039;: To install an extension from URL we will run the command like this and provide an argument and option for the &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command.{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:install url --url=https://github.com/joomla-extensions/patchtester/releases/download/3.0.0-beta3/com_patchtester.zip&amp;lt;/tt&amp;gt;{{-}}This will download the &amp;lt;tt&amp;gt;com_patchtester&amp;lt;/tt&amp;gt; extension.&lt;br /&gt;
{{-}}[[File:Extension install url.png|center|800px]]&lt;br /&gt;
*&#039;&#039;Installing from a PATH&#039;&#039;:To install an extension from a PATH we will run the same &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command and specify arguments for paths like this:{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:install path --path=/Users/bosunski/docs/com_pathtester.zip&amp;lt;/tt&amp;gt; {{-}}[[File:Extension install path.png|center|800px]]&lt;br /&gt;
This loads the extension and performs the installation as expected.&lt;br /&gt;
&lt;br /&gt;
======Removing an extension======&lt;br /&gt;
The last command under this category is the &amp;lt;tt&amp;gt;extension:remove&amp;lt;/tt&amp;gt; command that is used to remove extensions from the Joomla CMS. This command takes in the &amp;lt;tt&amp;gt;extension_id&amp;lt;/tt&amp;gt; as an argument, you can always use the &amp;lt;tt&amp;gt;extension:list&amp;lt;/tt&amp;gt; to display extension id. This is how we remove an extension of id &amp;lt;tt&amp;gt;803&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php extension:remove 803&amp;lt;/tt&amp;gt;&lt;br /&gt;
[[File:Extension Remove.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Updating the Joomla Core====&lt;br /&gt;
As much as the CLI Update provides a command to check update, it also provides a command to perform the update if an update is available. To perform update we will just run this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php core:update&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
This command updates the Joomla core updating it to the latest version available.&lt;br /&gt;
&lt;br /&gt;
[[File:Core update.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Installing Joomla! via the CLI====&lt;br /&gt;
The next command here is the &amp;lt;tt&amp;gt;core:install&amp;lt;/tt&amp;gt; command that lets installation of Joomla CMS to be done via the CLI. This command can  work in 2 modes: The Interactive mode and the Non-interactive mode.&lt;br /&gt;
&lt;br /&gt;
=====Interactive installation=====&lt;br /&gt;
To have a fresh installation of Joomla using the interactive mode we will just run the &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command like so:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php extension:install&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The default installation mode will run and will ask you to input the settings as it&#039;s required, once all options have been provided and validated, the installations will run and Joomla will be installed.&lt;br /&gt;
&lt;br /&gt;
[[File:Core install interactive.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Non-interactive Installation=====&lt;br /&gt;
The next type of installation is the Non-interactive mode. In this mode you will not be asked to input the options but rather all options will be specified within a file and the command will take in an option that specifies the path to the file you want to load the options from, it&#039;s done like this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php core:install --file=/path/to/config.json&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Core install file.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
An example of the contents of &amp;lt;tt&amp;gt;config.json&amp;lt;/tt&amp;gt; can be:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;language&amp;quot;:&amp;quot;en-GB&amp;quot;,&lt;br /&gt;
  &amp;quot;site_name&amp;quot;:&amp;quot;Joomla&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_email&amp;quot;:&amp;quot;email@example.com&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_user&amp;quot;:&amp;quot;user&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_password&amp;quot;:&amp;quot;password&amp;quot;,&lt;br /&gt;
  &amp;quot;db_type&amp;quot;:&amp;quot;mysql&amp;quot;,&lt;br /&gt;
  &amp;quot;db_host&amp;quot;:&amp;quot;localhost&amp;quot;,&lt;br /&gt;
  &amp;quot;db_user&amp;quot;:&amp;quot;root&amp;quot;,&lt;br /&gt;
  &amp;quot;db_pass&amp;quot;:&amp;quot;xcdxcx&amp;quot;,&lt;br /&gt;
  &amp;quot;db_name&amp;quot;:&amp;quot;jtest&amp;quot;,&lt;br /&gt;
  &amp;quot;db_prefix&amp;quot;:&amp;quot;efs0k_&amp;quot;,&lt;br /&gt;
  &amp;quot;db_old&amp;quot;:&amp;quot;remove&amp;quot;,&lt;br /&gt;
  &amp;quot;helpurl&amp;quot;:&amp;quot;https://joomla.org&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
OR as sample &amp;lt;tt&amp;gt;config.ini&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
site_name=&amp;quot;gsoc&amp;quot;&lt;br /&gt;
admin_email=&amp;quot;user@example.com&amp;quot;&lt;br /&gt;
admin_user=&amp;quot;user&amp;quot;&lt;br /&gt;
admin_password=&amp;quot;secret&amp;quot;&lt;br /&gt;
db_type=&amp;quot;mysql&amp;quot;&lt;br /&gt;
db_host=&amp;quot;localhost&amp;quot;&lt;br /&gt;
db_user=&amp;quot;root&amp;quot;&lt;br /&gt;
db_pass=&amp;quot;&amp;quot;&lt;br /&gt;
db_name=&amp;quot;joomla&amp;quot;&lt;br /&gt;
db_prefix=&amp;quot;prefix_&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The options defined are loaded and validated after which the installation will run.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Configuration based commands====&lt;br /&gt;
The next set of commands we will be looking at is for setting and viewing configuration options inside the Joomla installation:&lt;br /&gt;
&lt;br /&gt;
=====Setting configurations=====&lt;br /&gt;
The CLI Update provides a command to change the value of an option existing in the configuration. Using the &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command you can set any configuration option that exists inside the &amp;lt;tt&amp;gt;configuration.php&amp;lt;/tt&amp;gt;. This is how to use command:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:set mailer=mail&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Config set single.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
You can even add multiple option-value pairs like this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:set mailer=mail fromname=Joomla! sitename=&amp;quot;Joomla Site&amp;quot;&amp;lt;/tt&amp;gt;&lt;br /&gt;
This will set multiple options at once.&lt;br /&gt;
&lt;br /&gt;
[[File:Config set multiple.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Getting configurations=====&lt;br /&gt;
The next command in this category is the &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command, as the name suggests it gets the value of an option that exists inside the &amp;lt;tt&amp;gt;configuration.php&amp;lt;/tt&amp;gt;, when no argument is supplied to the command, it will display all the options available in a tabulated form. Here is the command:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get sitename&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return the value for the option &amp;lt;tt&amp;gt;sitename&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:011-cli.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return all the values for the available options.&lt;br /&gt;
&lt;br /&gt;
[[File:Config get all.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Getting grouped configurations=====&lt;br /&gt;
The CLI Update adds an option to &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command that allows us to get logically grouped options, say for example you want to view all your database related options, or you want to view all email related options. To achieve this the CLI Update provides an option to specify a group of options to display, here is how to do that: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get --group=mail&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Config get group.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
The command takes in the &amp;lt;tt&amp;gt;group&amp;lt;/tt&amp;gt; option and given the value of &amp;lt;tt&amp;gt;mail&amp;lt;/tt&amp;gt;. CLI Update currently supports group values: mail, db and session.&lt;br /&gt;
&lt;br /&gt;
====Site down and Site up commands====&lt;br /&gt;
As their name suggests, these commands allow you to quickly put your Joomla powered website into offline or online mode. Here is how to use the commands:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php site:up&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Site up.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php site:down&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Site down.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
The second command puts the website in offline mode while the first command brings the website to online mode.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Contributing to CLI Update as a developer==&lt;br /&gt;
&lt;br /&gt;
===Adding more commands===&lt;br /&gt;
The CLI Update ships with some commands which are added based on the need seen as of the time. However, the CLI Update allows other commands to be added easily and this is what this section is for. A video tutorial is included below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;video-container&amp;quot;&amp;gt;&lt;br /&gt;
{{#widget:YouTube|id=gcJJtTcPiTg}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Calling other commands within command classes===&lt;br /&gt;
Should in case a command you want to write for the CLI Update is going to be require that you call an existing command internally, this is how that can be achieved from within another command class:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
class RunHelloCommand extends AbstractCommand {&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
    public function execute(): int {&lt;br /&gt;
        $command = $this-&amp;gt;getApplication()-&amp;gt;getCommand(&#039;say:hello&#039;);&lt;br /&gt;
        $code = $command-&amp;gt;execute();&lt;br /&gt;
&lt;br /&gt;
        if($code === 0) {&lt;br /&gt;
            // command ran successfully, do something&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    ...&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here, we&#039;re attempting to call the &amp;lt;tt&amp;gt;say:hello&amp;lt;/tt&amp;gt; command created in the Video above.&lt;br /&gt;
&lt;br /&gt;
===Some important things to checkout===&lt;br /&gt;
*Symfony Style Documentation: [https://symfony.com/doc/current/console/style.html How to Style a Console Command]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Google Summer of Code 2018]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Joomla!_4.x]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Translations:J4.x:CLI_Update/11/fr&amp;diff=636565</id>
		<title>Translations:J4.x:CLI Update/11/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Translations:J4.x:CLI_Update/11/fr&amp;diff=636565"/>
		<updated>2019-10-19T11:44:33Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Dans cette section, nous parlerons de l&#039;utilisation des commandes, nous parlerons des différentes commandes, de ce qu&#039;elles sont et comment vous pouvez les utiliser. Nous irons voir les commandes disponibles dans le CLI Update.&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Update/fr&amp;diff=636562</id>
		<title>J4.x:CLI Update/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Update/fr&amp;diff=636562"/>
		<updated>2019-10-19T11:44:23Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{Top portal heading|color=white-bkgd|text-color=#333|title=&lt;br /&gt;
GSoC 2018 &amp;lt;br /&amp;gt;&lt;br /&gt;
Documentation&amp;lt;br /&amp;gt;sur les lignes de commande}}&lt;br /&gt;
[[Image:Gsoc2016.png|75px|center|link=GSOC 2018]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;{{Joomla version|version=4.x}}&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Pour effectuer une tâche mineure dans Joomla!, le tableau de bord de l&#039;administrateur peut sembler fastidieux et lent. La mise à jour de l&#039;application CLI introduit un moyen plus rapide d&#039;effectuer certaines de ces opérations via la ligne de commande. Cela offre un moyen d&#039;intégrer les choses plus rapidement dans l&#039;application Joomla!. Grâce à ce logiciel, les petits tests peuvent être effectués plus rapidement sans passer par le processus du tableau de bord Web. C’est une application CLI pour Joomla! CMS qui permet à l&#039;utilisateur d&#039;effectuer des mises à jour dans le CMS.&lt;br /&gt;
&lt;br /&gt;
Cette documentation montre comment utiliser la mise à jour de l&#039;application CLI et comment étendre ses fonctionnalités en tant que développeur.&lt;br /&gt;
&lt;br /&gt;
===Pré-requis===&lt;br /&gt;
Comme c&#039;est le cas pour toutes les applications CLI (Command Line Interface), l&#039;accès à votre installation Joomla! via la ligne de commande est nécessaire pour utiliser les outils fournis par le CLI Update.&lt;br /&gt;
Vous devriez peut-être envisager d&#039;avoir un accès SSH pour votre serveur en direct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Termes et définitions===&lt;br /&gt;
*CLI - Command Line Interface&lt;br /&gt;
*SSH - Secure SHell&lt;br /&gt;
&lt;br /&gt;
==Utilisation du CLI Update==&lt;br /&gt;
In other for you to use the tools provided by CLI Update, as said in former section, you need access to a CLI into the root of the Joomla Installation. In other words you have to be in the root folder of your Joomla CMS as all commands will run from the root folder.&lt;br /&gt;
[[File:All commands.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
==Utilisation des commandes générales==&lt;br /&gt;
Dans cette section, nous parlerons de l&#039;utilisation des commandes, nous parlerons des différentes commandes, de ce qu&#039;elles sont et comment vous pouvez les utiliser. Nous irons voir les commandes disponibles dans la mise à jour de CLI.&lt;br /&gt;
&lt;br /&gt;
===Commandes disponibles===&lt;br /&gt;
Il y a un certain nombre de commandes disponibles dans la mise à jour de CLI qui sont prêtes à l&#039;emploi. Ces commandes sont regroupées en fonction de la zone du CMS Joomla ! qu&#039;elles touchent.&lt;br /&gt;
&lt;br /&gt;
====Vérification des mises à jour mises à jour====&lt;br /&gt;
La mise à jour de CLI fournit une commande pour vérifier les mises à jour de Joomla!, elle fonctionne comme la version web de &amp;lt;tt&amp;gt;com_joomlaupdate&amp;lt;/tt&amp;gt;, elle récupère la mise à jour et indique si la mise à jour est disponible ou pas. Pour lancer la vérification de mise à jour, nous allons simplement lancer la commande comme ceci à partir du répertoire racine :&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php check-updates&amp;lt;/tt&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
La commande s&#039;exécute et la sortie affiche une version de mise à jour disponible, si disponible, ou indique que l&#039;installation actuelle est à jour.&lt;br /&gt;
[[File:Check updates.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Commandes des composants==== &lt;br /&gt;
Le groupe suivant de commandes sont les commandes basées sur l&#039;extension, simplement dit, les commandes nous permettent de gérer les extensions dans le noyau Jommla!, le CLI Update est livré avec des commandes pour installer, lister et supprimer les extensions.&lt;br /&gt;
&lt;br /&gt;
======Listing installed extensions======&lt;br /&gt;
This command allows us to list all installed extensions. This command can run in two different ways which are:&lt;br /&gt;
*&#039;&#039;General Listing&#039;&#039;: Lists all the extensions installed, by extensions it means components, languages, plugins, modules will be listed together when you run this command. This is how you call the command:{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:list&amp;lt;/tt/&amp;gt; {{-}}[[File:Extension list.png|center|800px]]&lt;br /&gt;
*&#039;&#039;Listing By types&#039;&#039;: General listing of extension can be tedious if you&#039;re looking for a particular extension out of the big list, however, you can beat down the numbers specifying the type of extensions you can the command to display by adding a type option to the command. Here is how that is done: {{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:list --type=language&amp;lt;/tt&amp;gt;{{-}}[[File:Extension list type.png|center|800px]]&lt;br /&gt;
This will list out only language based extensions, you can specify type as module, plugin and component as well.&lt;br /&gt;
&lt;br /&gt;
======Installing an Extension======&lt;br /&gt;
Joomla provides installing an extension through an URL to the zip file or a path to the file, the CLI Update provides both as well and how you can use them is described below.&lt;br /&gt;
*&#039;&#039;Installing from URL&#039;&#039;: To install an extension from URL we will run the command like this and provide an argument and option for the &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command.{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:install url --url=https://github.com/joomla-extensions/patchtester/releases/download/3.0.0-beta3/com_patchtester.zip&amp;lt;/tt&amp;gt;{{-}}This will download the &amp;lt;tt&amp;gt;com_patchtester&amp;lt;/tt&amp;gt; extension.&lt;br /&gt;
{{-}}[[File:Extension install url.png|center|800px]]&lt;br /&gt;
*&#039;&#039;Installing from a PATH&#039;&#039;:To install an extension from a PATH we will run the same &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command and specify arguments for paths like this:{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:install path --path=/Users/bosunski/docs/com_pathtester.zip&amp;lt;/tt&amp;gt; {{-}}[[File:Extension install path.png|center|800px]]&lt;br /&gt;
This loads the extension and performs the installation as expected.&lt;br /&gt;
&lt;br /&gt;
======Removing an extension======&lt;br /&gt;
The last command under this category is the &amp;lt;tt&amp;gt;extension:remove&amp;lt;/tt&amp;gt; command that is used to remove extensions from the Joomla CMS. This command takes in the &amp;lt;tt&amp;gt;extension_id&amp;lt;/tt&amp;gt; as an argument, you can always use the &amp;lt;tt&amp;gt;extension:list&amp;lt;/tt&amp;gt; to display extension id. This is how we remove an extension of id &amp;lt;tt&amp;gt;803&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php extension:remove 803&amp;lt;/tt&amp;gt;&lt;br /&gt;
[[File:Extension Remove.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Updating the Joomla Core====&lt;br /&gt;
As much as the CLI Update provides a command to check update, it also provides a command to perform the update if an update is available. To perform update we will just run this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php core:update&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
This command updates the Joomla core updating it to the latest version available.&lt;br /&gt;
&lt;br /&gt;
[[File:Core update.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Installing Joomla! via the CLI====&lt;br /&gt;
The next command here is the &amp;lt;tt&amp;gt;core:install&amp;lt;/tt&amp;gt; command that lets installation of Joomla CMS to be done via the CLI. This command can  work in 2 modes: The Interactive mode and the Non-interactive mode.&lt;br /&gt;
&lt;br /&gt;
=====Interactive installation=====&lt;br /&gt;
To have a fresh installation of Joomla using the interactive mode we will just run the &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command like so:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php extension:install&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The default installation mode will run and will ask you to input the settings as it&#039;s required, once all options have been provided and validated, the installations will run and Joomla will be installed.&lt;br /&gt;
&lt;br /&gt;
[[File:Core install interactive.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Non-interactive Installation=====&lt;br /&gt;
The next type of installation is the Non-interactive mode. In this mode you will not be asked to input the options but rather all options will be specified within a file and the command will take in an option that specifies the path to the file you want to load the options from, it&#039;s done like this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php core:install --file=/path/to/config.json&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Core install file.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
An example of the contents of &amp;lt;tt&amp;gt;config.json&amp;lt;/tt&amp;gt; can be:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;language&amp;quot;:&amp;quot;en-GB&amp;quot;,&lt;br /&gt;
  &amp;quot;site_name&amp;quot;:&amp;quot;Joomla&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_email&amp;quot;:&amp;quot;email@example.com&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_user&amp;quot;:&amp;quot;user&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_password&amp;quot;:&amp;quot;password&amp;quot;,&lt;br /&gt;
  &amp;quot;db_type&amp;quot;:&amp;quot;mysql&amp;quot;,&lt;br /&gt;
  &amp;quot;db_host&amp;quot;:&amp;quot;localhost&amp;quot;,&lt;br /&gt;
  &amp;quot;db_user&amp;quot;:&amp;quot;root&amp;quot;,&lt;br /&gt;
  &amp;quot;db_pass&amp;quot;:&amp;quot;xcdxcx&amp;quot;,&lt;br /&gt;
  &amp;quot;db_name&amp;quot;:&amp;quot;jtest&amp;quot;,&lt;br /&gt;
  &amp;quot;db_prefix&amp;quot;:&amp;quot;efs0k_&amp;quot;,&lt;br /&gt;
  &amp;quot;db_old&amp;quot;:&amp;quot;remove&amp;quot;,&lt;br /&gt;
  &amp;quot;helpurl&amp;quot;:&amp;quot;https://joomla.org&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
OR as sample &amp;lt;tt&amp;gt;config.ini&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
site_name=&amp;quot;gsoc&amp;quot;&lt;br /&gt;
admin_email=&amp;quot;user@example.com&amp;quot;&lt;br /&gt;
admin_user=&amp;quot;user&amp;quot;&lt;br /&gt;
admin_password=&amp;quot;secret&amp;quot;&lt;br /&gt;
db_type=&amp;quot;mysql&amp;quot;&lt;br /&gt;
db_host=&amp;quot;localhost&amp;quot;&lt;br /&gt;
db_user=&amp;quot;root&amp;quot;&lt;br /&gt;
db_pass=&amp;quot;&amp;quot;&lt;br /&gt;
db_name=&amp;quot;joomla&amp;quot;&lt;br /&gt;
db_prefix=&amp;quot;prefix_&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The options defined are loaded and validated after which the installation will run.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Configuration based commands====&lt;br /&gt;
The next set of commands we will be looking at is for setting and viewing configuration options inside the Joomla installation:&lt;br /&gt;
&lt;br /&gt;
=====Setting configurations=====&lt;br /&gt;
The CLI Update provides a command to change the value of an option existing in the configuration. Using the &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command you can set any configuration option that exists inside the &amp;lt;tt&amp;gt;configuration.php&amp;lt;/tt&amp;gt;. This is how to use command:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:set mailer=mail&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Config set single.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
You can even add multiple option-value pairs like this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:set mailer=mail fromname=Joomla! sitename=&amp;quot;Joomla Site&amp;quot;&amp;lt;/tt&amp;gt;&lt;br /&gt;
This will set multiple options at once.&lt;br /&gt;
&lt;br /&gt;
[[File:Config set multiple.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Getting configurations=====&lt;br /&gt;
The next command in this category is the &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command, as the name suggests it gets the value of an option that exists inside the &amp;lt;tt&amp;gt;configuration.php&amp;lt;/tt&amp;gt;, when no argument is supplied to the command, it will display all the options available in a tabulated form. Here is the command:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get sitename&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return the value for the option &amp;lt;tt&amp;gt;sitename&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:011-cli.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return all the values for the available options.&lt;br /&gt;
&lt;br /&gt;
[[File:Config get all.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Getting grouped configurations=====&lt;br /&gt;
The CLI Update adds an option to &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command that allows us to get logically grouped options, say for example you want to view all your database related options, or you want to view all email related options. To achieve this the CLI Update provides an option to specify a group of options to display, here is how to do that: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get --group=mail&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Config get group.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
The command takes in the &amp;lt;tt&amp;gt;group&amp;lt;/tt&amp;gt; option and given the value of &amp;lt;tt&amp;gt;mail&amp;lt;/tt&amp;gt;. CLI Update currently supports group values: mail, db and session.&lt;br /&gt;
&lt;br /&gt;
====Site down and Site up commands====&lt;br /&gt;
As their name suggests, these commands allow you to quickly put your Joomla powered website into offline or online mode. Here is how to use the commands:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php site:up&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Site up.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php site:down&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Site down.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
The second command puts the website in offline mode while the first command brings the website to online mode.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Contributing to CLI Update as a developer==&lt;br /&gt;
&lt;br /&gt;
===Adding more commands===&lt;br /&gt;
The CLI Update ships with some commands which are added based on the need seen as of the time. However, the CLI Update allows other commands to be added easily and this is what this section is for. A video tutorial is included below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;video-container&amp;quot;&amp;gt;&lt;br /&gt;
{{#widget:YouTube|id=gcJJtTcPiTg}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Calling other commands within command classes===&lt;br /&gt;
Should in case a command you want to write for the CLI Update is going to be require that you call an existing command internally, this is how that can be achieved from within another command class:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
class RunHelloCommand extends AbstractCommand {&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
    public function execute(): int {&lt;br /&gt;
        $command = $this-&amp;gt;getApplication()-&amp;gt;getCommand(&#039;say:hello&#039;);&lt;br /&gt;
        $code = $command-&amp;gt;execute();&lt;br /&gt;
&lt;br /&gt;
        if($code === 0) {&lt;br /&gt;
            // command ran successfully, do something&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    ...&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here, we&#039;re attempting to call the &amp;lt;tt&amp;gt;say:hello&amp;lt;/tt&amp;gt; command created in the Video above.&lt;br /&gt;
&lt;br /&gt;
===Some important things to checkout===&lt;br /&gt;
*Symfony Style Documentation: [https://symfony.com/doc/current/console/style.html How to Style a Console Command]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Google Summer of Code 2018]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Joomla!_4.x]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Translations:J4.x:CLI_Update/8/fr&amp;diff=636561</id>
		<title>Translations:J4.x:CLI Update/8/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Translations:J4.x:CLI_Update/8/fr&amp;diff=636561"/>
		<updated>2019-10-19T11:44:22Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Utilisation du CLI Update==&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Update/fr&amp;diff=636559</id>
		<title>J4.x:CLI Update/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Update/fr&amp;diff=636559"/>
		<updated>2019-10-19T11:44:01Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: Created page with &amp;quot;Le groupe suivant de commandes sont les commandes basées sur l&amp;#039;extension, simplement dit, les commandes nous permettent de gérer les extensions dans le noyau Jommla!, le CLI...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{Top portal heading|color=white-bkgd|text-color=#333|title=&lt;br /&gt;
GSoC 2018 &amp;lt;br /&amp;gt;&lt;br /&gt;
Documentation&amp;lt;br /&amp;gt;sur les lignes de commande}}&lt;br /&gt;
[[Image:Gsoc2016.png|75px|center|link=GSOC 2018]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;{{Joomla version|version=4.x}}&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Pour effectuer une tâche mineure dans Joomla!, le tableau de bord de l&#039;administrateur peut sembler fastidieux et lent. La mise à jour de l&#039;application CLI introduit un moyen plus rapide d&#039;effectuer certaines de ces opérations via la ligne de commande. Cela offre un moyen d&#039;intégrer les choses plus rapidement dans l&#039;application Joomla!. Grâce à ce logiciel, les petits tests peuvent être effectués plus rapidement sans passer par le processus du tableau de bord Web. C’est une application CLI pour Joomla! CMS qui permet à l&#039;utilisateur d&#039;effectuer des mises à jour dans le CMS.&lt;br /&gt;
&lt;br /&gt;
Cette documentation montre comment utiliser la mise à jour de l&#039;application CLI et comment étendre ses fonctionnalités en tant que développeur.&lt;br /&gt;
&lt;br /&gt;
===Pré-requis===&lt;br /&gt;
Comme c&#039;est le cas pour toutes les applications CLI (Command Line Interface), l&#039;accès à votre installation Joomla! via la ligne de commande est nécessaire pour utiliser les outils fournis par le CLI Update.&lt;br /&gt;
Vous devriez peut-être envisager d&#039;avoir un accès SSH pour votre serveur en direct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Termes et définitions===&lt;br /&gt;
*CLI - Command Line Interface&lt;br /&gt;
*SSH - Secure SHell&lt;br /&gt;
&lt;br /&gt;
==Utilisation de la mise-à-jour en mode CLI==&lt;br /&gt;
In other for you to use the tools provided by CLI Update, as said in former section, you need access to a CLI into the root of the Joomla Installation. In other words you have to be in the root folder of your Joomla CMS as all commands will run from the root folder.&lt;br /&gt;
[[File:All commands.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
==Utilisation des commandes générales==&lt;br /&gt;
Dans cette section, nous parlerons de l&#039;utilisation des commandes, nous parlerons des différentes commandes, de ce qu&#039;elles sont et comment vous pouvez les utiliser. Nous irons voir les commandes disponibles dans la mise à jour de CLI.&lt;br /&gt;
&lt;br /&gt;
===Commandes disponibles===&lt;br /&gt;
Il y a un certain nombre de commandes disponibles dans la mise à jour de CLI qui sont prêtes à l&#039;emploi. Ces commandes sont regroupées en fonction de la zone du CMS Joomla ! qu&#039;elles touchent.&lt;br /&gt;
&lt;br /&gt;
====Vérification des mises à jour mises à jour====&lt;br /&gt;
La mise à jour de CLI fournit une commande pour vérifier les mises à jour de Joomla!, elle fonctionne comme la version web de &amp;lt;tt&amp;gt;com_joomlaupdate&amp;lt;/tt&amp;gt;, elle récupère la mise à jour et indique si la mise à jour est disponible ou pas. Pour lancer la vérification de mise à jour, nous allons simplement lancer la commande comme ceci à partir du répertoire racine :&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php check-updates&amp;lt;/tt&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
La commande s&#039;exécute et la sortie affiche une version de mise à jour disponible, si disponible, ou indique que l&#039;installation actuelle est à jour.&lt;br /&gt;
[[File:Check updates.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Commandes des composants==== &lt;br /&gt;
Le groupe suivant de commandes sont les commandes basées sur l&#039;extension, simplement dit, les commandes nous permettent de gérer les extensions dans le noyau Jommla!, le CLI Update est livré avec des commandes pour installer, lister et supprimer les extensions.&lt;br /&gt;
&lt;br /&gt;
======Listing installed extensions======&lt;br /&gt;
This command allows us to list all installed extensions. This command can run in two different ways which are:&lt;br /&gt;
*&#039;&#039;General Listing&#039;&#039;: Lists all the extensions installed, by extensions it means components, languages, plugins, modules will be listed together when you run this command. This is how you call the command:{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:list&amp;lt;/tt/&amp;gt; {{-}}[[File:Extension list.png|center|800px]]&lt;br /&gt;
*&#039;&#039;Listing By types&#039;&#039;: General listing of extension can be tedious if you&#039;re looking for a particular extension out of the big list, however, you can beat down the numbers specifying the type of extensions you can the command to display by adding a type option to the command. Here is how that is done: {{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:list --type=language&amp;lt;/tt&amp;gt;{{-}}[[File:Extension list type.png|center|800px]]&lt;br /&gt;
This will list out only language based extensions, you can specify type as module, plugin and component as well.&lt;br /&gt;
&lt;br /&gt;
======Installing an Extension======&lt;br /&gt;
Joomla provides installing an extension through an URL to the zip file or a path to the file, the CLI Update provides both as well and how you can use them is described below.&lt;br /&gt;
*&#039;&#039;Installing from URL&#039;&#039;: To install an extension from URL we will run the command like this and provide an argument and option for the &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command.{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:install url --url=https://github.com/joomla-extensions/patchtester/releases/download/3.0.0-beta3/com_patchtester.zip&amp;lt;/tt&amp;gt;{{-}}This will download the &amp;lt;tt&amp;gt;com_patchtester&amp;lt;/tt&amp;gt; extension.&lt;br /&gt;
{{-}}[[File:Extension install url.png|center|800px]]&lt;br /&gt;
*&#039;&#039;Installing from a PATH&#039;&#039;:To install an extension from a PATH we will run the same &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command and specify arguments for paths like this:{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:install path --path=/Users/bosunski/docs/com_pathtester.zip&amp;lt;/tt&amp;gt; {{-}}[[File:Extension install path.png|center|800px]]&lt;br /&gt;
This loads the extension and performs the installation as expected.&lt;br /&gt;
&lt;br /&gt;
======Removing an extension======&lt;br /&gt;
The last command under this category is the &amp;lt;tt&amp;gt;extension:remove&amp;lt;/tt&amp;gt; command that is used to remove extensions from the Joomla CMS. This command takes in the &amp;lt;tt&amp;gt;extension_id&amp;lt;/tt&amp;gt; as an argument, you can always use the &amp;lt;tt&amp;gt;extension:list&amp;lt;/tt&amp;gt; to display extension id. This is how we remove an extension of id &amp;lt;tt&amp;gt;803&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php extension:remove 803&amp;lt;/tt&amp;gt;&lt;br /&gt;
[[File:Extension Remove.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Updating the Joomla Core====&lt;br /&gt;
As much as the CLI Update provides a command to check update, it also provides a command to perform the update if an update is available. To perform update we will just run this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php core:update&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
This command updates the Joomla core updating it to the latest version available.&lt;br /&gt;
&lt;br /&gt;
[[File:Core update.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Installing Joomla! via the CLI====&lt;br /&gt;
The next command here is the &amp;lt;tt&amp;gt;core:install&amp;lt;/tt&amp;gt; command that lets installation of Joomla CMS to be done via the CLI. This command can  work in 2 modes: The Interactive mode and the Non-interactive mode.&lt;br /&gt;
&lt;br /&gt;
=====Interactive installation=====&lt;br /&gt;
To have a fresh installation of Joomla using the interactive mode we will just run the &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command like so:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php extension:install&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The default installation mode will run and will ask you to input the settings as it&#039;s required, once all options have been provided and validated, the installations will run and Joomla will be installed.&lt;br /&gt;
&lt;br /&gt;
[[File:Core install interactive.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Non-interactive Installation=====&lt;br /&gt;
The next type of installation is the Non-interactive mode. In this mode you will not be asked to input the options but rather all options will be specified within a file and the command will take in an option that specifies the path to the file you want to load the options from, it&#039;s done like this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php core:install --file=/path/to/config.json&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Core install file.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
An example of the contents of &amp;lt;tt&amp;gt;config.json&amp;lt;/tt&amp;gt; can be:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;language&amp;quot;:&amp;quot;en-GB&amp;quot;,&lt;br /&gt;
  &amp;quot;site_name&amp;quot;:&amp;quot;Joomla&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_email&amp;quot;:&amp;quot;email@example.com&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_user&amp;quot;:&amp;quot;user&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_password&amp;quot;:&amp;quot;password&amp;quot;,&lt;br /&gt;
  &amp;quot;db_type&amp;quot;:&amp;quot;mysql&amp;quot;,&lt;br /&gt;
  &amp;quot;db_host&amp;quot;:&amp;quot;localhost&amp;quot;,&lt;br /&gt;
  &amp;quot;db_user&amp;quot;:&amp;quot;root&amp;quot;,&lt;br /&gt;
  &amp;quot;db_pass&amp;quot;:&amp;quot;xcdxcx&amp;quot;,&lt;br /&gt;
  &amp;quot;db_name&amp;quot;:&amp;quot;jtest&amp;quot;,&lt;br /&gt;
  &amp;quot;db_prefix&amp;quot;:&amp;quot;efs0k_&amp;quot;,&lt;br /&gt;
  &amp;quot;db_old&amp;quot;:&amp;quot;remove&amp;quot;,&lt;br /&gt;
  &amp;quot;helpurl&amp;quot;:&amp;quot;https://joomla.org&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
OR as sample &amp;lt;tt&amp;gt;config.ini&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
site_name=&amp;quot;gsoc&amp;quot;&lt;br /&gt;
admin_email=&amp;quot;user@example.com&amp;quot;&lt;br /&gt;
admin_user=&amp;quot;user&amp;quot;&lt;br /&gt;
admin_password=&amp;quot;secret&amp;quot;&lt;br /&gt;
db_type=&amp;quot;mysql&amp;quot;&lt;br /&gt;
db_host=&amp;quot;localhost&amp;quot;&lt;br /&gt;
db_user=&amp;quot;root&amp;quot;&lt;br /&gt;
db_pass=&amp;quot;&amp;quot;&lt;br /&gt;
db_name=&amp;quot;joomla&amp;quot;&lt;br /&gt;
db_prefix=&amp;quot;prefix_&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The options defined are loaded and validated after which the installation will run.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Configuration based commands====&lt;br /&gt;
The next set of commands we will be looking at is for setting and viewing configuration options inside the Joomla installation:&lt;br /&gt;
&lt;br /&gt;
=====Setting configurations=====&lt;br /&gt;
The CLI Update provides a command to change the value of an option existing in the configuration. Using the &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command you can set any configuration option that exists inside the &amp;lt;tt&amp;gt;configuration.php&amp;lt;/tt&amp;gt;. This is how to use command:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:set mailer=mail&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Config set single.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
You can even add multiple option-value pairs like this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:set mailer=mail fromname=Joomla! sitename=&amp;quot;Joomla Site&amp;quot;&amp;lt;/tt&amp;gt;&lt;br /&gt;
This will set multiple options at once.&lt;br /&gt;
&lt;br /&gt;
[[File:Config set multiple.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Getting configurations=====&lt;br /&gt;
The next command in this category is the &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command, as the name suggests it gets the value of an option that exists inside the &amp;lt;tt&amp;gt;configuration.php&amp;lt;/tt&amp;gt;, when no argument is supplied to the command, it will display all the options available in a tabulated form. Here is the command:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get sitename&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return the value for the option &amp;lt;tt&amp;gt;sitename&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:011-cli.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return all the values for the available options.&lt;br /&gt;
&lt;br /&gt;
[[File:Config get all.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Getting grouped configurations=====&lt;br /&gt;
The CLI Update adds an option to &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command that allows us to get logically grouped options, say for example you want to view all your database related options, or you want to view all email related options. To achieve this the CLI Update provides an option to specify a group of options to display, here is how to do that: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get --group=mail&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Config get group.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
The command takes in the &amp;lt;tt&amp;gt;group&amp;lt;/tt&amp;gt; option and given the value of &amp;lt;tt&amp;gt;mail&amp;lt;/tt&amp;gt;. CLI Update currently supports group values: mail, db and session.&lt;br /&gt;
&lt;br /&gt;
====Site down and Site up commands====&lt;br /&gt;
As their name suggests, these commands allow you to quickly put your Joomla powered website into offline or online mode. Here is how to use the commands:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php site:up&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Site up.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php site:down&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Site down.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
The second command puts the website in offline mode while the first command brings the website to online mode.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Contributing to CLI Update as a developer==&lt;br /&gt;
&lt;br /&gt;
===Adding more commands===&lt;br /&gt;
The CLI Update ships with some commands which are added based on the need seen as of the time. However, the CLI Update allows other commands to be added easily and this is what this section is for. A video tutorial is included below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;video-container&amp;quot;&amp;gt;&lt;br /&gt;
{{#widget:YouTube|id=gcJJtTcPiTg}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Calling other commands within command classes===&lt;br /&gt;
Should in case a command you want to write for the CLI Update is going to be require that you call an existing command internally, this is how that can be achieved from within another command class:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
class RunHelloCommand extends AbstractCommand {&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
    public function execute(): int {&lt;br /&gt;
        $command = $this-&amp;gt;getApplication()-&amp;gt;getCommand(&#039;say:hello&#039;);&lt;br /&gt;
        $code = $command-&amp;gt;execute();&lt;br /&gt;
&lt;br /&gt;
        if($code === 0) {&lt;br /&gt;
            // command ran successfully, do something&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    ...&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here, we&#039;re attempting to call the &amp;lt;tt&amp;gt;say:hello&amp;lt;/tt&amp;gt; command created in the Video above.&lt;br /&gt;
&lt;br /&gt;
===Some important things to checkout===&lt;br /&gt;
*Symfony Style Documentation: [https://symfony.com/doc/current/console/style.html How to Style a Console Command]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Google Summer of Code 2018]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Joomla!_4.x]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Translations:J4.x:CLI_Update/18/fr&amp;diff=636558</id>
		<title>Translations:J4.x:CLI Update/18/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Translations:J4.x:CLI_Update/18/fr&amp;diff=636558"/>
		<updated>2019-10-19T11:44:00Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: Created page with &amp;quot;Le groupe suivant de commandes sont les commandes basées sur l&amp;#039;extension, simplement dit, les commandes nous permettent de gérer les extensions dans le noyau Jommla!, le CLI...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Le groupe suivant de commandes sont les commandes basées sur l&#039;extension, simplement dit, les commandes nous permettent de gérer les extensions dans le noyau Jommla!, le CLI Update est livré avec des commandes pour installer, lister et supprimer les extensions.&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Update/fr&amp;diff=636557</id>
		<title>J4.x:CLI Update/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Update/fr&amp;diff=636557"/>
		<updated>2019-10-19T11:43:19Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: Created page with &amp;quot;====Commandes des composants====&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{Top portal heading|color=white-bkgd|text-color=#333|title=&lt;br /&gt;
GSoC 2018 &amp;lt;br /&amp;gt;&lt;br /&gt;
Documentation&amp;lt;br /&amp;gt;sur les lignes de commande}}&lt;br /&gt;
[[Image:Gsoc2016.png|75px|center|link=GSOC 2018]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;{{Joomla version|version=4.x}}&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Pour effectuer une tâche mineure dans Joomla!, le tableau de bord de l&#039;administrateur peut sembler fastidieux et lent. La mise à jour de l&#039;application CLI introduit un moyen plus rapide d&#039;effectuer certaines de ces opérations via la ligne de commande. Cela offre un moyen d&#039;intégrer les choses plus rapidement dans l&#039;application Joomla!. Grâce à ce logiciel, les petits tests peuvent être effectués plus rapidement sans passer par le processus du tableau de bord Web. C’est une application CLI pour Joomla! CMS qui permet à l&#039;utilisateur d&#039;effectuer des mises à jour dans le CMS.&lt;br /&gt;
&lt;br /&gt;
Cette documentation montre comment utiliser la mise à jour de l&#039;application CLI et comment étendre ses fonctionnalités en tant que développeur.&lt;br /&gt;
&lt;br /&gt;
===Pré-requis===&lt;br /&gt;
Comme c&#039;est le cas pour toutes les applications CLI (Command Line Interface), l&#039;accès à votre installation Joomla! via la ligne de commande est nécessaire pour utiliser les outils fournis par le CLI Update.&lt;br /&gt;
Vous devriez peut-être envisager d&#039;avoir un accès SSH pour votre serveur en direct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Termes et définitions===&lt;br /&gt;
*CLI - Command Line Interface&lt;br /&gt;
*SSH - Secure SHell&lt;br /&gt;
&lt;br /&gt;
==Utilisation de la mise-à-jour en mode CLI==&lt;br /&gt;
In other for you to use the tools provided by CLI Update, as said in former section, you need access to a CLI into the root of the Joomla Installation. In other words you have to be in the root folder of your Joomla CMS as all commands will run from the root folder.&lt;br /&gt;
[[File:All commands.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
==Utilisation des commandes générales==&lt;br /&gt;
Dans cette section, nous parlerons de l&#039;utilisation des commandes, nous parlerons des différentes commandes, de ce qu&#039;elles sont et comment vous pouvez les utiliser. Nous irons voir les commandes disponibles dans la mise à jour de CLI.&lt;br /&gt;
&lt;br /&gt;
===Commandes disponibles===&lt;br /&gt;
Il y a un certain nombre de commandes disponibles dans la mise à jour de CLI qui sont prêtes à l&#039;emploi. Ces commandes sont regroupées en fonction de la zone du CMS Joomla ! qu&#039;elles touchent.&lt;br /&gt;
&lt;br /&gt;
====Vérification des mises à jour mises à jour====&lt;br /&gt;
La mise à jour de CLI fournit une commande pour vérifier les mises à jour de Joomla!, elle fonctionne comme la version web de &amp;lt;tt&amp;gt;com_joomlaupdate&amp;lt;/tt&amp;gt;, elle récupère la mise à jour et indique si la mise à jour est disponible ou pas. Pour lancer la vérification de mise à jour, nous allons simplement lancer la commande comme ceci à partir du répertoire racine :&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php check-updates&amp;lt;/tt&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
La commande s&#039;exécute et la sortie affiche une version de mise à jour disponible, si disponible, ou indique que l&#039;installation actuelle est à jour.&lt;br /&gt;
[[File:Check updates.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Commandes des composants==== &lt;br /&gt;
The next group of commands are the extension based commands, simply put, the commands allows us to manage extensions within the Jommla! core, the CLI Update ships with commands to install, list and remove extensions.&lt;br /&gt;
&lt;br /&gt;
======Listing installed extensions======&lt;br /&gt;
This command allows us to list all installed extensions. This command can run in two different ways which are:&lt;br /&gt;
*&#039;&#039;General Listing&#039;&#039;: Lists all the extensions installed, by extensions it means components, languages, plugins, modules will be listed together when you run this command. This is how you call the command:{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:list&amp;lt;/tt/&amp;gt; {{-}}[[File:Extension list.png|center|800px]]&lt;br /&gt;
*&#039;&#039;Listing By types&#039;&#039;: General listing of extension can be tedious if you&#039;re looking for a particular extension out of the big list, however, you can beat down the numbers specifying the type of extensions you can the command to display by adding a type option to the command. Here is how that is done: {{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:list --type=language&amp;lt;/tt&amp;gt;{{-}}[[File:Extension list type.png|center|800px]]&lt;br /&gt;
This will list out only language based extensions, you can specify type as module, plugin and component as well.&lt;br /&gt;
&lt;br /&gt;
======Installing an Extension======&lt;br /&gt;
Joomla provides installing an extension through an URL to the zip file or a path to the file, the CLI Update provides both as well and how you can use them is described below.&lt;br /&gt;
*&#039;&#039;Installing from URL&#039;&#039;: To install an extension from URL we will run the command like this and provide an argument and option for the &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command.{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:install url --url=https://github.com/joomla-extensions/patchtester/releases/download/3.0.0-beta3/com_patchtester.zip&amp;lt;/tt&amp;gt;{{-}}This will download the &amp;lt;tt&amp;gt;com_patchtester&amp;lt;/tt&amp;gt; extension.&lt;br /&gt;
{{-}}[[File:Extension install url.png|center|800px]]&lt;br /&gt;
*&#039;&#039;Installing from a PATH&#039;&#039;:To install an extension from a PATH we will run the same &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command and specify arguments for paths like this:{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:install path --path=/Users/bosunski/docs/com_pathtester.zip&amp;lt;/tt&amp;gt; {{-}}[[File:Extension install path.png|center|800px]]&lt;br /&gt;
This loads the extension and performs the installation as expected.&lt;br /&gt;
&lt;br /&gt;
======Removing an extension======&lt;br /&gt;
The last command under this category is the &amp;lt;tt&amp;gt;extension:remove&amp;lt;/tt&amp;gt; command that is used to remove extensions from the Joomla CMS. This command takes in the &amp;lt;tt&amp;gt;extension_id&amp;lt;/tt&amp;gt; as an argument, you can always use the &amp;lt;tt&amp;gt;extension:list&amp;lt;/tt&amp;gt; to display extension id. This is how we remove an extension of id &amp;lt;tt&amp;gt;803&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php extension:remove 803&amp;lt;/tt&amp;gt;&lt;br /&gt;
[[File:Extension Remove.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Updating the Joomla Core====&lt;br /&gt;
As much as the CLI Update provides a command to check update, it also provides a command to perform the update if an update is available. To perform update we will just run this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php core:update&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
This command updates the Joomla core updating it to the latest version available.&lt;br /&gt;
&lt;br /&gt;
[[File:Core update.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Installing Joomla! via the CLI====&lt;br /&gt;
The next command here is the &amp;lt;tt&amp;gt;core:install&amp;lt;/tt&amp;gt; command that lets installation of Joomla CMS to be done via the CLI. This command can  work in 2 modes: The Interactive mode and the Non-interactive mode.&lt;br /&gt;
&lt;br /&gt;
=====Interactive installation=====&lt;br /&gt;
To have a fresh installation of Joomla using the interactive mode we will just run the &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command like so:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php extension:install&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The default installation mode will run and will ask you to input the settings as it&#039;s required, once all options have been provided and validated, the installations will run and Joomla will be installed.&lt;br /&gt;
&lt;br /&gt;
[[File:Core install interactive.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Non-interactive Installation=====&lt;br /&gt;
The next type of installation is the Non-interactive mode. In this mode you will not be asked to input the options but rather all options will be specified within a file and the command will take in an option that specifies the path to the file you want to load the options from, it&#039;s done like this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php core:install --file=/path/to/config.json&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Core install file.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
An example of the contents of &amp;lt;tt&amp;gt;config.json&amp;lt;/tt&amp;gt; can be:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;language&amp;quot;:&amp;quot;en-GB&amp;quot;,&lt;br /&gt;
  &amp;quot;site_name&amp;quot;:&amp;quot;Joomla&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_email&amp;quot;:&amp;quot;email@example.com&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_user&amp;quot;:&amp;quot;user&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_password&amp;quot;:&amp;quot;password&amp;quot;,&lt;br /&gt;
  &amp;quot;db_type&amp;quot;:&amp;quot;mysql&amp;quot;,&lt;br /&gt;
  &amp;quot;db_host&amp;quot;:&amp;quot;localhost&amp;quot;,&lt;br /&gt;
  &amp;quot;db_user&amp;quot;:&amp;quot;root&amp;quot;,&lt;br /&gt;
  &amp;quot;db_pass&amp;quot;:&amp;quot;xcdxcx&amp;quot;,&lt;br /&gt;
  &amp;quot;db_name&amp;quot;:&amp;quot;jtest&amp;quot;,&lt;br /&gt;
  &amp;quot;db_prefix&amp;quot;:&amp;quot;efs0k_&amp;quot;,&lt;br /&gt;
  &amp;quot;db_old&amp;quot;:&amp;quot;remove&amp;quot;,&lt;br /&gt;
  &amp;quot;helpurl&amp;quot;:&amp;quot;https://joomla.org&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
OR as sample &amp;lt;tt&amp;gt;config.ini&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
site_name=&amp;quot;gsoc&amp;quot;&lt;br /&gt;
admin_email=&amp;quot;user@example.com&amp;quot;&lt;br /&gt;
admin_user=&amp;quot;user&amp;quot;&lt;br /&gt;
admin_password=&amp;quot;secret&amp;quot;&lt;br /&gt;
db_type=&amp;quot;mysql&amp;quot;&lt;br /&gt;
db_host=&amp;quot;localhost&amp;quot;&lt;br /&gt;
db_user=&amp;quot;root&amp;quot;&lt;br /&gt;
db_pass=&amp;quot;&amp;quot;&lt;br /&gt;
db_name=&amp;quot;joomla&amp;quot;&lt;br /&gt;
db_prefix=&amp;quot;prefix_&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The options defined are loaded and validated after which the installation will run.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Configuration based commands====&lt;br /&gt;
The next set of commands we will be looking at is for setting and viewing configuration options inside the Joomla installation:&lt;br /&gt;
&lt;br /&gt;
=====Setting configurations=====&lt;br /&gt;
The CLI Update provides a command to change the value of an option existing in the configuration. Using the &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command you can set any configuration option that exists inside the &amp;lt;tt&amp;gt;configuration.php&amp;lt;/tt&amp;gt;. This is how to use command:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:set mailer=mail&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Config set single.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
You can even add multiple option-value pairs like this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:set mailer=mail fromname=Joomla! sitename=&amp;quot;Joomla Site&amp;quot;&amp;lt;/tt&amp;gt;&lt;br /&gt;
This will set multiple options at once.&lt;br /&gt;
&lt;br /&gt;
[[File:Config set multiple.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Getting configurations=====&lt;br /&gt;
The next command in this category is the &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command, as the name suggests it gets the value of an option that exists inside the &amp;lt;tt&amp;gt;configuration.php&amp;lt;/tt&amp;gt;, when no argument is supplied to the command, it will display all the options available in a tabulated form. Here is the command:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get sitename&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return the value for the option &amp;lt;tt&amp;gt;sitename&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:011-cli.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return all the values for the available options.&lt;br /&gt;
&lt;br /&gt;
[[File:Config get all.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Getting grouped configurations=====&lt;br /&gt;
The CLI Update adds an option to &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command that allows us to get logically grouped options, say for example you want to view all your database related options, or you want to view all email related options. To achieve this the CLI Update provides an option to specify a group of options to display, here is how to do that: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get --group=mail&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Config get group.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
The command takes in the &amp;lt;tt&amp;gt;group&amp;lt;/tt&amp;gt; option and given the value of &amp;lt;tt&amp;gt;mail&amp;lt;/tt&amp;gt;. CLI Update currently supports group values: mail, db and session.&lt;br /&gt;
&lt;br /&gt;
====Site down and Site up commands====&lt;br /&gt;
As their name suggests, these commands allow you to quickly put your Joomla powered website into offline or online mode. Here is how to use the commands:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php site:up&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Site up.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php site:down&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Site down.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
The second command puts the website in offline mode while the first command brings the website to online mode.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Contributing to CLI Update as a developer==&lt;br /&gt;
&lt;br /&gt;
===Adding more commands===&lt;br /&gt;
The CLI Update ships with some commands which are added based on the need seen as of the time. However, the CLI Update allows other commands to be added easily and this is what this section is for. A video tutorial is included below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;video-container&amp;quot;&amp;gt;&lt;br /&gt;
{{#widget:YouTube|id=gcJJtTcPiTg}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Calling other commands within command classes===&lt;br /&gt;
Should in case a command you want to write for the CLI Update is going to be require that you call an existing command internally, this is how that can be achieved from within another command class:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
class RunHelloCommand extends AbstractCommand {&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
    public function execute(): int {&lt;br /&gt;
        $command = $this-&amp;gt;getApplication()-&amp;gt;getCommand(&#039;say:hello&#039;);&lt;br /&gt;
        $code = $command-&amp;gt;execute();&lt;br /&gt;
&lt;br /&gt;
        if($code === 0) {&lt;br /&gt;
            // command ran successfully, do something&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    ...&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here, we&#039;re attempting to call the &amp;lt;tt&amp;gt;say:hello&amp;lt;/tt&amp;gt; command created in the Video above.&lt;br /&gt;
&lt;br /&gt;
===Some important things to checkout===&lt;br /&gt;
*Symfony Style Documentation: [https://symfony.com/doc/current/console/style.html How to Style a Console Command]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Google Summer of Code 2018]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Joomla!_4.x]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Translations:J4.x:CLI_Update/17/fr&amp;diff=636556</id>
		<title>Translations:J4.x:CLI Update/17/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Translations:J4.x:CLI_Update/17/fr&amp;diff=636556"/>
		<updated>2019-10-19T11:43:18Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: Created page with &amp;quot;====Commandes des composants====&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;====Commandes des composants====&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Update/fr&amp;diff=636549</id>
		<title>J4.x:CLI Update/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Update/fr&amp;diff=636549"/>
		<updated>2019-10-19T11:42:57Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: Created page with &amp;quot;La commande s&amp;#039;exécute et la sortie affiche une version de mise à jour disponible, si disponible, ou indique que l&amp;#039;installation actuelle est à jour.&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{Top portal heading|color=white-bkgd|text-color=#333|title=&lt;br /&gt;
GSoC 2018 &amp;lt;br /&amp;gt;&lt;br /&gt;
Documentation&amp;lt;br /&amp;gt;sur les lignes de commande}}&lt;br /&gt;
[[Image:Gsoc2016.png|75px|center|link=GSOC 2018]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;{{Joomla version|version=4.x}}&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Pour effectuer une tâche mineure dans Joomla!, le tableau de bord de l&#039;administrateur peut sembler fastidieux et lent. La mise à jour de l&#039;application CLI introduit un moyen plus rapide d&#039;effectuer certaines de ces opérations via la ligne de commande. Cela offre un moyen d&#039;intégrer les choses plus rapidement dans l&#039;application Joomla!. Grâce à ce logiciel, les petits tests peuvent être effectués plus rapidement sans passer par le processus du tableau de bord Web. C’est une application CLI pour Joomla! CMS qui permet à l&#039;utilisateur d&#039;effectuer des mises à jour dans le CMS.&lt;br /&gt;
&lt;br /&gt;
Cette documentation montre comment utiliser la mise à jour de l&#039;application CLI et comment étendre ses fonctionnalités en tant que développeur.&lt;br /&gt;
&lt;br /&gt;
===Pré-requis===&lt;br /&gt;
Comme c&#039;est le cas pour toutes les applications CLI (Command Line Interface), l&#039;accès à votre installation Joomla! via la ligne de commande est nécessaire pour utiliser les outils fournis par le CLI Update.&lt;br /&gt;
Vous devriez peut-être envisager d&#039;avoir un accès SSH pour votre serveur en direct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Termes et définitions===&lt;br /&gt;
*CLI - Command Line Interface&lt;br /&gt;
*SSH - Secure SHell&lt;br /&gt;
&lt;br /&gt;
==Utilisation de la mise-à-jour en mode CLI==&lt;br /&gt;
In other for you to use the tools provided by CLI Update, as said in former section, you need access to a CLI into the root of the Joomla Installation. In other words you have to be in the root folder of your Joomla CMS as all commands will run from the root folder.&lt;br /&gt;
[[File:All commands.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
==Utilisation des commandes générales==&lt;br /&gt;
Dans cette section, nous parlerons de l&#039;utilisation des commandes, nous parlerons des différentes commandes, de ce qu&#039;elles sont et comment vous pouvez les utiliser. Nous irons voir les commandes disponibles dans la mise à jour de CLI.&lt;br /&gt;
&lt;br /&gt;
===Commandes disponibles===&lt;br /&gt;
Il y a un certain nombre de commandes disponibles dans la mise à jour de CLI qui sont prêtes à l&#039;emploi. Ces commandes sont regroupées en fonction de la zone du CMS Joomla ! qu&#039;elles touchent.&lt;br /&gt;
&lt;br /&gt;
====Vérification des mises à jour mises à jour====&lt;br /&gt;
La mise à jour de CLI fournit une commande pour vérifier les mises à jour de Joomla!, elle fonctionne comme la version web de &amp;lt;tt&amp;gt;com_joomlaupdate&amp;lt;/tt&amp;gt;, elle récupère la mise à jour et indique si la mise à jour est disponible ou pas. Pour lancer la vérification de mise à jour, nous allons simplement lancer la commande comme ceci à partir du répertoire racine :&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php check-updates&amp;lt;/tt&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
La commande s&#039;exécute et la sortie affiche une version de mise à jour disponible, si disponible, ou indique que l&#039;installation actuelle est à jour.&lt;br /&gt;
[[File:Check updates.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Extension commands==== &lt;br /&gt;
The next group of commands are the extension based commands, simply put, the commands allows us to manage extensions within the Jommla! core, the CLI Update ships with commands to install, list and remove extensions.&lt;br /&gt;
&lt;br /&gt;
======Listing installed extensions======&lt;br /&gt;
This command allows us to list all installed extensions. This command can run in two different ways which are:&lt;br /&gt;
*&#039;&#039;General Listing&#039;&#039;: Lists all the extensions installed, by extensions it means components, languages, plugins, modules will be listed together when you run this command. This is how you call the command:{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:list&amp;lt;/tt/&amp;gt; {{-}}[[File:Extension list.png|center|800px]]&lt;br /&gt;
*&#039;&#039;Listing By types&#039;&#039;: General listing of extension can be tedious if you&#039;re looking for a particular extension out of the big list, however, you can beat down the numbers specifying the type of extensions you can the command to display by adding a type option to the command. Here is how that is done: {{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:list --type=language&amp;lt;/tt&amp;gt;{{-}}[[File:Extension list type.png|center|800px]]&lt;br /&gt;
This will list out only language based extensions, you can specify type as module, plugin and component as well.&lt;br /&gt;
&lt;br /&gt;
======Installing an Extension======&lt;br /&gt;
Joomla provides installing an extension through an URL to the zip file or a path to the file, the CLI Update provides both as well and how you can use them is described below.&lt;br /&gt;
*&#039;&#039;Installing from URL&#039;&#039;: To install an extension from URL we will run the command like this and provide an argument and option for the &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command.{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:install url --url=https://github.com/joomla-extensions/patchtester/releases/download/3.0.0-beta3/com_patchtester.zip&amp;lt;/tt&amp;gt;{{-}}This will download the &amp;lt;tt&amp;gt;com_patchtester&amp;lt;/tt&amp;gt; extension.&lt;br /&gt;
{{-}}[[File:Extension install url.png|center|800px]]&lt;br /&gt;
*&#039;&#039;Installing from a PATH&#039;&#039;:To install an extension from a PATH we will run the same &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command and specify arguments for paths like this:{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:install path --path=/Users/bosunski/docs/com_pathtester.zip&amp;lt;/tt&amp;gt; {{-}}[[File:Extension install path.png|center|800px]]&lt;br /&gt;
This loads the extension and performs the installation as expected.&lt;br /&gt;
&lt;br /&gt;
======Removing an extension======&lt;br /&gt;
The last command under this category is the &amp;lt;tt&amp;gt;extension:remove&amp;lt;/tt&amp;gt; command that is used to remove extensions from the Joomla CMS. This command takes in the &amp;lt;tt&amp;gt;extension_id&amp;lt;/tt&amp;gt; as an argument, you can always use the &amp;lt;tt&amp;gt;extension:list&amp;lt;/tt&amp;gt; to display extension id. This is how we remove an extension of id &amp;lt;tt&amp;gt;803&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php extension:remove 803&amp;lt;/tt&amp;gt;&lt;br /&gt;
[[File:Extension Remove.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Updating the Joomla Core====&lt;br /&gt;
As much as the CLI Update provides a command to check update, it also provides a command to perform the update if an update is available. To perform update we will just run this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php core:update&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
This command updates the Joomla core updating it to the latest version available.&lt;br /&gt;
&lt;br /&gt;
[[File:Core update.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Installing Joomla! via the CLI====&lt;br /&gt;
The next command here is the &amp;lt;tt&amp;gt;core:install&amp;lt;/tt&amp;gt; command that lets installation of Joomla CMS to be done via the CLI. This command can  work in 2 modes: The Interactive mode and the Non-interactive mode.&lt;br /&gt;
&lt;br /&gt;
=====Interactive installation=====&lt;br /&gt;
To have a fresh installation of Joomla using the interactive mode we will just run the &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command like so:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php extension:install&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The default installation mode will run and will ask you to input the settings as it&#039;s required, once all options have been provided and validated, the installations will run and Joomla will be installed.&lt;br /&gt;
&lt;br /&gt;
[[File:Core install interactive.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Non-interactive Installation=====&lt;br /&gt;
The next type of installation is the Non-interactive mode. In this mode you will not be asked to input the options but rather all options will be specified within a file and the command will take in an option that specifies the path to the file you want to load the options from, it&#039;s done like this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php core:install --file=/path/to/config.json&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Core install file.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
An example of the contents of &amp;lt;tt&amp;gt;config.json&amp;lt;/tt&amp;gt; can be:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;language&amp;quot;:&amp;quot;en-GB&amp;quot;,&lt;br /&gt;
  &amp;quot;site_name&amp;quot;:&amp;quot;Joomla&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_email&amp;quot;:&amp;quot;email@example.com&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_user&amp;quot;:&amp;quot;user&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_password&amp;quot;:&amp;quot;password&amp;quot;,&lt;br /&gt;
  &amp;quot;db_type&amp;quot;:&amp;quot;mysql&amp;quot;,&lt;br /&gt;
  &amp;quot;db_host&amp;quot;:&amp;quot;localhost&amp;quot;,&lt;br /&gt;
  &amp;quot;db_user&amp;quot;:&amp;quot;root&amp;quot;,&lt;br /&gt;
  &amp;quot;db_pass&amp;quot;:&amp;quot;xcdxcx&amp;quot;,&lt;br /&gt;
  &amp;quot;db_name&amp;quot;:&amp;quot;jtest&amp;quot;,&lt;br /&gt;
  &amp;quot;db_prefix&amp;quot;:&amp;quot;efs0k_&amp;quot;,&lt;br /&gt;
  &amp;quot;db_old&amp;quot;:&amp;quot;remove&amp;quot;,&lt;br /&gt;
  &amp;quot;helpurl&amp;quot;:&amp;quot;https://joomla.org&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
OR as sample &amp;lt;tt&amp;gt;config.ini&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
site_name=&amp;quot;gsoc&amp;quot;&lt;br /&gt;
admin_email=&amp;quot;user@example.com&amp;quot;&lt;br /&gt;
admin_user=&amp;quot;user&amp;quot;&lt;br /&gt;
admin_password=&amp;quot;secret&amp;quot;&lt;br /&gt;
db_type=&amp;quot;mysql&amp;quot;&lt;br /&gt;
db_host=&amp;quot;localhost&amp;quot;&lt;br /&gt;
db_user=&amp;quot;root&amp;quot;&lt;br /&gt;
db_pass=&amp;quot;&amp;quot;&lt;br /&gt;
db_name=&amp;quot;joomla&amp;quot;&lt;br /&gt;
db_prefix=&amp;quot;prefix_&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The options defined are loaded and validated after which the installation will run.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Configuration based commands====&lt;br /&gt;
The next set of commands we will be looking at is for setting and viewing configuration options inside the Joomla installation:&lt;br /&gt;
&lt;br /&gt;
=====Setting configurations=====&lt;br /&gt;
The CLI Update provides a command to change the value of an option existing in the configuration. Using the &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command you can set any configuration option that exists inside the &amp;lt;tt&amp;gt;configuration.php&amp;lt;/tt&amp;gt;. This is how to use command:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:set mailer=mail&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Config set single.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
You can even add multiple option-value pairs like this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:set mailer=mail fromname=Joomla! sitename=&amp;quot;Joomla Site&amp;quot;&amp;lt;/tt&amp;gt;&lt;br /&gt;
This will set multiple options at once.&lt;br /&gt;
&lt;br /&gt;
[[File:Config set multiple.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Getting configurations=====&lt;br /&gt;
The next command in this category is the &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command, as the name suggests it gets the value of an option that exists inside the &amp;lt;tt&amp;gt;configuration.php&amp;lt;/tt&amp;gt;, when no argument is supplied to the command, it will display all the options available in a tabulated form. Here is the command:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get sitename&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return the value for the option &amp;lt;tt&amp;gt;sitename&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:011-cli.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return all the values for the available options.&lt;br /&gt;
&lt;br /&gt;
[[File:Config get all.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Getting grouped configurations=====&lt;br /&gt;
The CLI Update adds an option to &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command that allows us to get logically grouped options, say for example you want to view all your database related options, or you want to view all email related options. To achieve this the CLI Update provides an option to specify a group of options to display, here is how to do that: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get --group=mail&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Config get group.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
The command takes in the &amp;lt;tt&amp;gt;group&amp;lt;/tt&amp;gt; option and given the value of &amp;lt;tt&amp;gt;mail&amp;lt;/tt&amp;gt;. CLI Update currently supports group values: mail, db and session.&lt;br /&gt;
&lt;br /&gt;
====Site down and Site up commands====&lt;br /&gt;
As their name suggests, these commands allow you to quickly put your Joomla powered website into offline or online mode. Here is how to use the commands:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php site:up&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Site up.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php site:down&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Site down.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
The second command puts the website in offline mode while the first command brings the website to online mode.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Contributing to CLI Update as a developer==&lt;br /&gt;
&lt;br /&gt;
===Adding more commands===&lt;br /&gt;
The CLI Update ships with some commands which are added based on the need seen as of the time. However, the CLI Update allows other commands to be added easily and this is what this section is for. A video tutorial is included below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;video-container&amp;quot;&amp;gt;&lt;br /&gt;
{{#widget:YouTube|id=gcJJtTcPiTg}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Calling other commands within command classes===&lt;br /&gt;
Should in case a command you want to write for the CLI Update is going to be require that you call an existing command internally, this is how that can be achieved from within another command class:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
class RunHelloCommand extends AbstractCommand {&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
    public function execute(): int {&lt;br /&gt;
        $command = $this-&amp;gt;getApplication()-&amp;gt;getCommand(&#039;say:hello&#039;);&lt;br /&gt;
        $code = $command-&amp;gt;execute();&lt;br /&gt;
&lt;br /&gt;
        if($code === 0) {&lt;br /&gt;
            // command ran successfully, do something&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    ...&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here, we&#039;re attempting to call the &amp;lt;tt&amp;gt;say:hello&amp;lt;/tt&amp;gt; command created in the Video above.&lt;br /&gt;
&lt;br /&gt;
===Some important things to checkout===&lt;br /&gt;
*Symfony Style Documentation: [https://symfony.com/doc/current/console/style.html How to Style a Console Command]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Google Summer of Code 2018]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Joomla!_4.x]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Translations:J4.x:CLI_Update/16/fr&amp;diff=636548</id>
		<title>Translations:J4.x:CLI Update/16/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Translations:J4.x:CLI_Update/16/fr&amp;diff=636548"/>
		<updated>2019-10-19T11:42:57Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: Created page with &amp;quot;La commande s&amp;#039;exécute et la sortie affiche une version de mise à jour disponible, si disponible, ou indique que l&amp;#039;installation actuelle est à jour.&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;La commande s&#039;exécute et la sortie affiche une version de mise à jour disponible, si disponible, ou indique que l&#039;installation actuelle est à jour.&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Update/fr&amp;diff=636542</id>
		<title>J4.x:CLI Update/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Update/fr&amp;diff=636542"/>
		<updated>2019-10-19T11:42:39Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: Created page with &amp;quot;La mise à jour de CLI fournit une commande pour vérifier les mises à jour de Joomla!, elle fonctionne comme la version web de &amp;lt;tt&amp;gt;com_joomlaupdate&amp;lt;/tt&amp;gt;, elle récupère la...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{Top portal heading|color=white-bkgd|text-color=#333|title=&lt;br /&gt;
GSoC 2018 &amp;lt;br /&amp;gt;&lt;br /&gt;
Documentation&amp;lt;br /&amp;gt;sur les lignes de commande}}&lt;br /&gt;
[[Image:Gsoc2016.png|75px|center|link=GSOC 2018]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;{{Joomla version|version=4.x}}&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Pour effectuer une tâche mineure dans Joomla!, le tableau de bord de l&#039;administrateur peut sembler fastidieux et lent. La mise à jour de l&#039;application CLI introduit un moyen plus rapide d&#039;effectuer certaines de ces opérations via la ligne de commande. Cela offre un moyen d&#039;intégrer les choses plus rapidement dans l&#039;application Joomla!. Grâce à ce logiciel, les petits tests peuvent être effectués plus rapidement sans passer par le processus du tableau de bord Web. C’est une application CLI pour Joomla! CMS qui permet à l&#039;utilisateur d&#039;effectuer des mises à jour dans le CMS.&lt;br /&gt;
&lt;br /&gt;
Cette documentation montre comment utiliser la mise à jour de l&#039;application CLI et comment étendre ses fonctionnalités en tant que développeur.&lt;br /&gt;
&lt;br /&gt;
===Pré-requis===&lt;br /&gt;
Comme c&#039;est le cas pour toutes les applications CLI (Command Line Interface), l&#039;accès à votre installation Joomla! via la ligne de commande est nécessaire pour utiliser les outils fournis par le CLI Update.&lt;br /&gt;
Vous devriez peut-être envisager d&#039;avoir un accès SSH pour votre serveur en direct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Termes et définitions===&lt;br /&gt;
*CLI - Command Line Interface&lt;br /&gt;
*SSH - Secure SHell&lt;br /&gt;
&lt;br /&gt;
==Utilisation de la mise-à-jour en mode CLI==&lt;br /&gt;
In other for you to use the tools provided by CLI Update, as said in former section, you need access to a CLI into the root of the Joomla Installation. In other words you have to be in the root folder of your Joomla CMS as all commands will run from the root folder.&lt;br /&gt;
[[File:All commands.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
==Utilisation des commandes générales==&lt;br /&gt;
Dans cette section, nous parlerons de l&#039;utilisation des commandes, nous parlerons des différentes commandes, de ce qu&#039;elles sont et comment vous pouvez les utiliser. Nous irons voir les commandes disponibles dans la mise à jour de CLI.&lt;br /&gt;
&lt;br /&gt;
===Commandes disponibles===&lt;br /&gt;
Il y a un certain nombre de commandes disponibles dans la mise à jour de CLI qui sont prêtes à l&#039;emploi. Ces commandes sont regroupées en fonction de la zone du CMS Joomla ! qu&#039;elles touchent.&lt;br /&gt;
&lt;br /&gt;
====Vérification des mises à jour mises à jour====&lt;br /&gt;
La mise à jour de CLI fournit une commande pour vérifier les mises à jour de Joomla!, elle fonctionne comme la version web de &amp;lt;tt&amp;gt;com_joomlaupdate&amp;lt;/tt&amp;gt;, elle récupère la mise à jour et indique si la mise à jour est disponible ou pas. Pour lancer la vérification de mise à jour, nous allons simplement lancer la commande comme ceci à partir du répertoire racine :&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php check-updates&amp;lt;/tt&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The command runs and the output displays an available update version, if available, or tell otherwise that the current installation is up to date.&lt;br /&gt;
[[File:Check updates.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Extension commands==== &lt;br /&gt;
The next group of commands are the extension based commands, simply put, the commands allows us to manage extensions within the Jommla! core, the CLI Update ships with commands to install, list and remove extensions.&lt;br /&gt;
&lt;br /&gt;
======Listing installed extensions======&lt;br /&gt;
This command allows us to list all installed extensions. This command can run in two different ways which are:&lt;br /&gt;
*&#039;&#039;General Listing&#039;&#039;: Lists all the extensions installed, by extensions it means components, languages, plugins, modules will be listed together when you run this command. This is how you call the command:{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:list&amp;lt;/tt/&amp;gt; {{-}}[[File:Extension list.png|center|800px]]&lt;br /&gt;
*&#039;&#039;Listing By types&#039;&#039;: General listing of extension can be tedious if you&#039;re looking for a particular extension out of the big list, however, you can beat down the numbers specifying the type of extensions you can the command to display by adding a type option to the command. Here is how that is done: {{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:list --type=language&amp;lt;/tt&amp;gt;{{-}}[[File:Extension list type.png|center|800px]]&lt;br /&gt;
This will list out only language based extensions, you can specify type as module, plugin and component as well.&lt;br /&gt;
&lt;br /&gt;
======Installing an Extension======&lt;br /&gt;
Joomla provides installing an extension through an URL to the zip file or a path to the file, the CLI Update provides both as well and how you can use them is described below.&lt;br /&gt;
*&#039;&#039;Installing from URL&#039;&#039;: To install an extension from URL we will run the command like this and provide an argument and option for the &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command.{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:install url --url=https://github.com/joomla-extensions/patchtester/releases/download/3.0.0-beta3/com_patchtester.zip&amp;lt;/tt&amp;gt;{{-}}This will download the &amp;lt;tt&amp;gt;com_patchtester&amp;lt;/tt&amp;gt; extension.&lt;br /&gt;
{{-}}[[File:Extension install url.png|center|800px]]&lt;br /&gt;
*&#039;&#039;Installing from a PATH&#039;&#039;:To install an extension from a PATH we will run the same &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command and specify arguments for paths like this:{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:install path --path=/Users/bosunski/docs/com_pathtester.zip&amp;lt;/tt&amp;gt; {{-}}[[File:Extension install path.png|center|800px]]&lt;br /&gt;
This loads the extension and performs the installation as expected.&lt;br /&gt;
&lt;br /&gt;
======Removing an extension======&lt;br /&gt;
The last command under this category is the &amp;lt;tt&amp;gt;extension:remove&amp;lt;/tt&amp;gt; command that is used to remove extensions from the Joomla CMS. This command takes in the &amp;lt;tt&amp;gt;extension_id&amp;lt;/tt&amp;gt; as an argument, you can always use the &amp;lt;tt&amp;gt;extension:list&amp;lt;/tt&amp;gt; to display extension id. This is how we remove an extension of id &amp;lt;tt&amp;gt;803&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php extension:remove 803&amp;lt;/tt&amp;gt;&lt;br /&gt;
[[File:Extension Remove.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Updating the Joomla Core====&lt;br /&gt;
As much as the CLI Update provides a command to check update, it also provides a command to perform the update if an update is available. To perform update we will just run this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php core:update&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
This command updates the Joomla core updating it to the latest version available.&lt;br /&gt;
&lt;br /&gt;
[[File:Core update.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Installing Joomla! via the CLI====&lt;br /&gt;
The next command here is the &amp;lt;tt&amp;gt;core:install&amp;lt;/tt&amp;gt; command that lets installation of Joomla CMS to be done via the CLI. This command can  work in 2 modes: The Interactive mode and the Non-interactive mode.&lt;br /&gt;
&lt;br /&gt;
=====Interactive installation=====&lt;br /&gt;
To have a fresh installation of Joomla using the interactive mode we will just run the &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command like so:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php extension:install&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The default installation mode will run and will ask you to input the settings as it&#039;s required, once all options have been provided and validated, the installations will run and Joomla will be installed.&lt;br /&gt;
&lt;br /&gt;
[[File:Core install interactive.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Non-interactive Installation=====&lt;br /&gt;
The next type of installation is the Non-interactive mode. In this mode you will not be asked to input the options but rather all options will be specified within a file and the command will take in an option that specifies the path to the file you want to load the options from, it&#039;s done like this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php core:install --file=/path/to/config.json&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Core install file.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
An example of the contents of &amp;lt;tt&amp;gt;config.json&amp;lt;/tt&amp;gt; can be:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;language&amp;quot;:&amp;quot;en-GB&amp;quot;,&lt;br /&gt;
  &amp;quot;site_name&amp;quot;:&amp;quot;Joomla&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_email&amp;quot;:&amp;quot;email@example.com&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_user&amp;quot;:&amp;quot;user&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_password&amp;quot;:&amp;quot;password&amp;quot;,&lt;br /&gt;
  &amp;quot;db_type&amp;quot;:&amp;quot;mysql&amp;quot;,&lt;br /&gt;
  &amp;quot;db_host&amp;quot;:&amp;quot;localhost&amp;quot;,&lt;br /&gt;
  &amp;quot;db_user&amp;quot;:&amp;quot;root&amp;quot;,&lt;br /&gt;
  &amp;quot;db_pass&amp;quot;:&amp;quot;xcdxcx&amp;quot;,&lt;br /&gt;
  &amp;quot;db_name&amp;quot;:&amp;quot;jtest&amp;quot;,&lt;br /&gt;
  &amp;quot;db_prefix&amp;quot;:&amp;quot;efs0k_&amp;quot;,&lt;br /&gt;
  &amp;quot;db_old&amp;quot;:&amp;quot;remove&amp;quot;,&lt;br /&gt;
  &amp;quot;helpurl&amp;quot;:&amp;quot;https://joomla.org&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
OR as sample &amp;lt;tt&amp;gt;config.ini&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
site_name=&amp;quot;gsoc&amp;quot;&lt;br /&gt;
admin_email=&amp;quot;user@example.com&amp;quot;&lt;br /&gt;
admin_user=&amp;quot;user&amp;quot;&lt;br /&gt;
admin_password=&amp;quot;secret&amp;quot;&lt;br /&gt;
db_type=&amp;quot;mysql&amp;quot;&lt;br /&gt;
db_host=&amp;quot;localhost&amp;quot;&lt;br /&gt;
db_user=&amp;quot;root&amp;quot;&lt;br /&gt;
db_pass=&amp;quot;&amp;quot;&lt;br /&gt;
db_name=&amp;quot;joomla&amp;quot;&lt;br /&gt;
db_prefix=&amp;quot;prefix_&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The options defined are loaded and validated after which the installation will run.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Configuration based commands====&lt;br /&gt;
The next set of commands we will be looking at is for setting and viewing configuration options inside the Joomla installation:&lt;br /&gt;
&lt;br /&gt;
=====Setting configurations=====&lt;br /&gt;
The CLI Update provides a command to change the value of an option existing in the configuration. Using the &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command you can set any configuration option that exists inside the &amp;lt;tt&amp;gt;configuration.php&amp;lt;/tt&amp;gt;. This is how to use command:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:set mailer=mail&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Config set single.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
You can even add multiple option-value pairs like this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:set mailer=mail fromname=Joomla! sitename=&amp;quot;Joomla Site&amp;quot;&amp;lt;/tt&amp;gt;&lt;br /&gt;
This will set multiple options at once.&lt;br /&gt;
&lt;br /&gt;
[[File:Config set multiple.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Getting configurations=====&lt;br /&gt;
The next command in this category is the &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command, as the name suggests it gets the value of an option that exists inside the &amp;lt;tt&amp;gt;configuration.php&amp;lt;/tt&amp;gt;, when no argument is supplied to the command, it will display all the options available in a tabulated form. Here is the command:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get sitename&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return the value for the option &amp;lt;tt&amp;gt;sitename&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:011-cli.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return all the values for the available options.&lt;br /&gt;
&lt;br /&gt;
[[File:Config get all.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Getting grouped configurations=====&lt;br /&gt;
The CLI Update adds an option to &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command that allows us to get logically grouped options, say for example you want to view all your database related options, or you want to view all email related options. To achieve this the CLI Update provides an option to specify a group of options to display, here is how to do that: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get --group=mail&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Config get group.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
The command takes in the &amp;lt;tt&amp;gt;group&amp;lt;/tt&amp;gt; option and given the value of &amp;lt;tt&amp;gt;mail&amp;lt;/tt&amp;gt;. CLI Update currently supports group values: mail, db and session.&lt;br /&gt;
&lt;br /&gt;
====Site down and Site up commands====&lt;br /&gt;
As their name suggests, these commands allow you to quickly put your Joomla powered website into offline or online mode. Here is how to use the commands:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php site:up&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Site up.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php site:down&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Site down.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
The second command puts the website in offline mode while the first command brings the website to online mode.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Contributing to CLI Update as a developer==&lt;br /&gt;
&lt;br /&gt;
===Adding more commands===&lt;br /&gt;
The CLI Update ships with some commands which are added based on the need seen as of the time. However, the CLI Update allows other commands to be added easily and this is what this section is for. A video tutorial is included below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;video-container&amp;quot;&amp;gt;&lt;br /&gt;
{{#widget:YouTube|id=gcJJtTcPiTg}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Calling other commands within command classes===&lt;br /&gt;
Should in case a command you want to write for the CLI Update is going to be require that you call an existing command internally, this is how that can be achieved from within another command class:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
class RunHelloCommand extends AbstractCommand {&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
    public function execute(): int {&lt;br /&gt;
        $command = $this-&amp;gt;getApplication()-&amp;gt;getCommand(&#039;say:hello&#039;);&lt;br /&gt;
        $code = $command-&amp;gt;execute();&lt;br /&gt;
&lt;br /&gt;
        if($code === 0) {&lt;br /&gt;
            // command ran successfully, do something&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    ...&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here, we&#039;re attempting to call the &amp;lt;tt&amp;gt;say:hello&amp;lt;/tt&amp;gt; command created in the Video above.&lt;br /&gt;
&lt;br /&gt;
===Some important things to checkout===&lt;br /&gt;
*Symfony Style Documentation: [https://symfony.com/doc/current/console/style.html How to Style a Console Command]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Google Summer of Code 2018]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Joomla!_4.x]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Translations:J4.x:CLI_Update/15/fr&amp;diff=636541</id>
		<title>Translations:J4.x:CLI Update/15/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Translations:J4.x:CLI_Update/15/fr&amp;diff=636541"/>
		<updated>2019-10-19T11:42:38Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: Created page with &amp;quot;La mise à jour de CLI fournit une commande pour vérifier les mises à jour de Joomla!, elle fonctionne comme la version web de &amp;lt;tt&amp;gt;com_joomlaupdate&amp;lt;/tt&amp;gt;, elle récupère la...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;La mise à jour de CLI fournit une commande pour vérifier les mises à jour de Joomla!, elle fonctionne comme la version web de &amp;lt;tt&amp;gt;com_joomlaupdate&amp;lt;/tt&amp;gt;, elle récupère la mise à jour et indique si la mise à jour est disponible ou pas. Pour lancer la vérification de mise à jour, nous allons simplement lancer la commande comme ceci à partir du répertoire racine :&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Update/fr&amp;diff=636532</id>
		<title>J4.x:CLI Update/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Update/fr&amp;diff=636532"/>
		<updated>2019-10-19T11:41:18Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: Created page with &amp;quot;====Vérification des mises à jour mises à jour====&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{Top portal heading|color=white-bkgd|text-color=#333|title=&lt;br /&gt;
GSoC 2018 &amp;lt;br /&amp;gt;&lt;br /&gt;
Documentation&amp;lt;br /&amp;gt;sur les lignes de commande}}&lt;br /&gt;
[[Image:Gsoc2016.png|75px|center|link=GSOC 2018]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;{{Joomla version|version=4.x}}&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Pour effectuer une tâche mineure dans Joomla!, le tableau de bord de l&#039;administrateur peut sembler fastidieux et lent. La mise à jour de l&#039;application CLI introduit un moyen plus rapide d&#039;effectuer certaines de ces opérations via la ligne de commande. Cela offre un moyen d&#039;intégrer les choses plus rapidement dans l&#039;application Joomla!. Grâce à ce logiciel, les petits tests peuvent être effectués plus rapidement sans passer par le processus du tableau de bord Web. C’est une application CLI pour Joomla! CMS qui permet à l&#039;utilisateur d&#039;effectuer des mises à jour dans le CMS.&lt;br /&gt;
&lt;br /&gt;
Cette documentation montre comment utiliser la mise à jour de l&#039;application CLI et comment étendre ses fonctionnalités en tant que développeur.&lt;br /&gt;
&lt;br /&gt;
===Pré-requis===&lt;br /&gt;
Comme c&#039;est le cas pour toutes les applications CLI (Command Line Interface), l&#039;accès à votre installation Joomla! via la ligne de commande est nécessaire pour utiliser les outils fournis par le CLI Update.&lt;br /&gt;
Vous devriez peut-être envisager d&#039;avoir un accès SSH pour votre serveur en direct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Termes et définitions===&lt;br /&gt;
*CLI - Command Line Interface&lt;br /&gt;
*SSH - Secure SHell&lt;br /&gt;
&lt;br /&gt;
==Utilisation de la mise-à-jour en mode CLI==&lt;br /&gt;
In other for you to use the tools provided by CLI Update, as said in former section, you need access to a CLI into the root of the Joomla Installation. In other words you have to be in the root folder of your Joomla CMS as all commands will run from the root folder.&lt;br /&gt;
[[File:All commands.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
==Utilisation des commandes générales==&lt;br /&gt;
Dans cette section, nous parlerons de l&#039;utilisation des commandes, nous parlerons des différentes commandes, de ce qu&#039;elles sont et comment vous pouvez les utiliser. Nous irons voir les commandes disponibles dans la mise à jour de CLI.&lt;br /&gt;
&lt;br /&gt;
===Commandes disponibles===&lt;br /&gt;
Il y a un certain nombre de commandes disponibles dans la mise à jour de CLI qui sont prêtes à l&#039;emploi. Ces commandes sont regroupées en fonction de la zone du CMS Joomla ! qu&#039;elles touchent.&lt;br /&gt;
&lt;br /&gt;
====Vérification des mises à jour mises à jour====&lt;br /&gt;
The CLI Update provides a command to check for Joomla! updates, it works just like the web version of &amp;lt;tt&amp;gt;com_joomlaupdate&amp;lt;/tt&amp;gt;, it retrieves update and tells if update is available or not. To run the update check, we will just issue the command like this from the root directory:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php check-updates&amp;lt;/tt&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The command runs and the output displays an available update version, if available, or tell otherwise that the current installation is up to date.&lt;br /&gt;
[[File:Check updates.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Extension commands==== &lt;br /&gt;
The next group of commands are the extension based commands, simply put, the commands allows us to manage extensions within the Jommla! core, the CLI Update ships with commands to install, list and remove extensions.&lt;br /&gt;
&lt;br /&gt;
======Listing installed extensions======&lt;br /&gt;
This command allows us to list all installed extensions. This command can run in two different ways which are:&lt;br /&gt;
*&#039;&#039;General Listing&#039;&#039;: Lists all the extensions installed, by extensions it means components, languages, plugins, modules will be listed together when you run this command. This is how you call the command:{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:list&amp;lt;/tt/&amp;gt; {{-}}[[File:Extension list.png|center|800px]]&lt;br /&gt;
*&#039;&#039;Listing By types&#039;&#039;: General listing of extension can be tedious if you&#039;re looking for a particular extension out of the big list, however, you can beat down the numbers specifying the type of extensions you can the command to display by adding a type option to the command. Here is how that is done: {{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:list --type=language&amp;lt;/tt&amp;gt;{{-}}[[File:Extension list type.png|center|800px]]&lt;br /&gt;
This will list out only language based extensions, you can specify type as module, plugin and component as well.&lt;br /&gt;
&lt;br /&gt;
======Installing an Extension======&lt;br /&gt;
Joomla provides installing an extension through an URL to the zip file or a path to the file, the CLI Update provides both as well and how you can use them is described below.&lt;br /&gt;
*&#039;&#039;Installing from URL&#039;&#039;: To install an extension from URL we will run the command like this and provide an argument and option for the &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command.{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:install url --url=https://github.com/joomla-extensions/patchtester/releases/download/3.0.0-beta3/com_patchtester.zip&amp;lt;/tt&amp;gt;{{-}}This will download the &amp;lt;tt&amp;gt;com_patchtester&amp;lt;/tt&amp;gt; extension.&lt;br /&gt;
{{-}}[[File:Extension install url.png|center|800px]]&lt;br /&gt;
*&#039;&#039;Installing from a PATH&#039;&#039;:To install an extension from a PATH we will run the same &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command and specify arguments for paths like this:{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:install path --path=/Users/bosunski/docs/com_pathtester.zip&amp;lt;/tt&amp;gt; {{-}}[[File:Extension install path.png|center|800px]]&lt;br /&gt;
This loads the extension and performs the installation as expected.&lt;br /&gt;
&lt;br /&gt;
======Removing an extension======&lt;br /&gt;
The last command under this category is the &amp;lt;tt&amp;gt;extension:remove&amp;lt;/tt&amp;gt; command that is used to remove extensions from the Joomla CMS. This command takes in the &amp;lt;tt&amp;gt;extension_id&amp;lt;/tt&amp;gt; as an argument, you can always use the &amp;lt;tt&amp;gt;extension:list&amp;lt;/tt&amp;gt; to display extension id. This is how we remove an extension of id &amp;lt;tt&amp;gt;803&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php extension:remove 803&amp;lt;/tt&amp;gt;&lt;br /&gt;
[[File:Extension Remove.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Updating the Joomla Core====&lt;br /&gt;
As much as the CLI Update provides a command to check update, it also provides a command to perform the update if an update is available. To perform update we will just run this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php core:update&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
This command updates the Joomla core updating it to the latest version available.&lt;br /&gt;
&lt;br /&gt;
[[File:Core update.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Installing Joomla! via the CLI====&lt;br /&gt;
The next command here is the &amp;lt;tt&amp;gt;core:install&amp;lt;/tt&amp;gt; command that lets installation of Joomla CMS to be done via the CLI. This command can  work in 2 modes: The Interactive mode and the Non-interactive mode.&lt;br /&gt;
&lt;br /&gt;
=====Interactive installation=====&lt;br /&gt;
To have a fresh installation of Joomla using the interactive mode we will just run the &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command like so:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php extension:install&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The default installation mode will run and will ask you to input the settings as it&#039;s required, once all options have been provided and validated, the installations will run and Joomla will be installed.&lt;br /&gt;
&lt;br /&gt;
[[File:Core install interactive.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Non-interactive Installation=====&lt;br /&gt;
The next type of installation is the Non-interactive mode. In this mode you will not be asked to input the options but rather all options will be specified within a file and the command will take in an option that specifies the path to the file you want to load the options from, it&#039;s done like this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php core:install --file=/path/to/config.json&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Core install file.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
An example of the contents of &amp;lt;tt&amp;gt;config.json&amp;lt;/tt&amp;gt; can be:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;language&amp;quot;:&amp;quot;en-GB&amp;quot;,&lt;br /&gt;
  &amp;quot;site_name&amp;quot;:&amp;quot;Joomla&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_email&amp;quot;:&amp;quot;email@example.com&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_user&amp;quot;:&amp;quot;user&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_password&amp;quot;:&amp;quot;password&amp;quot;,&lt;br /&gt;
  &amp;quot;db_type&amp;quot;:&amp;quot;mysql&amp;quot;,&lt;br /&gt;
  &amp;quot;db_host&amp;quot;:&amp;quot;localhost&amp;quot;,&lt;br /&gt;
  &amp;quot;db_user&amp;quot;:&amp;quot;root&amp;quot;,&lt;br /&gt;
  &amp;quot;db_pass&amp;quot;:&amp;quot;xcdxcx&amp;quot;,&lt;br /&gt;
  &amp;quot;db_name&amp;quot;:&amp;quot;jtest&amp;quot;,&lt;br /&gt;
  &amp;quot;db_prefix&amp;quot;:&amp;quot;efs0k_&amp;quot;,&lt;br /&gt;
  &amp;quot;db_old&amp;quot;:&amp;quot;remove&amp;quot;,&lt;br /&gt;
  &amp;quot;helpurl&amp;quot;:&amp;quot;https://joomla.org&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
OR as sample &amp;lt;tt&amp;gt;config.ini&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
site_name=&amp;quot;gsoc&amp;quot;&lt;br /&gt;
admin_email=&amp;quot;user@example.com&amp;quot;&lt;br /&gt;
admin_user=&amp;quot;user&amp;quot;&lt;br /&gt;
admin_password=&amp;quot;secret&amp;quot;&lt;br /&gt;
db_type=&amp;quot;mysql&amp;quot;&lt;br /&gt;
db_host=&amp;quot;localhost&amp;quot;&lt;br /&gt;
db_user=&amp;quot;root&amp;quot;&lt;br /&gt;
db_pass=&amp;quot;&amp;quot;&lt;br /&gt;
db_name=&amp;quot;joomla&amp;quot;&lt;br /&gt;
db_prefix=&amp;quot;prefix_&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The options defined are loaded and validated after which the installation will run.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Configuration based commands====&lt;br /&gt;
The next set of commands we will be looking at is for setting and viewing configuration options inside the Joomla installation:&lt;br /&gt;
&lt;br /&gt;
=====Setting configurations=====&lt;br /&gt;
The CLI Update provides a command to change the value of an option existing in the configuration. Using the &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command you can set any configuration option that exists inside the &amp;lt;tt&amp;gt;configuration.php&amp;lt;/tt&amp;gt;. This is how to use command:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:set mailer=mail&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Config set single.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
You can even add multiple option-value pairs like this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:set mailer=mail fromname=Joomla! sitename=&amp;quot;Joomla Site&amp;quot;&amp;lt;/tt&amp;gt;&lt;br /&gt;
This will set multiple options at once.&lt;br /&gt;
&lt;br /&gt;
[[File:Config set multiple.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Getting configurations=====&lt;br /&gt;
The next command in this category is the &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command, as the name suggests it gets the value of an option that exists inside the &amp;lt;tt&amp;gt;configuration.php&amp;lt;/tt&amp;gt;, when no argument is supplied to the command, it will display all the options available in a tabulated form. Here is the command:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get sitename&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return the value for the option &amp;lt;tt&amp;gt;sitename&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:011-cli.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return all the values for the available options.&lt;br /&gt;
&lt;br /&gt;
[[File:Config get all.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Getting grouped configurations=====&lt;br /&gt;
The CLI Update adds an option to &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command that allows us to get logically grouped options, say for example you want to view all your database related options, or you want to view all email related options. To achieve this the CLI Update provides an option to specify a group of options to display, here is how to do that: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get --group=mail&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Config get group.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
The command takes in the &amp;lt;tt&amp;gt;group&amp;lt;/tt&amp;gt; option and given the value of &amp;lt;tt&amp;gt;mail&amp;lt;/tt&amp;gt;. CLI Update currently supports group values: mail, db and session.&lt;br /&gt;
&lt;br /&gt;
====Site down and Site up commands====&lt;br /&gt;
As their name suggests, these commands allow you to quickly put your Joomla powered website into offline or online mode. Here is how to use the commands:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php site:up&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Site up.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php site:down&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Site down.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
The second command puts the website in offline mode while the first command brings the website to online mode.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Contributing to CLI Update as a developer==&lt;br /&gt;
&lt;br /&gt;
===Adding more commands===&lt;br /&gt;
The CLI Update ships with some commands which are added based on the need seen as of the time. However, the CLI Update allows other commands to be added easily and this is what this section is for. A video tutorial is included below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;video-container&amp;quot;&amp;gt;&lt;br /&gt;
{{#widget:YouTube|id=gcJJtTcPiTg}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Calling other commands within command classes===&lt;br /&gt;
Should in case a command you want to write for the CLI Update is going to be require that you call an existing command internally, this is how that can be achieved from within another command class:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
class RunHelloCommand extends AbstractCommand {&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
    public function execute(): int {&lt;br /&gt;
        $command = $this-&amp;gt;getApplication()-&amp;gt;getCommand(&#039;say:hello&#039;);&lt;br /&gt;
        $code = $command-&amp;gt;execute();&lt;br /&gt;
&lt;br /&gt;
        if($code === 0) {&lt;br /&gt;
            // command ran successfully, do something&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    ...&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here, we&#039;re attempting to call the &amp;lt;tt&amp;gt;say:hello&amp;lt;/tt&amp;gt; command created in the Video above.&lt;br /&gt;
&lt;br /&gt;
===Some important things to checkout===&lt;br /&gt;
*Symfony Style Documentation: [https://symfony.com/doc/current/console/style.html How to Style a Console Command]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Google Summer of Code 2018]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Joomla!_4.x]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Translations:J4.x:CLI_Update/14/fr&amp;diff=636531</id>
		<title>Translations:J4.x:CLI Update/14/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Translations:J4.x:CLI_Update/14/fr&amp;diff=636531"/>
		<updated>2019-10-19T11:41:17Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: Created page with &amp;quot;====Vérification des mises à jour mises à jour====&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;====Vérification des mises à jour mises à jour====&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Update/fr&amp;diff=636529</id>
		<title>J4.x:CLI Update/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Update/fr&amp;diff=636529"/>
		<updated>2019-10-19T11:41:00Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: Created page with &amp;quot;Il y a un certain nombre de commandes disponibles dans la mise à jour de CLI qui sont prêtes à l&amp;#039;emploi. Ces commandes sont regroupées en fonction de la zone du CMS Joomla...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{Top portal heading|color=white-bkgd|text-color=#333|title=&lt;br /&gt;
GSoC 2018 &amp;lt;br /&amp;gt;&lt;br /&gt;
Documentation&amp;lt;br /&amp;gt;sur les lignes de commande}}&lt;br /&gt;
[[Image:Gsoc2016.png|75px|center|link=GSOC 2018]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;{{Joomla version|version=4.x}}&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Pour effectuer une tâche mineure dans Joomla!, le tableau de bord de l&#039;administrateur peut sembler fastidieux et lent. La mise à jour de l&#039;application CLI introduit un moyen plus rapide d&#039;effectuer certaines de ces opérations via la ligne de commande. Cela offre un moyen d&#039;intégrer les choses plus rapidement dans l&#039;application Joomla!. Grâce à ce logiciel, les petits tests peuvent être effectués plus rapidement sans passer par le processus du tableau de bord Web. C’est une application CLI pour Joomla! CMS qui permet à l&#039;utilisateur d&#039;effectuer des mises à jour dans le CMS.&lt;br /&gt;
&lt;br /&gt;
Cette documentation montre comment utiliser la mise à jour de l&#039;application CLI et comment étendre ses fonctionnalités en tant que développeur.&lt;br /&gt;
&lt;br /&gt;
===Pré-requis===&lt;br /&gt;
Comme c&#039;est le cas pour toutes les applications CLI (Command Line Interface), l&#039;accès à votre installation Joomla! via la ligne de commande est nécessaire pour utiliser les outils fournis par le CLI Update.&lt;br /&gt;
Vous devriez peut-être envisager d&#039;avoir un accès SSH pour votre serveur en direct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Termes et définitions===&lt;br /&gt;
*CLI - Command Line Interface&lt;br /&gt;
*SSH - Secure SHell&lt;br /&gt;
&lt;br /&gt;
==Utilisation de la mise-à-jour en mode CLI==&lt;br /&gt;
In other for you to use the tools provided by CLI Update, as said in former section, you need access to a CLI into the root of the Joomla Installation. In other words you have to be in the root folder of your Joomla CMS as all commands will run from the root folder.&lt;br /&gt;
[[File:All commands.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
==Utilisation des commandes générales==&lt;br /&gt;
Dans cette section, nous parlerons de l&#039;utilisation des commandes, nous parlerons des différentes commandes, de ce qu&#039;elles sont et comment vous pouvez les utiliser. Nous irons voir les commandes disponibles dans la mise à jour de CLI.&lt;br /&gt;
&lt;br /&gt;
===Commandes disponibles===&lt;br /&gt;
Il y a un certain nombre de commandes disponibles dans la mise à jour de CLI qui sont prêtes à l&#039;emploi. Ces commandes sont regroupées en fonction de la zone du CMS Joomla ! qu&#039;elles touchent.&lt;br /&gt;
&lt;br /&gt;
====Checking for Updates Updates====&lt;br /&gt;
The CLI Update provides a command to check for Joomla! updates, it works just like the web version of &amp;lt;tt&amp;gt;com_joomlaupdate&amp;lt;/tt&amp;gt;, it retrieves update and tells if update is available or not. To run the update check, we will just issue the command like this from the root directory:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php check-updates&amp;lt;/tt&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The command runs and the output displays an available update version, if available, or tell otherwise that the current installation is up to date.&lt;br /&gt;
[[File:Check updates.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Extension commands==== &lt;br /&gt;
The next group of commands are the extension based commands, simply put, the commands allows us to manage extensions within the Jommla! core, the CLI Update ships with commands to install, list and remove extensions.&lt;br /&gt;
&lt;br /&gt;
======Listing installed extensions======&lt;br /&gt;
This command allows us to list all installed extensions. This command can run in two different ways which are:&lt;br /&gt;
*&#039;&#039;General Listing&#039;&#039;: Lists all the extensions installed, by extensions it means components, languages, plugins, modules will be listed together when you run this command. This is how you call the command:{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:list&amp;lt;/tt/&amp;gt; {{-}}[[File:Extension list.png|center|800px]]&lt;br /&gt;
*&#039;&#039;Listing By types&#039;&#039;: General listing of extension can be tedious if you&#039;re looking for a particular extension out of the big list, however, you can beat down the numbers specifying the type of extensions you can the command to display by adding a type option to the command. Here is how that is done: {{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:list --type=language&amp;lt;/tt&amp;gt;{{-}}[[File:Extension list type.png|center|800px]]&lt;br /&gt;
This will list out only language based extensions, you can specify type as module, plugin and component as well.&lt;br /&gt;
&lt;br /&gt;
======Installing an Extension======&lt;br /&gt;
Joomla provides installing an extension through an URL to the zip file or a path to the file, the CLI Update provides both as well and how you can use them is described below.&lt;br /&gt;
*&#039;&#039;Installing from URL&#039;&#039;: To install an extension from URL we will run the command like this and provide an argument and option for the &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command.{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:install url --url=https://github.com/joomla-extensions/patchtester/releases/download/3.0.0-beta3/com_patchtester.zip&amp;lt;/tt&amp;gt;{{-}}This will download the &amp;lt;tt&amp;gt;com_patchtester&amp;lt;/tt&amp;gt; extension.&lt;br /&gt;
{{-}}[[File:Extension install url.png|center|800px]]&lt;br /&gt;
*&#039;&#039;Installing from a PATH&#039;&#039;:To install an extension from a PATH we will run the same &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command and specify arguments for paths like this:{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:install path --path=/Users/bosunski/docs/com_pathtester.zip&amp;lt;/tt&amp;gt; {{-}}[[File:Extension install path.png|center|800px]]&lt;br /&gt;
This loads the extension and performs the installation as expected.&lt;br /&gt;
&lt;br /&gt;
======Removing an extension======&lt;br /&gt;
The last command under this category is the &amp;lt;tt&amp;gt;extension:remove&amp;lt;/tt&amp;gt; command that is used to remove extensions from the Joomla CMS. This command takes in the &amp;lt;tt&amp;gt;extension_id&amp;lt;/tt&amp;gt; as an argument, you can always use the &amp;lt;tt&amp;gt;extension:list&amp;lt;/tt&amp;gt; to display extension id. This is how we remove an extension of id &amp;lt;tt&amp;gt;803&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php extension:remove 803&amp;lt;/tt&amp;gt;&lt;br /&gt;
[[File:Extension Remove.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Updating the Joomla Core====&lt;br /&gt;
As much as the CLI Update provides a command to check update, it also provides a command to perform the update if an update is available. To perform update we will just run this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php core:update&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
This command updates the Joomla core updating it to the latest version available.&lt;br /&gt;
&lt;br /&gt;
[[File:Core update.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Installing Joomla! via the CLI====&lt;br /&gt;
The next command here is the &amp;lt;tt&amp;gt;core:install&amp;lt;/tt&amp;gt; command that lets installation of Joomla CMS to be done via the CLI. This command can  work in 2 modes: The Interactive mode and the Non-interactive mode.&lt;br /&gt;
&lt;br /&gt;
=====Interactive installation=====&lt;br /&gt;
To have a fresh installation of Joomla using the interactive mode we will just run the &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command like so:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php extension:install&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The default installation mode will run and will ask you to input the settings as it&#039;s required, once all options have been provided and validated, the installations will run and Joomla will be installed.&lt;br /&gt;
&lt;br /&gt;
[[File:Core install interactive.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Non-interactive Installation=====&lt;br /&gt;
The next type of installation is the Non-interactive mode. In this mode you will not be asked to input the options but rather all options will be specified within a file and the command will take in an option that specifies the path to the file you want to load the options from, it&#039;s done like this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php core:install --file=/path/to/config.json&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Core install file.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
An example of the contents of &amp;lt;tt&amp;gt;config.json&amp;lt;/tt&amp;gt; can be:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;language&amp;quot;:&amp;quot;en-GB&amp;quot;,&lt;br /&gt;
  &amp;quot;site_name&amp;quot;:&amp;quot;Joomla&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_email&amp;quot;:&amp;quot;email@example.com&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_user&amp;quot;:&amp;quot;user&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_password&amp;quot;:&amp;quot;password&amp;quot;,&lt;br /&gt;
  &amp;quot;db_type&amp;quot;:&amp;quot;mysql&amp;quot;,&lt;br /&gt;
  &amp;quot;db_host&amp;quot;:&amp;quot;localhost&amp;quot;,&lt;br /&gt;
  &amp;quot;db_user&amp;quot;:&amp;quot;root&amp;quot;,&lt;br /&gt;
  &amp;quot;db_pass&amp;quot;:&amp;quot;xcdxcx&amp;quot;,&lt;br /&gt;
  &amp;quot;db_name&amp;quot;:&amp;quot;jtest&amp;quot;,&lt;br /&gt;
  &amp;quot;db_prefix&amp;quot;:&amp;quot;efs0k_&amp;quot;,&lt;br /&gt;
  &amp;quot;db_old&amp;quot;:&amp;quot;remove&amp;quot;,&lt;br /&gt;
  &amp;quot;helpurl&amp;quot;:&amp;quot;https://joomla.org&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
OR as sample &amp;lt;tt&amp;gt;config.ini&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
site_name=&amp;quot;gsoc&amp;quot;&lt;br /&gt;
admin_email=&amp;quot;user@example.com&amp;quot;&lt;br /&gt;
admin_user=&amp;quot;user&amp;quot;&lt;br /&gt;
admin_password=&amp;quot;secret&amp;quot;&lt;br /&gt;
db_type=&amp;quot;mysql&amp;quot;&lt;br /&gt;
db_host=&amp;quot;localhost&amp;quot;&lt;br /&gt;
db_user=&amp;quot;root&amp;quot;&lt;br /&gt;
db_pass=&amp;quot;&amp;quot;&lt;br /&gt;
db_name=&amp;quot;joomla&amp;quot;&lt;br /&gt;
db_prefix=&amp;quot;prefix_&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The options defined are loaded and validated after which the installation will run.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Configuration based commands====&lt;br /&gt;
The next set of commands we will be looking at is for setting and viewing configuration options inside the Joomla installation:&lt;br /&gt;
&lt;br /&gt;
=====Setting configurations=====&lt;br /&gt;
The CLI Update provides a command to change the value of an option existing in the configuration. Using the &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command you can set any configuration option that exists inside the &amp;lt;tt&amp;gt;configuration.php&amp;lt;/tt&amp;gt;. This is how to use command:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:set mailer=mail&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Config set single.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
You can even add multiple option-value pairs like this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:set mailer=mail fromname=Joomla! sitename=&amp;quot;Joomla Site&amp;quot;&amp;lt;/tt&amp;gt;&lt;br /&gt;
This will set multiple options at once.&lt;br /&gt;
&lt;br /&gt;
[[File:Config set multiple.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Getting configurations=====&lt;br /&gt;
The next command in this category is the &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command, as the name suggests it gets the value of an option that exists inside the &amp;lt;tt&amp;gt;configuration.php&amp;lt;/tt&amp;gt;, when no argument is supplied to the command, it will display all the options available in a tabulated form. Here is the command:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get sitename&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return the value for the option &amp;lt;tt&amp;gt;sitename&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:011-cli.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return all the values for the available options.&lt;br /&gt;
&lt;br /&gt;
[[File:Config get all.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Getting grouped configurations=====&lt;br /&gt;
The CLI Update adds an option to &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command that allows us to get logically grouped options, say for example you want to view all your database related options, or you want to view all email related options. To achieve this the CLI Update provides an option to specify a group of options to display, here is how to do that: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get --group=mail&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Config get group.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
The command takes in the &amp;lt;tt&amp;gt;group&amp;lt;/tt&amp;gt; option and given the value of &amp;lt;tt&amp;gt;mail&amp;lt;/tt&amp;gt;. CLI Update currently supports group values: mail, db and session.&lt;br /&gt;
&lt;br /&gt;
====Site down and Site up commands====&lt;br /&gt;
As their name suggests, these commands allow you to quickly put your Joomla powered website into offline or online mode. Here is how to use the commands:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php site:up&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Site up.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php site:down&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Site down.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
The second command puts the website in offline mode while the first command brings the website to online mode.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Contributing to CLI Update as a developer==&lt;br /&gt;
&lt;br /&gt;
===Adding more commands===&lt;br /&gt;
The CLI Update ships with some commands which are added based on the need seen as of the time. However, the CLI Update allows other commands to be added easily and this is what this section is for. A video tutorial is included below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;video-container&amp;quot;&amp;gt;&lt;br /&gt;
{{#widget:YouTube|id=gcJJtTcPiTg}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Calling other commands within command classes===&lt;br /&gt;
Should in case a command you want to write for the CLI Update is going to be require that you call an existing command internally, this is how that can be achieved from within another command class:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
class RunHelloCommand extends AbstractCommand {&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
    public function execute(): int {&lt;br /&gt;
        $command = $this-&amp;gt;getApplication()-&amp;gt;getCommand(&#039;say:hello&#039;);&lt;br /&gt;
        $code = $command-&amp;gt;execute();&lt;br /&gt;
&lt;br /&gt;
        if($code === 0) {&lt;br /&gt;
            // command ran successfully, do something&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    ...&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here, we&#039;re attempting to call the &amp;lt;tt&amp;gt;say:hello&amp;lt;/tt&amp;gt; command created in the Video above.&lt;br /&gt;
&lt;br /&gt;
===Some important things to checkout===&lt;br /&gt;
*Symfony Style Documentation: [https://symfony.com/doc/current/console/style.html How to Style a Console Command]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Google Summer of Code 2018]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Joomla!_4.x]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Translations:J4.x:CLI_Update/13/fr&amp;diff=636528</id>
		<title>Translations:J4.x:CLI Update/13/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Translations:J4.x:CLI_Update/13/fr&amp;diff=636528"/>
		<updated>2019-10-19T11:40:59Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: Created page with &amp;quot;Il y a un certain nombre de commandes disponibles dans la mise à jour de CLI qui sont prêtes à l&amp;#039;emploi. Ces commandes sont regroupées en fonction de la zone du CMS Joomla...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Il y a un certain nombre de commandes disponibles dans la mise à jour de CLI qui sont prêtes à l&#039;emploi. Ces commandes sont regroupées en fonction de la zone du CMS Joomla ! qu&#039;elles touchent.&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Update/fr&amp;diff=636521</id>
		<title>J4.x:CLI Update/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Update/fr&amp;diff=636521"/>
		<updated>2019-10-19T11:40:16Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: Created page with &amp;quot;===Commandes disponibles===&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{Top portal heading|color=white-bkgd|text-color=#333|title=&lt;br /&gt;
GSoC 2018 &amp;lt;br /&amp;gt;&lt;br /&gt;
Documentation&amp;lt;br /&amp;gt;sur les lignes de commande}}&lt;br /&gt;
[[Image:Gsoc2016.png|75px|center|link=GSOC 2018]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;{{Joomla version|version=4.x}}&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Pour effectuer une tâche mineure dans Joomla!, le tableau de bord de l&#039;administrateur peut sembler fastidieux et lent. La mise à jour de l&#039;application CLI introduit un moyen plus rapide d&#039;effectuer certaines de ces opérations via la ligne de commande. Cela offre un moyen d&#039;intégrer les choses plus rapidement dans l&#039;application Joomla!. Grâce à ce logiciel, les petits tests peuvent être effectués plus rapidement sans passer par le processus du tableau de bord Web. C’est une application CLI pour Joomla! CMS qui permet à l&#039;utilisateur d&#039;effectuer des mises à jour dans le CMS.&lt;br /&gt;
&lt;br /&gt;
Cette documentation montre comment utiliser la mise à jour de l&#039;application CLI et comment étendre ses fonctionnalités en tant que développeur.&lt;br /&gt;
&lt;br /&gt;
===Pré-requis===&lt;br /&gt;
Comme c&#039;est le cas pour toutes les applications CLI (Command Line Interface), l&#039;accès à votre installation Joomla! via la ligne de commande est nécessaire pour utiliser les outils fournis par le CLI Update.&lt;br /&gt;
Vous devriez peut-être envisager d&#039;avoir un accès SSH pour votre serveur en direct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Termes et définitions===&lt;br /&gt;
*CLI - Command Line Interface&lt;br /&gt;
*SSH - Secure SHell&lt;br /&gt;
&lt;br /&gt;
==Utilisation de la mise-à-jour en mode CLI==&lt;br /&gt;
In other for you to use the tools provided by CLI Update, as said in former section, you need access to a CLI into the root of the Joomla Installation. In other words you have to be in the root folder of your Joomla CMS as all commands will run from the root folder.&lt;br /&gt;
[[File:All commands.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
==Utilisation des commandes générales==&lt;br /&gt;
Dans cette section, nous parlerons de l&#039;utilisation des commandes, nous parlerons des différentes commandes, de ce qu&#039;elles sont et comment vous pouvez les utiliser. Nous irons voir les commandes disponibles dans la mise à jour de CLI.&lt;br /&gt;
&lt;br /&gt;
===Commandes disponibles===&lt;br /&gt;
There are quite a number of commands available in the CLI Update that are ready for use.  These commands are grouped based on the area of the Joomla! CMS that they are touching.&lt;br /&gt;
&lt;br /&gt;
====Checking for Updates Updates====&lt;br /&gt;
The CLI Update provides a command to check for Joomla! updates, it works just like the web version of &amp;lt;tt&amp;gt;com_joomlaupdate&amp;lt;/tt&amp;gt;, it retrieves update and tells if update is available or not. To run the update check, we will just issue the command like this from the root directory:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php check-updates&amp;lt;/tt&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The command runs and the output displays an available update version, if available, or tell otherwise that the current installation is up to date.&lt;br /&gt;
[[File:Check updates.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Extension commands==== &lt;br /&gt;
The next group of commands are the extension based commands, simply put, the commands allows us to manage extensions within the Jommla! core, the CLI Update ships with commands to install, list and remove extensions.&lt;br /&gt;
&lt;br /&gt;
======Listing installed extensions======&lt;br /&gt;
This command allows us to list all installed extensions. This command can run in two different ways which are:&lt;br /&gt;
*&#039;&#039;General Listing&#039;&#039;: Lists all the extensions installed, by extensions it means components, languages, plugins, modules will be listed together when you run this command. This is how you call the command:{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:list&amp;lt;/tt/&amp;gt; {{-}}[[File:Extension list.png|center|800px]]&lt;br /&gt;
*&#039;&#039;Listing By types&#039;&#039;: General listing of extension can be tedious if you&#039;re looking for a particular extension out of the big list, however, you can beat down the numbers specifying the type of extensions you can the command to display by adding a type option to the command. Here is how that is done: {{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:list --type=language&amp;lt;/tt&amp;gt;{{-}}[[File:Extension list type.png|center|800px]]&lt;br /&gt;
This will list out only language based extensions, you can specify type as module, plugin and component as well.&lt;br /&gt;
&lt;br /&gt;
======Installing an Extension======&lt;br /&gt;
Joomla provides installing an extension through an URL to the zip file or a path to the file, the CLI Update provides both as well and how you can use them is described below.&lt;br /&gt;
*&#039;&#039;Installing from URL&#039;&#039;: To install an extension from URL we will run the command like this and provide an argument and option for the &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command.{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:install url --url=https://github.com/joomla-extensions/patchtester/releases/download/3.0.0-beta3/com_patchtester.zip&amp;lt;/tt&amp;gt;{{-}}This will download the &amp;lt;tt&amp;gt;com_patchtester&amp;lt;/tt&amp;gt; extension.&lt;br /&gt;
{{-}}[[File:Extension install url.png|center|800px]]&lt;br /&gt;
*&#039;&#039;Installing from a PATH&#039;&#039;:To install an extension from a PATH we will run the same &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command and specify arguments for paths like this:{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:install path --path=/Users/bosunski/docs/com_pathtester.zip&amp;lt;/tt&amp;gt; {{-}}[[File:Extension install path.png|center|800px]]&lt;br /&gt;
This loads the extension and performs the installation as expected.&lt;br /&gt;
&lt;br /&gt;
======Removing an extension======&lt;br /&gt;
The last command under this category is the &amp;lt;tt&amp;gt;extension:remove&amp;lt;/tt&amp;gt; command that is used to remove extensions from the Joomla CMS. This command takes in the &amp;lt;tt&amp;gt;extension_id&amp;lt;/tt&amp;gt; as an argument, you can always use the &amp;lt;tt&amp;gt;extension:list&amp;lt;/tt&amp;gt; to display extension id. This is how we remove an extension of id &amp;lt;tt&amp;gt;803&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php extension:remove 803&amp;lt;/tt&amp;gt;&lt;br /&gt;
[[File:Extension Remove.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Updating the Joomla Core====&lt;br /&gt;
As much as the CLI Update provides a command to check update, it also provides a command to perform the update if an update is available. To perform update we will just run this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php core:update&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
This command updates the Joomla core updating it to the latest version available.&lt;br /&gt;
&lt;br /&gt;
[[File:Core update.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Installing Joomla! via the CLI====&lt;br /&gt;
The next command here is the &amp;lt;tt&amp;gt;core:install&amp;lt;/tt&amp;gt; command that lets installation of Joomla CMS to be done via the CLI. This command can  work in 2 modes: The Interactive mode and the Non-interactive mode.&lt;br /&gt;
&lt;br /&gt;
=====Interactive installation=====&lt;br /&gt;
To have a fresh installation of Joomla using the interactive mode we will just run the &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command like so:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php extension:install&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The default installation mode will run and will ask you to input the settings as it&#039;s required, once all options have been provided and validated, the installations will run and Joomla will be installed.&lt;br /&gt;
&lt;br /&gt;
[[File:Core install interactive.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Non-interactive Installation=====&lt;br /&gt;
The next type of installation is the Non-interactive mode. In this mode you will not be asked to input the options but rather all options will be specified within a file and the command will take in an option that specifies the path to the file you want to load the options from, it&#039;s done like this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php core:install --file=/path/to/config.json&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Core install file.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
An example of the contents of &amp;lt;tt&amp;gt;config.json&amp;lt;/tt&amp;gt; can be:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;language&amp;quot;:&amp;quot;en-GB&amp;quot;,&lt;br /&gt;
  &amp;quot;site_name&amp;quot;:&amp;quot;Joomla&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_email&amp;quot;:&amp;quot;email@example.com&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_user&amp;quot;:&amp;quot;user&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_password&amp;quot;:&amp;quot;password&amp;quot;,&lt;br /&gt;
  &amp;quot;db_type&amp;quot;:&amp;quot;mysql&amp;quot;,&lt;br /&gt;
  &amp;quot;db_host&amp;quot;:&amp;quot;localhost&amp;quot;,&lt;br /&gt;
  &amp;quot;db_user&amp;quot;:&amp;quot;root&amp;quot;,&lt;br /&gt;
  &amp;quot;db_pass&amp;quot;:&amp;quot;xcdxcx&amp;quot;,&lt;br /&gt;
  &amp;quot;db_name&amp;quot;:&amp;quot;jtest&amp;quot;,&lt;br /&gt;
  &amp;quot;db_prefix&amp;quot;:&amp;quot;efs0k_&amp;quot;,&lt;br /&gt;
  &amp;quot;db_old&amp;quot;:&amp;quot;remove&amp;quot;,&lt;br /&gt;
  &amp;quot;helpurl&amp;quot;:&amp;quot;https://joomla.org&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
OR as sample &amp;lt;tt&amp;gt;config.ini&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
site_name=&amp;quot;gsoc&amp;quot;&lt;br /&gt;
admin_email=&amp;quot;user@example.com&amp;quot;&lt;br /&gt;
admin_user=&amp;quot;user&amp;quot;&lt;br /&gt;
admin_password=&amp;quot;secret&amp;quot;&lt;br /&gt;
db_type=&amp;quot;mysql&amp;quot;&lt;br /&gt;
db_host=&amp;quot;localhost&amp;quot;&lt;br /&gt;
db_user=&amp;quot;root&amp;quot;&lt;br /&gt;
db_pass=&amp;quot;&amp;quot;&lt;br /&gt;
db_name=&amp;quot;joomla&amp;quot;&lt;br /&gt;
db_prefix=&amp;quot;prefix_&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The options defined are loaded and validated after which the installation will run.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Configuration based commands====&lt;br /&gt;
The next set of commands we will be looking at is for setting and viewing configuration options inside the Joomla installation:&lt;br /&gt;
&lt;br /&gt;
=====Setting configurations=====&lt;br /&gt;
The CLI Update provides a command to change the value of an option existing in the configuration. Using the &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command you can set any configuration option that exists inside the &amp;lt;tt&amp;gt;configuration.php&amp;lt;/tt&amp;gt;. This is how to use command:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:set mailer=mail&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Config set single.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
You can even add multiple option-value pairs like this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:set mailer=mail fromname=Joomla! sitename=&amp;quot;Joomla Site&amp;quot;&amp;lt;/tt&amp;gt;&lt;br /&gt;
This will set multiple options at once.&lt;br /&gt;
&lt;br /&gt;
[[File:Config set multiple.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Getting configurations=====&lt;br /&gt;
The next command in this category is the &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command, as the name suggests it gets the value of an option that exists inside the &amp;lt;tt&amp;gt;configuration.php&amp;lt;/tt&amp;gt;, when no argument is supplied to the command, it will display all the options available in a tabulated form. Here is the command:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get sitename&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return the value for the option &amp;lt;tt&amp;gt;sitename&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:011-cli.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return all the values for the available options.&lt;br /&gt;
&lt;br /&gt;
[[File:Config get all.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Getting grouped configurations=====&lt;br /&gt;
The CLI Update adds an option to &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command that allows us to get logically grouped options, say for example you want to view all your database related options, or you want to view all email related options. To achieve this the CLI Update provides an option to specify a group of options to display, here is how to do that: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get --group=mail&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Config get group.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
The command takes in the &amp;lt;tt&amp;gt;group&amp;lt;/tt&amp;gt; option and given the value of &amp;lt;tt&amp;gt;mail&amp;lt;/tt&amp;gt;. CLI Update currently supports group values: mail, db and session.&lt;br /&gt;
&lt;br /&gt;
====Site down and Site up commands====&lt;br /&gt;
As their name suggests, these commands allow you to quickly put your Joomla powered website into offline or online mode. Here is how to use the commands:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php site:up&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Site up.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php site:down&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Site down.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
The second command puts the website in offline mode while the first command brings the website to online mode.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Contributing to CLI Update as a developer==&lt;br /&gt;
&lt;br /&gt;
===Adding more commands===&lt;br /&gt;
The CLI Update ships with some commands which are added based on the need seen as of the time. However, the CLI Update allows other commands to be added easily and this is what this section is for. A video tutorial is included below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;video-container&amp;quot;&amp;gt;&lt;br /&gt;
{{#widget:YouTube|id=gcJJtTcPiTg}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Calling other commands within command classes===&lt;br /&gt;
Should in case a command you want to write for the CLI Update is going to be require that you call an existing command internally, this is how that can be achieved from within another command class:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
class RunHelloCommand extends AbstractCommand {&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
    public function execute(): int {&lt;br /&gt;
        $command = $this-&amp;gt;getApplication()-&amp;gt;getCommand(&#039;say:hello&#039;);&lt;br /&gt;
        $code = $command-&amp;gt;execute();&lt;br /&gt;
&lt;br /&gt;
        if($code === 0) {&lt;br /&gt;
            // command ran successfully, do something&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    ...&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here, we&#039;re attempting to call the &amp;lt;tt&amp;gt;say:hello&amp;lt;/tt&amp;gt; command created in the Video above.&lt;br /&gt;
&lt;br /&gt;
===Some important things to checkout===&lt;br /&gt;
*Symfony Style Documentation: [https://symfony.com/doc/current/console/style.html How to Style a Console Command]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Google Summer of Code 2018]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Joomla!_4.x]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Translations:J4.x:CLI_Update/12/fr&amp;diff=636520</id>
		<title>Translations:J4.x:CLI Update/12/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Translations:J4.x:CLI_Update/12/fr&amp;diff=636520"/>
		<updated>2019-10-19T11:40:16Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: Created page with &amp;quot;===Commandes disponibles===&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Commandes disponibles===&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Update/fr&amp;diff=636519</id>
		<title>J4.x:CLI Update/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Update/fr&amp;diff=636519"/>
		<updated>2019-10-19T11:40:05Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: Created page with &amp;quot;Dans cette section, nous parlerons de l&amp;#039;utilisation des commandes, nous parlerons des différentes commandes, de ce qu&amp;#039;elles sont et comment vous pouvez les utiliser. Nous iro...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{Top portal heading|color=white-bkgd|text-color=#333|title=&lt;br /&gt;
GSoC 2018 &amp;lt;br /&amp;gt;&lt;br /&gt;
Documentation&amp;lt;br /&amp;gt;sur les lignes de commande}}&lt;br /&gt;
[[Image:Gsoc2016.png|75px|center|link=GSOC 2018]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;{{Joomla version|version=4.x}}&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Pour effectuer une tâche mineure dans Joomla!, le tableau de bord de l&#039;administrateur peut sembler fastidieux et lent. La mise à jour de l&#039;application CLI introduit un moyen plus rapide d&#039;effectuer certaines de ces opérations via la ligne de commande. Cela offre un moyen d&#039;intégrer les choses plus rapidement dans l&#039;application Joomla!. Grâce à ce logiciel, les petits tests peuvent être effectués plus rapidement sans passer par le processus du tableau de bord Web. C’est une application CLI pour Joomla! CMS qui permet à l&#039;utilisateur d&#039;effectuer des mises à jour dans le CMS.&lt;br /&gt;
&lt;br /&gt;
Cette documentation montre comment utiliser la mise à jour de l&#039;application CLI et comment étendre ses fonctionnalités en tant que développeur.&lt;br /&gt;
&lt;br /&gt;
===Pré-requis===&lt;br /&gt;
Comme c&#039;est le cas pour toutes les applications CLI (Command Line Interface), l&#039;accès à votre installation Joomla! via la ligne de commande est nécessaire pour utiliser les outils fournis par le CLI Update.&lt;br /&gt;
Vous devriez peut-être envisager d&#039;avoir un accès SSH pour votre serveur en direct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Termes et définitions===&lt;br /&gt;
*CLI - Command Line Interface&lt;br /&gt;
*SSH - Secure SHell&lt;br /&gt;
&lt;br /&gt;
==Utilisation de la mise-à-jour en mode CLI==&lt;br /&gt;
In other for you to use the tools provided by CLI Update, as said in former section, you need access to a CLI into the root of the Joomla Installation. In other words you have to be in the root folder of your Joomla CMS as all commands will run from the root folder.&lt;br /&gt;
[[File:All commands.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
==Utilisation des commandes générales==&lt;br /&gt;
Dans cette section, nous parlerons de l&#039;utilisation des commandes, nous parlerons des différentes commandes, de ce qu&#039;elles sont et comment vous pouvez les utiliser. Nous irons voir les commandes disponibles dans la mise à jour de CLI.&lt;br /&gt;
&lt;br /&gt;
===Available commands===&lt;br /&gt;
There are quite a number of commands available in the CLI Update that are ready for use.  These commands are grouped based on the area of the Joomla! CMS that they are touching.&lt;br /&gt;
&lt;br /&gt;
====Checking for Updates Updates====&lt;br /&gt;
The CLI Update provides a command to check for Joomla! updates, it works just like the web version of &amp;lt;tt&amp;gt;com_joomlaupdate&amp;lt;/tt&amp;gt;, it retrieves update and tells if update is available or not. To run the update check, we will just issue the command like this from the root directory:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php check-updates&amp;lt;/tt&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The command runs and the output displays an available update version, if available, or tell otherwise that the current installation is up to date.&lt;br /&gt;
[[File:Check updates.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Extension commands==== &lt;br /&gt;
The next group of commands are the extension based commands, simply put, the commands allows us to manage extensions within the Jommla! core, the CLI Update ships with commands to install, list and remove extensions.&lt;br /&gt;
&lt;br /&gt;
======Listing installed extensions======&lt;br /&gt;
This command allows us to list all installed extensions. This command can run in two different ways which are:&lt;br /&gt;
*&#039;&#039;General Listing&#039;&#039;: Lists all the extensions installed, by extensions it means components, languages, plugins, modules will be listed together when you run this command. This is how you call the command:{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:list&amp;lt;/tt/&amp;gt; {{-}}[[File:Extension list.png|center|800px]]&lt;br /&gt;
*&#039;&#039;Listing By types&#039;&#039;: General listing of extension can be tedious if you&#039;re looking for a particular extension out of the big list, however, you can beat down the numbers specifying the type of extensions you can the command to display by adding a type option to the command. Here is how that is done: {{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:list --type=language&amp;lt;/tt&amp;gt;{{-}}[[File:Extension list type.png|center|800px]]&lt;br /&gt;
This will list out only language based extensions, you can specify type as module, plugin and component as well.&lt;br /&gt;
&lt;br /&gt;
======Installing an Extension======&lt;br /&gt;
Joomla provides installing an extension through an URL to the zip file or a path to the file, the CLI Update provides both as well and how you can use them is described below.&lt;br /&gt;
*&#039;&#039;Installing from URL&#039;&#039;: To install an extension from URL we will run the command like this and provide an argument and option for the &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command.{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:install url --url=https://github.com/joomla-extensions/patchtester/releases/download/3.0.0-beta3/com_patchtester.zip&amp;lt;/tt&amp;gt;{{-}}This will download the &amp;lt;tt&amp;gt;com_patchtester&amp;lt;/tt&amp;gt; extension.&lt;br /&gt;
{{-}}[[File:Extension install url.png|center|800px]]&lt;br /&gt;
*&#039;&#039;Installing from a PATH&#039;&#039;:To install an extension from a PATH we will run the same &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command and specify arguments for paths like this:{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:install path --path=/Users/bosunski/docs/com_pathtester.zip&amp;lt;/tt&amp;gt; {{-}}[[File:Extension install path.png|center|800px]]&lt;br /&gt;
This loads the extension and performs the installation as expected.&lt;br /&gt;
&lt;br /&gt;
======Removing an extension======&lt;br /&gt;
The last command under this category is the &amp;lt;tt&amp;gt;extension:remove&amp;lt;/tt&amp;gt; command that is used to remove extensions from the Joomla CMS. This command takes in the &amp;lt;tt&amp;gt;extension_id&amp;lt;/tt&amp;gt; as an argument, you can always use the &amp;lt;tt&amp;gt;extension:list&amp;lt;/tt&amp;gt; to display extension id. This is how we remove an extension of id &amp;lt;tt&amp;gt;803&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php extension:remove 803&amp;lt;/tt&amp;gt;&lt;br /&gt;
[[File:Extension Remove.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Updating the Joomla Core====&lt;br /&gt;
As much as the CLI Update provides a command to check update, it also provides a command to perform the update if an update is available. To perform update we will just run this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php core:update&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
This command updates the Joomla core updating it to the latest version available.&lt;br /&gt;
&lt;br /&gt;
[[File:Core update.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Installing Joomla! via the CLI====&lt;br /&gt;
The next command here is the &amp;lt;tt&amp;gt;core:install&amp;lt;/tt&amp;gt; command that lets installation of Joomla CMS to be done via the CLI. This command can  work in 2 modes: The Interactive mode and the Non-interactive mode.&lt;br /&gt;
&lt;br /&gt;
=====Interactive installation=====&lt;br /&gt;
To have a fresh installation of Joomla using the interactive mode we will just run the &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command like so:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php extension:install&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The default installation mode will run and will ask you to input the settings as it&#039;s required, once all options have been provided and validated, the installations will run and Joomla will be installed.&lt;br /&gt;
&lt;br /&gt;
[[File:Core install interactive.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Non-interactive Installation=====&lt;br /&gt;
The next type of installation is the Non-interactive mode. In this mode you will not be asked to input the options but rather all options will be specified within a file and the command will take in an option that specifies the path to the file you want to load the options from, it&#039;s done like this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php core:install --file=/path/to/config.json&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Core install file.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
An example of the contents of &amp;lt;tt&amp;gt;config.json&amp;lt;/tt&amp;gt; can be:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;language&amp;quot;:&amp;quot;en-GB&amp;quot;,&lt;br /&gt;
  &amp;quot;site_name&amp;quot;:&amp;quot;Joomla&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_email&amp;quot;:&amp;quot;email@example.com&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_user&amp;quot;:&amp;quot;user&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_password&amp;quot;:&amp;quot;password&amp;quot;,&lt;br /&gt;
  &amp;quot;db_type&amp;quot;:&amp;quot;mysql&amp;quot;,&lt;br /&gt;
  &amp;quot;db_host&amp;quot;:&amp;quot;localhost&amp;quot;,&lt;br /&gt;
  &amp;quot;db_user&amp;quot;:&amp;quot;root&amp;quot;,&lt;br /&gt;
  &amp;quot;db_pass&amp;quot;:&amp;quot;xcdxcx&amp;quot;,&lt;br /&gt;
  &amp;quot;db_name&amp;quot;:&amp;quot;jtest&amp;quot;,&lt;br /&gt;
  &amp;quot;db_prefix&amp;quot;:&amp;quot;efs0k_&amp;quot;,&lt;br /&gt;
  &amp;quot;db_old&amp;quot;:&amp;quot;remove&amp;quot;,&lt;br /&gt;
  &amp;quot;helpurl&amp;quot;:&amp;quot;https://joomla.org&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
OR as sample &amp;lt;tt&amp;gt;config.ini&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
site_name=&amp;quot;gsoc&amp;quot;&lt;br /&gt;
admin_email=&amp;quot;user@example.com&amp;quot;&lt;br /&gt;
admin_user=&amp;quot;user&amp;quot;&lt;br /&gt;
admin_password=&amp;quot;secret&amp;quot;&lt;br /&gt;
db_type=&amp;quot;mysql&amp;quot;&lt;br /&gt;
db_host=&amp;quot;localhost&amp;quot;&lt;br /&gt;
db_user=&amp;quot;root&amp;quot;&lt;br /&gt;
db_pass=&amp;quot;&amp;quot;&lt;br /&gt;
db_name=&amp;quot;joomla&amp;quot;&lt;br /&gt;
db_prefix=&amp;quot;prefix_&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The options defined are loaded and validated after which the installation will run.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Configuration based commands====&lt;br /&gt;
The next set of commands we will be looking at is for setting and viewing configuration options inside the Joomla installation:&lt;br /&gt;
&lt;br /&gt;
=====Setting configurations=====&lt;br /&gt;
The CLI Update provides a command to change the value of an option existing in the configuration. Using the &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command you can set any configuration option that exists inside the &amp;lt;tt&amp;gt;configuration.php&amp;lt;/tt&amp;gt;. This is how to use command:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:set mailer=mail&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Config set single.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
You can even add multiple option-value pairs like this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:set mailer=mail fromname=Joomla! sitename=&amp;quot;Joomla Site&amp;quot;&amp;lt;/tt&amp;gt;&lt;br /&gt;
This will set multiple options at once.&lt;br /&gt;
&lt;br /&gt;
[[File:Config set multiple.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Getting configurations=====&lt;br /&gt;
The next command in this category is the &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command, as the name suggests it gets the value of an option that exists inside the &amp;lt;tt&amp;gt;configuration.php&amp;lt;/tt&amp;gt;, when no argument is supplied to the command, it will display all the options available in a tabulated form. Here is the command:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get sitename&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return the value for the option &amp;lt;tt&amp;gt;sitename&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:011-cli.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return all the values for the available options.&lt;br /&gt;
&lt;br /&gt;
[[File:Config get all.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Getting grouped configurations=====&lt;br /&gt;
The CLI Update adds an option to &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command that allows us to get logically grouped options, say for example you want to view all your database related options, or you want to view all email related options. To achieve this the CLI Update provides an option to specify a group of options to display, here is how to do that: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get --group=mail&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Config get group.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
The command takes in the &amp;lt;tt&amp;gt;group&amp;lt;/tt&amp;gt; option and given the value of &amp;lt;tt&amp;gt;mail&amp;lt;/tt&amp;gt;. CLI Update currently supports group values: mail, db and session.&lt;br /&gt;
&lt;br /&gt;
====Site down and Site up commands====&lt;br /&gt;
As their name suggests, these commands allow you to quickly put your Joomla powered website into offline or online mode. Here is how to use the commands:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php site:up&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Site up.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php site:down&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Site down.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
The second command puts the website in offline mode while the first command brings the website to online mode.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Contributing to CLI Update as a developer==&lt;br /&gt;
&lt;br /&gt;
===Adding more commands===&lt;br /&gt;
The CLI Update ships with some commands which are added based on the need seen as of the time. However, the CLI Update allows other commands to be added easily and this is what this section is for. A video tutorial is included below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;video-container&amp;quot;&amp;gt;&lt;br /&gt;
{{#widget:YouTube|id=gcJJtTcPiTg}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Calling other commands within command classes===&lt;br /&gt;
Should in case a command you want to write for the CLI Update is going to be require that you call an existing command internally, this is how that can be achieved from within another command class:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
class RunHelloCommand extends AbstractCommand {&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
    public function execute(): int {&lt;br /&gt;
        $command = $this-&amp;gt;getApplication()-&amp;gt;getCommand(&#039;say:hello&#039;);&lt;br /&gt;
        $code = $command-&amp;gt;execute();&lt;br /&gt;
&lt;br /&gt;
        if($code === 0) {&lt;br /&gt;
            // command ran successfully, do something&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    ...&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here, we&#039;re attempting to call the &amp;lt;tt&amp;gt;say:hello&amp;lt;/tt&amp;gt; command created in the Video above.&lt;br /&gt;
&lt;br /&gt;
===Some important things to checkout===&lt;br /&gt;
*Symfony Style Documentation: [https://symfony.com/doc/current/console/style.html How to Style a Console Command]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Google Summer of Code 2018]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Joomla!_4.x]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Translations:J4.x:CLI_Update/11/fr&amp;diff=636518</id>
		<title>Translations:J4.x:CLI Update/11/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Translations:J4.x:CLI_Update/11/fr&amp;diff=636518"/>
		<updated>2019-10-19T11:40:05Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: Created page with &amp;quot;Dans cette section, nous parlerons de l&amp;#039;utilisation des commandes, nous parlerons des différentes commandes, de ce qu&amp;#039;elles sont et comment vous pouvez les utiliser. Nous iro...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Dans cette section, nous parlerons de l&#039;utilisation des commandes, nous parlerons des différentes commandes, de ce qu&#039;elles sont et comment vous pouvez les utiliser. Nous irons voir les commandes disponibles dans la mise à jour de CLI.&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Update/fr&amp;diff=636513</id>
		<title>J4.x:CLI Update/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Update/fr&amp;diff=636513"/>
		<updated>2019-10-19T11:39:40Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: Created page with &amp;quot;==Utilisation des commandes générales==&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{Top portal heading|color=white-bkgd|text-color=#333|title=&lt;br /&gt;
GSoC 2018 &amp;lt;br /&amp;gt;&lt;br /&gt;
Documentation&amp;lt;br /&amp;gt;sur les lignes de commande}}&lt;br /&gt;
[[Image:Gsoc2016.png|75px|center|link=GSOC 2018]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;{{Joomla version|version=4.x}}&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Pour effectuer une tâche mineure dans Joomla!, le tableau de bord de l&#039;administrateur peut sembler fastidieux et lent. La mise à jour de l&#039;application CLI introduit un moyen plus rapide d&#039;effectuer certaines de ces opérations via la ligne de commande. Cela offre un moyen d&#039;intégrer les choses plus rapidement dans l&#039;application Joomla!. Grâce à ce logiciel, les petits tests peuvent être effectués plus rapidement sans passer par le processus du tableau de bord Web. C’est une application CLI pour Joomla! CMS qui permet à l&#039;utilisateur d&#039;effectuer des mises à jour dans le CMS.&lt;br /&gt;
&lt;br /&gt;
Cette documentation montre comment utiliser la mise à jour de l&#039;application CLI et comment étendre ses fonctionnalités en tant que développeur.&lt;br /&gt;
&lt;br /&gt;
===Pré-requis===&lt;br /&gt;
Comme c&#039;est le cas pour toutes les applications CLI (Command Line Interface), l&#039;accès à votre installation Joomla! via la ligne de commande est nécessaire pour utiliser les outils fournis par le CLI Update.&lt;br /&gt;
Vous devriez peut-être envisager d&#039;avoir un accès SSH pour votre serveur en direct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Termes et définitions===&lt;br /&gt;
*CLI - Command Line Interface&lt;br /&gt;
*SSH - Secure SHell&lt;br /&gt;
&lt;br /&gt;
==Utilisation de la mise-à-jour en mode CLI==&lt;br /&gt;
In other for you to use the tools provided by CLI Update, as said in former section, you need access to a CLI into the root of the Joomla Installation. In other words you have to be in the root folder of your Joomla CMS as all commands will run from the root folder.&lt;br /&gt;
[[File:All commands.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
==Utilisation des commandes générales==&lt;br /&gt;
In this section we will talk about the usage of commands, we will talk about different commands, what they are and how you can use them. We will go by checking out available commands in the CLI Update.&lt;br /&gt;
&lt;br /&gt;
===Available commands===&lt;br /&gt;
There are quite a number of commands available in the CLI Update that are ready for use.  These commands are grouped based on the area of the Joomla! CMS that they are touching.&lt;br /&gt;
&lt;br /&gt;
====Checking for Updates Updates====&lt;br /&gt;
The CLI Update provides a command to check for Joomla! updates, it works just like the web version of &amp;lt;tt&amp;gt;com_joomlaupdate&amp;lt;/tt&amp;gt;, it retrieves update and tells if update is available or not. To run the update check, we will just issue the command like this from the root directory:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php check-updates&amp;lt;/tt&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The command runs and the output displays an available update version, if available, or tell otherwise that the current installation is up to date.&lt;br /&gt;
[[File:Check updates.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Extension commands==== &lt;br /&gt;
The next group of commands are the extension based commands, simply put, the commands allows us to manage extensions within the Jommla! core, the CLI Update ships with commands to install, list and remove extensions.&lt;br /&gt;
&lt;br /&gt;
======Listing installed extensions======&lt;br /&gt;
This command allows us to list all installed extensions. This command can run in two different ways which are:&lt;br /&gt;
*&#039;&#039;General Listing&#039;&#039;: Lists all the extensions installed, by extensions it means components, languages, plugins, modules will be listed together when you run this command. This is how you call the command:{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:list&amp;lt;/tt/&amp;gt; {{-}}[[File:Extension list.png|center|800px]]&lt;br /&gt;
*&#039;&#039;Listing By types&#039;&#039;: General listing of extension can be tedious if you&#039;re looking for a particular extension out of the big list, however, you can beat down the numbers specifying the type of extensions you can the command to display by adding a type option to the command. Here is how that is done: {{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:list --type=language&amp;lt;/tt&amp;gt;{{-}}[[File:Extension list type.png|center|800px]]&lt;br /&gt;
This will list out only language based extensions, you can specify type as module, plugin and component as well.&lt;br /&gt;
&lt;br /&gt;
======Installing an Extension======&lt;br /&gt;
Joomla provides installing an extension through an URL to the zip file or a path to the file, the CLI Update provides both as well and how you can use them is described below.&lt;br /&gt;
*&#039;&#039;Installing from URL&#039;&#039;: To install an extension from URL we will run the command like this and provide an argument and option for the &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command.{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:install url --url=https://github.com/joomla-extensions/patchtester/releases/download/3.0.0-beta3/com_patchtester.zip&amp;lt;/tt&amp;gt;{{-}}This will download the &amp;lt;tt&amp;gt;com_patchtester&amp;lt;/tt&amp;gt; extension.&lt;br /&gt;
{{-}}[[File:Extension install url.png|center|800px]]&lt;br /&gt;
*&#039;&#039;Installing from a PATH&#039;&#039;:To install an extension from a PATH we will run the same &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command and specify arguments for paths like this:{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:install path --path=/Users/bosunski/docs/com_pathtester.zip&amp;lt;/tt&amp;gt; {{-}}[[File:Extension install path.png|center|800px]]&lt;br /&gt;
This loads the extension and performs the installation as expected.&lt;br /&gt;
&lt;br /&gt;
======Removing an extension======&lt;br /&gt;
The last command under this category is the &amp;lt;tt&amp;gt;extension:remove&amp;lt;/tt&amp;gt; command that is used to remove extensions from the Joomla CMS. This command takes in the &amp;lt;tt&amp;gt;extension_id&amp;lt;/tt&amp;gt; as an argument, you can always use the &amp;lt;tt&amp;gt;extension:list&amp;lt;/tt&amp;gt; to display extension id. This is how we remove an extension of id &amp;lt;tt&amp;gt;803&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php extension:remove 803&amp;lt;/tt&amp;gt;&lt;br /&gt;
[[File:Extension Remove.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Updating the Joomla Core====&lt;br /&gt;
As much as the CLI Update provides a command to check update, it also provides a command to perform the update if an update is available. To perform update we will just run this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php core:update&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
This command updates the Joomla core updating it to the latest version available.&lt;br /&gt;
&lt;br /&gt;
[[File:Core update.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Installing Joomla! via the CLI====&lt;br /&gt;
The next command here is the &amp;lt;tt&amp;gt;core:install&amp;lt;/tt&amp;gt; command that lets installation of Joomla CMS to be done via the CLI. This command can  work in 2 modes: The Interactive mode and the Non-interactive mode.&lt;br /&gt;
&lt;br /&gt;
=====Interactive installation=====&lt;br /&gt;
To have a fresh installation of Joomla using the interactive mode we will just run the &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command like so:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php extension:install&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The default installation mode will run and will ask you to input the settings as it&#039;s required, once all options have been provided and validated, the installations will run and Joomla will be installed.&lt;br /&gt;
&lt;br /&gt;
[[File:Core install interactive.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Non-interactive Installation=====&lt;br /&gt;
The next type of installation is the Non-interactive mode. In this mode you will not be asked to input the options but rather all options will be specified within a file and the command will take in an option that specifies the path to the file you want to load the options from, it&#039;s done like this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php core:install --file=/path/to/config.json&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Core install file.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
An example of the contents of &amp;lt;tt&amp;gt;config.json&amp;lt;/tt&amp;gt; can be:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;language&amp;quot;:&amp;quot;en-GB&amp;quot;,&lt;br /&gt;
  &amp;quot;site_name&amp;quot;:&amp;quot;Joomla&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_email&amp;quot;:&amp;quot;email@example.com&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_user&amp;quot;:&amp;quot;user&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_password&amp;quot;:&amp;quot;password&amp;quot;,&lt;br /&gt;
  &amp;quot;db_type&amp;quot;:&amp;quot;mysql&amp;quot;,&lt;br /&gt;
  &amp;quot;db_host&amp;quot;:&amp;quot;localhost&amp;quot;,&lt;br /&gt;
  &amp;quot;db_user&amp;quot;:&amp;quot;root&amp;quot;,&lt;br /&gt;
  &amp;quot;db_pass&amp;quot;:&amp;quot;xcdxcx&amp;quot;,&lt;br /&gt;
  &amp;quot;db_name&amp;quot;:&amp;quot;jtest&amp;quot;,&lt;br /&gt;
  &amp;quot;db_prefix&amp;quot;:&amp;quot;efs0k_&amp;quot;,&lt;br /&gt;
  &amp;quot;db_old&amp;quot;:&amp;quot;remove&amp;quot;,&lt;br /&gt;
  &amp;quot;helpurl&amp;quot;:&amp;quot;https://joomla.org&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
OR as sample &amp;lt;tt&amp;gt;config.ini&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
site_name=&amp;quot;gsoc&amp;quot;&lt;br /&gt;
admin_email=&amp;quot;user@example.com&amp;quot;&lt;br /&gt;
admin_user=&amp;quot;user&amp;quot;&lt;br /&gt;
admin_password=&amp;quot;secret&amp;quot;&lt;br /&gt;
db_type=&amp;quot;mysql&amp;quot;&lt;br /&gt;
db_host=&amp;quot;localhost&amp;quot;&lt;br /&gt;
db_user=&amp;quot;root&amp;quot;&lt;br /&gt;
db_pass=&amp;quot;&amp;quot;&lt;br /&gt;
db_name=&amp;quot;joomla&amp;quot;&lt;br /&gt;
db_prefix=&amp;quot;prefix_&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The options defined are loaded and validated after which the installation will run.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Configuration based commands====&lt;br /&gt;
The next set of commands we will be looking at is for setting and viewing configuration options inside the Joomla installation:&lt;br /&gt;
&lt;br /&gt;
=====Setting configurations=====&lt;br /&gt;
The CLI Update provides a command to change the value of an option existing in the configuration. Using the &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command you can set any configuration option that exists inside the &amp;lt;tt&amp;gt;configuration.php&amp;lt;/tt&amp;gt;. This is how to use command:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:set mailer=mail&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Config set single.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
You can even add multiple option-value pairs like this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:set mailer=mail fromname=Joomla! sitename=&amp;quot;Joomla Site&amp;quot;&amp;lt;/tt&amp;gt;&lt;br /&gt;
This will set multiple options at once.&lt;br /&gt;
&lt;br /&gt;
[[File:Config set multiple.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Getting configurations=====&lt;br /&gt;
The next command in this category is the &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command, as the name suggests it gets the value of an option that exists inside the &amp;lt;tt&amp;gt;configuration.php&amp;lt;/tt&amp;gt;, when no argument is supplied to the command, it will display all the options available in a tabulated form. Here is the command:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get sitename&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return the value for the option &amp;lt;tt&amp;gt;sitename&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:011-cli.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return all the values for the available options.&lt;br /&gt;
&lt;br /&gt;
[[File:Config get all.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Getting grouped configurations=====&lt;br /&gt;
The CLI Update adds an option to &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command that allows us to get logically grouped options, say for example you want to view all your database related options, or you want to view all email related options. To achieve this the CLI Update provides an option to specify a group of options to display, here is how to do that: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get --group=mail&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Config get group.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
The command takes in the &amp;lt;tt&amp;gt;group&amp;lt;/tt&amp;gt; option and given the value of &amp;lt;tt&amp;gt;mail&amp;lt;/tt&amp;gt;. CLI Update currently supports group values: mail, db and session.&lt;br /&gt;
&lt;br /&gt;
====Site down and Site up commands====&lt;br /&gt;
As their name suggests, these commands allow you to quickly put your Joomla powered website into offline or online mode. Here is how to use the commands:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php site:up&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Site up.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php site:down&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Site down.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
The second command puts the website in offline mode while the first command brings the website to online mode.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Contributing to CLI Update as a developer==&lt;br /&gt;
&lt;br /&gt;
===Adding more commands===&lt;br /&gt;
The CLI Update ships with some commands which are added based on the need seen as of the time. However, the CLI Update allows other commands to be added easily and this is what this section is for. A video tutorial is included below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;video-container&amp;quot;&amp;gt;&lt;br /&gt;
{{#widget:YouTube|id=gcJJtTcPiTg}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Calling other commands within command classes===&lt;br /&gt;
Should in case a command you want to write for the CLI Update is going to be require that you call an existing command internally, this is how that can be achieved from within another command class:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
class RunHelloCommand extends AbstractCommand {&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
    public function execute(): int {&lt;br /&gt;
        $command = $this-&amp;gt;getApplication()-&amp;gt;getCommand(&#039;say:hello&#039;);&lt;br /&gt;
        $code = $command-&amp;gt;execute();&lt;br /&gt;
&lt;br /&gt;
        if($code === 0) {&lt;br /&gt;
            // command ran successfully, do something&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    ...&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here, we&#039;re attempting to call the &amp;lt;tt&amp;gt;say:hello&amp;lt;/tt&amp;gt; command created in the Video above.&lt;br /&gt;
&lt;br /&gt;
===Some important things to checkout===&lt;br /&gt;
*Symfony Style Documentation: [https://symfony.com/doc/current/console/style.html How to Style a Console Command]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Google Summer of Code 2018]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Joomla!_4.x]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Translations:J4.x:CLI_Update/10/fr&amp;diff=636512</id>
		<title>Translations:J4.x:CLI Update/10/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Translations:J4.x:CLI_Update/10/fr&amp;diff=636512"/>
		<updated>2019-10-19T11:39:40Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: Created page with &amp;quot;==Utilisation des commandes générales==&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Utilisation des commandes générales==&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Update/fr&amp;diff=636508</id>
		<title>J4.x:CLI Update/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Update/fr&amp;diff=636508"/>
		<updated>2019-10-19T11:38:36Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: Created page with &amp;quot;==Utilisation de la mise-à-jour en mode CLI==&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{Top portal heading|color=white-bkgd|text-color=#333|title=&lt;br /&gt;
GSoC 2018 &amp;lt;br /&amp;gt;&lt;br /&gt;
Documentation&amp;lt;br /&amp;gt;sur les lignes de commande}}&lt;br /&gt;
[[Image:Gsoc2016.png|75px|center|link=GSOC 2018]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;{{Joomla version|version=4.x}}&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Pour effectuer une tâche mineure dans Joomla!, le tableau de bord de l&#039;administrateur peut sembler fastidieux et lent. La mise à jour de l&#039;application CLI introduit un moyen plus rapide d&#039;effectuer certaines de ces opérations via la ligne de commande. Cela offre un moyen d&#039;intégrer les choses plus rapidement dans l&#039;application Joomla!. Grâce à ce logiciel, les petits tests peuvent être effectués plus rapidement sans passer par le processus du tableau de bord Web. C’est une application CLI pour Joomla! CMS qui permet à l&#039;utilisateur d&#039;effectuer des mises à jour dans le CMS.&lt;br /&gt;
&lt;br /&gt;
Cette documentation montre comment utiliser la mise à jour de l&#039;application CLI et comment étendre ses fonctionnalités en tant que développeur.&lt;br /&gt;
&lt;br /&gt;
===Pré-requis===&lt;br /&gt;
Comme c&#039;est le cas pour toutes les applications CLI (Command Line Interface), l&#039;accès à votre installation Joomla! via la ligne de commande est nécessaire pour utiliser les outils fournis par le CLI Update.&lt;br /&gt;
Vous devriez peut-être envisager d&#039;avoir un accès SSH pour votre serveur en direct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Termes et définitions===&lt;br /&gt;
*CLI - Command Line Interface&lt;br /&gt;
*SSH - Secure SHell&lt;br /&gt;
&lt;br /&gt;
==Utilisation de la mise-à-jour en mode CLI==&lt;br /&gt;
In other for you to use the tools provided by CLI Update, as said in former section, you need access to a CLI into the root of the Joomla Installation. In other words you have to be in the root folder of your Joomla CMS as all commands will run from the root folder.&lt;br /&gt;
[[File:All commands.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
==General Command Usage==&lt;br /&gt;
In this section we will talk about the usage of commands, we will talk about different commands, what they are and how you can use them. We will go by checking out available commands in the CLI Update.&lt;br /&gt;
&lt;br /&gt;
===Available commands===&lt;br /&gt;
There are quite a number of commands available in the CLI Update that are ready for use.  These commands are grouped based on the area of the Joomla! CMS that they are touching.&lt;br /&gt;
&lt;br /&gt;
====Checking for Updates Updates====&lt;br /&gt;
The CLI Update provides a command to check for Joomla! updates, it works just like the web version of &amp;lt;tt&amp;gt;com_joomlaupdate&amp;lt;/tt&amp;gt;, it retrieves update and tells if update is available or not. To run the update check, we will just issue the command like this from the root directory:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php check-updates&amp;lt;/tt&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The command runs and the output displays an available update version, if available, or tell otherwise that the current installation is up to date.&lt;br /&gt;
[[File:Check updates.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Extension commands==== &lt;br /&gt;
The next group of commands are the extension based commands, simply put, the commands allows us to manage extensions within the Jommla! core, the CLI Update ships with commands to install, list and remove extensions.&lt;br /&gt;
&lt;br /&gt;
======Listing installed extensions======&lt;br /&gt;
This command allows us to list all installed extensions. This command can run in two different ways which are:&lt;br /&gt;
*&#039;&#039;General Listing&#039;&#039;: Lists all the extensions installed, by extensions it means components, languages, plugins, modules will be listed together when you run this command. This is how you call the command:{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:list&amp;lt;/tt/&amp;gt; {{-}}[[File:Extension list.png|center|800px]]&lt;br /&gt;
*&#039;&#039;Listing By types&#039;&#039;: General listing of extension can be tedious if you&#039;re looking for a particular extension out of the big list, however, you can beat down the numbers specifying the type of extensions you can the command to display by adding a type option to the command. Here is how that is done: {{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:list --type=language&amp;lt;/tt&amp;gt;{{-}}[[File:Extension list type.png|center|800px]]&lt;br /&gt;
This will list out only language based extensions, you can specify type as module, plugin and component as well.&lt;br /&gt;
&lt;br /&gt;
======Installing an Extension======&lt;br /&gt;
Joomla provides installing an extension through an URL to the zip file or a path to the file, the CLI Update provides both as well and how you can use them is described below.&lt;br /&gt;
*&#039;&#039;Installing from URL&#039;&#039;: To install an extension from URL we will run the command like this and provide an argument and option for the &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command.{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:install url --url=https://github.com/joomla-extensions/patchtester/releases/download/3.0.0-beta3/com_patchtester.zip&amp;lt;/tt&amp;gt;{{-}}This will download the &amp;lt;tt&amp;gt;com_patchtester&amp;lt;/tt&amp;gt; extension.&lt;br /&gt;
{{-}}[[File:Extension install url.png|center|800px]]&lt;br /&gt;
*&#039;&#039;Installing from a PATH&#039;&#039;:To install an extension from a PATH we will run the same &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command and specify arguments for paths like this:{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:install path --path=/Users/bosunski/docs/com_pathtester.zip&amp;lt;/tt&amp;gt; {{-}}[[File:Extension install path.png|center|800px]]&lt;br /&gt;
This loads the extension and performs the installation as expected.&lt;br /&gt;
&lt;br /&gt;
======Removing an extension======&lt;br /&gt;
The last command under this category is the &amp;lt;tt&amp;gt;extension:remove&amp;lt;/tt&amp;gt; command that is used to remove extensions from the Joomla CMS. This command takes in the &amp;lt;tt&amp;gt;extension_id&amp;lt;/tt&amp;gt; as an argument, you can always use the &amp;lt;tt&amp;gt;extension:list&amp;lt;/tt&amp;gt; to display extension id. This is how we remove an extension of id &amp;lt;tt&amp;gt;803&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php extension:remove 803&amp;lt;/tt&amp;gt;&lt;br /&gt;
[[File:Extension Remove.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Updating the Joomla Core====&lt;br /&gt;
As much as the CLI Update provides a command to check update, it also provides a command to perform the update if an update is available. To perform update we will just run this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php core:update&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
This command updates the Joomla core updating it to the latest version available.&lt;br /&gt;
&lt;br /&gt;
[[File:Core update.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Installing Joomla! via the CLI====&lt;br /&gt;
The next command here is the &amp;lt;tt&amp;gt;core:install&amp;lt;/tt&amp;gt; command that lets installation of Joomla CMS to be done via the CLI. This command can  work in 2 modes: The Interactive mode and the Non-interactive mode.&lt;br /&gt;
&lt;br /&gt;
=====Interactive installation=====&lt;br /&gt;
To have a fresh installation of Joomla using the interactive mode we will just run the &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command like so:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php extension:install&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The default installation mode will run and will ask you to input the settings as it&#039;s required, once all options have been provided and validated, the installations will run and Joomla will be installed.&lt;br /&gt;
&lt;br /&gt;
[[File:Core install interactive.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Non-interactive Installation=====&lt;br /&gt;
The next type of installation is the Non-interactive mode. In this mode you will not be asked to input the options but rather all options will be specified within a file and the command will take in an option that specifies the path to the file you want to load the options from, it&#039;s done like this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php core:install --file=/path/to/config.json&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Core install file.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
An example of the contents of &amp;lt;tt&amp;gt;config.json&amp;lt;/tt&amp;gt; can be:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;language&amp;quot;:&amp;quot;en-GB&amp;quot;,&lt;br /&gt;
  &amp;quot;site_name&amp;quot;:&amp;quot;Joomla&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_email&amp;quot;:&amp;quot;email@example.com&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_user&amp;quot;:&amp;quot;user&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_password&amp;quot;:&amp;quot;password&amp;quot;,&lt;br /&gt;
  &amp;quot;db_type&amp;quot;:&amp;quot;mysql&amp;quot;,&lt;br /&gt;
  &amp;quot;db_host&amp;quot;:&amp;quot;localhost&amp;quot;,&lt;br /&gt;
  &amp;quot;db_user&amp;quot;:&amp;quot;root&amp;quot;,&lt;br /&gt;
  &amp;quot;db_pass&amp;quot;:&amp;quot;xcdxcx&amp;quot;,&lt;br /&gt;
  &amp;quot;db_name&amp;quot;:&amp;quot;jtest&amp;quot;,&lt;br /&gt;
  &amp;quot;db_prefix&amp;quot;:&amp;quot;efs0k_&amp;quot;,&lt;br /&gt;
  &amp;quot;db_old&amp;quot;:&amp;quot;remove&amp;quot;,&lt;br /&gt;
  &amp;quot;helpurl&amp;quot;:&amp;quot;https://joomla.org&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
OR as sample &amp;lt;tt&amp;gt;config.ini&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
site_name=&amp;quot;gsoc&amp;quot;&lt;br /&gt;
admin_email=&amp;quot;user@example.com&amp;quot;&lt;br /&gt;
admin_user=&amp;quot;user&amp;quot;&lt;br /&gt;
admin_password=&amp;quot;secret&amp;quot;&lt;br /&gt;
db_type=&amp;quot;mysql&amp;quot;&lt;br /&gt;
db_host=&amp;quot;localhost&amp;quot;&lt;br /&gt;
db_user=&amp;quot;root&amp;quot;&lt;br /&gt;
db_pass=&amp;quot;&amp;quot;&lt;br /&gt;
db_name=&amp;quot;joomla&amp;quot;&lt;br /&gt;
db_prefix=&amp;quot;prefix_&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The options defined are loaded and validated after which the installation will run.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Configuration based commands====&lt;br /&gt;
The next set of commands we will be looking at is for setting and viewing configuration options inside the Joomla installation:&lt;br /&gt;
&lt;br /&gt;
=====Setting configurations=====&lt;br /&gt;
The CLI Update provides a command to change the value of an option existing in the configuration. Using the &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command you can set any configuration option that exists inside the &amp;lt;tt&amp;gt;configuration.php&amp;lt;/tt&amp;gt;. This is how to use command:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:set mailer=mail&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Config set single.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
You can even add multiple option-value pairs like this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:set mailer=mail fromname=Joomla! sitename=&amp;quot;Joomla Site&amp;quot;&amp;lt;/tt&amp;gt;&lt;br /&gt;
This will set multiple options at once.&lt;br /&gt;
&lt;br /&gt;
[[File:Config set multiple.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Getting configurations=====&lt;br /&gt;
The next command in this category is the &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command, as the name suggests it gets the value of an option that exists inside the &amp;lt;tt&amp;gt;configuration.php&amp;lt;/tt&amp;gt;, when no argument is supplied to the command, it will display all the options available in a tabulated form. Here is the command:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get sitename&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return the value for the option &amp;lt;tt&amp;gt;sitename&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:011-cli.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return all the values for the available options.&lt;br /&gt;
&lt;br /&gt;
[[File:Config get all.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Getting grouped configurations=====&lt;br /&gt;
The CLI Update adds an option to &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command that allows us to get logically grouped options, say for example you want to view all your database related options, or you want to view all email related options. To achieve this the CLI Update provides an option to specify a group of options to display, here is how to do that: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get --group=mail&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Config get group.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
The command takes in the &amp;lt;tt&amp;gt;group&amp;lt;/tt&amp;gt; option and given the value of &amp;lt;tt&amp;gt;mail&amp;lt;/tt&amp;gt;. CLI Update currently supports group values: mail, db and session.&lt;br /&gt;
&lt;br /&gt;
====Site down and Site up commands====&lt;br /&gt;
As their name suggests, these commands allow you to quickly put your Joomla powered website into offline or online mode. Here is how to use the commands:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php site:up&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Site up.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php site:down&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Site down.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
The second command puts the website in offline mode while the first command brings the website to online mode.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Contributing to CLI Update as a developer==&lt;br /&gt;
&lt;br /&gt;
===Adding more commands===&lt;br /&gt;
The CLI Update ships with some commands which are added based on the need seen as of the time. However, the CLI Update allows other commands to be added easily and this is what this section is for. A video tutorial is included below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;video-container&amp;quot;&amp;gt;&lt;br /&gt;
{{#widget:YouTube|id=gcJJtTcPiTg}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Calling other commands within command classes===&lt;br /&gt;
Should in case a command you want to write for the CLI Update is going to be require that you call an existing command internally, this is how that can be achieved from within another command class:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
class RunHelloCommand extends AbstractCommand {&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
    public function execute(): int {&lt;br /&gt;
        $command = $this-&amp;gt;getApplication()-&amp;gt;getCommand(&#039;say:hello&#039;);&lt;br /&gt;
        $code = $command-&amp;gt;execute();&lt;br /&gt;
&lt;br /&gt;
        if($code === 0) {&lt;br /&gt;
            // command ran successfully, do something&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    ...&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here, we&#039;re attempting to call the &amp;lt;tt&amp;gt;say:hello&amp;lt;/tt&amp;gt; command created in the Video above.&lt;br /&gt;
&lt;br /&gt;
===Some important things to checkout===&lt;br /&gt;
*Symfony Style Documentation: [https://symfony.com/doc/current/console/style.html How to Style a Console Command]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Google Summer of Code 2018]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Joomla!_4.x]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Translations:J4.x:CLI_Update/8/fr&amp;diff=636507</id>
		<title>Translations:J4.x:CLI Update/8/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Translations:J4.x:CLI_Update/8/fr&amp;diff=636507"/>
		<updated>2019-10-19T11:38:35Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: Created page with &amp;quot;==Utilisation de la mise-à-jour en mode CLI==&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Utilisation de la mise-à-jour en mode CLI==&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Update/fr&amp;diff=636504</id>
		<title>J4.x:CLI Update/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Update/fr&amp;diff=636504"/>
		<updated>2019-10-19T11:38:00Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: Created page with &amp;quot;Comme c&amp;#039;est le cas pour toutes les applications CLI (Command Line Interface), l&amp;#039;accès à votre installation Joomla! via la ligne de commande est nécessaire pour utiliser les...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{Top portal heading|color=white-bkgd|text-color=#333|title=&lt;br /&gt;
GSoC 2018 &amp;lt;br /&amp;gt;&lt;br /&gt;
Documentation&amp;lt;br /&amp;gt;sur les lignes de commande}}&lt;br /&gt;
[[Image:Gsoc2016.png|75px|center|link=GSOC 2018]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;{{Joomla version|version=4.x}}&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Pour effectuer une tâche mineure dans Joomla!, le tableau de bord de l&#039;administrateur peut sembler fastidieux et lent. La mise à jour de l&#039;application CLI introduit un moyen plus rapide d&#039;effectuer certaines de ces opérations via la ligne de commande. Cela offre un moyen d&#039;intégrer les choses plus rapidement dans l&#039;application Joomla!. Grâce à ce logiciel, les petits tests peuvent être effectués plus rapidement sans passer par le processus du tableau de bord Web. C’est une application CLI pour Joomla! CMS qui permet à l&#039;utilisateur d&#039;effectuer des mises à jour dans le CMS.&lt;br /&gt;
&lt;br /&gt;
Cette documentation montre comment utiliser la mise à jour de l&#039;application CLI et comment étendre ses fonctionnalités en tant que développeur.&lt;br /&gt;
&lt;br /&gt;
===Pré-requis===&lt;br /&gt;
Comme c&#039;est le cas pour toutes les applications CLI (Command Line Interface), l&#039;accès à votre installation Joomla! via la ligne de commande est nécessaire pour utiliser les outils fournis par le CLI Update.&lt;br /&gt;
Vous devriez peut-être envisager d&#039;avoir un accès SSH pour votre serveur en direct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Termes et définitions===&lt;br /&gt;
*CLI - Command Line Interface&lt;br /&gt;
*SSH - Secure SHell&lt;br /&gt;
&lt;br /&gt;
==Using the CLI Update==&lt;br /&gt;
In other for you to use the tools provided by CLI Update, as said in former section, you need access to a CLI into the root of the Joomla Installation. In other words you have to be in the root folder of your Joomla CMS as all commands will run from the root folder.&lt;br /&gt;
[[File:All commands.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
==General Command Usage==&lt;br /&gt;
In this section we will talk about the usage of commands, we will talk about different commands, what they are and how you can use them. We will go by checking out available commands in the CLI Update.&lt;br /&gt;
&lt;br /&gt;
===Available commands===&lt;br /&gt;
There are quite a number of commands available in the CLI Update that are ready for use.  These commands are grouped based on the area of the Joomla! CMS that they are touching.&lt;br /&gt;
&lt;br /&gt;
====Checking for Updates Updates====&lt;br /&gt;
The CLI Update provides a command to check for Joomla! updates, it works just like the web version of &amp;lt;tt&amp;gt;com_joomlaupdate&amp;lt;/tt&amp;gt;, it retrieves update and tells if update is available or not. To run the update check, we will just issue the command like this from the root directory:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php check-updates&amp;lt;/tt&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The command runs and the output displays an available update version, if available, or tell otherwise that the current installation is up to date.&lt;br /&gt;
[[File:Check updates.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Extension commands==== &lt;br /&gt;
The next group of commands are the extension based commands, simply put, the commands allows us to manage extensions within the Jommla! core, the CLI Update ships with commands to install, list and remove extensions.&lt;br /&gt;
&lt;br /&gt;
======Listing installed extensions======&lt;br /&gt;
This command allows us to list all installed extensions. This command can run in two different ways which are:&lt;br /&gt;
*&#039;&#039;General Listing&#039;&#039;: Lists all the extensions installed, by extensions it means components, languages, plugins, modules will be listed together when you run this command. This is how you call the command:{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:list&amp;lt;/tt/&amp;gt; {{-}}[[File:Extension list.png|center|800px]]&lt;br /&gt;
*&#039;&#039;Listing By types&#039;&#039;: General listing of extension can be tedious if you&#039;re looking for a particular extension out of the big list, however, you can beat down the numbers specifying the type of extensions you can the command to display by adding a type option to the command. Here is how that is done: {{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:list --type=language&amp;lt;/tt&amp;gt;{{-}}[[File:Extension list type.png|center|800px]]&lt;br /&gt;
This will list out only language based extensions, you can specify type as module, plugin and component as well.&lt;br /&gt;
&lt;br /&gt;
======Installing an Extension======&lt;br /&gt;
Joomla provides installing an extension through an URL to the zip file or a path to the file, the CLI Update provides both as well and how you can use them is described below.&lt;br /&gt;
*&#039;&#039;Installing from URL&#039;&#039;: To install an extension from URL we will run the command like this and provide an argument and option for the &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command.{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:install url --url=https://github.com/joomla-extensions/patchtester/releases/download/3.0.0-beta3/com_patchtester.zip&amp;lt;/tt&amp;gt;{{-}}This will download the &amp;lt;tt&amp;gt;com_patchtester&amp;lt;/tt&amp;gt; extension.&lt;br /&gt;
{{-}}[[File:Extension install url.png|center|800px]]&lt;br /&gt;
*&#039;&#039;Installing from a PATH&#039;&#039;:To install an extension from a PATH we will run the same &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command and specify arguments for paths like this:{{-}}&amp;lt;tt&amp;gt;php cli/joomla.php extension:install path --path=/Users/bosunski/docs/com_pathtester.zip&amp;lt;/tt&amp;gt; {{-}}[[File:Extension install path.png|center|800px]]&lt;br /&gt;
This loads the extension and performs the installation as expected.&lt;br /&gt;
&lt;br /&gt;
======Removing an extension======&lt;br /&gt;
The last command under this category is the &amp;lt;tt&amp;gt;extension:remove&amp;lt;/tt&amp;gt; command that is used to remove extensions from the Joomla CMS. This command takes in the &amp;lt;tt&amp;gt;extension_id&amp;lt;/tt&amp;gt; as an argument, you can always use the &amp;lt;tt&amp;gt;extension:list&amp;lt;/tt&amp;gt; to display extension id. This is how we remove an extension of id &amp;lt;tt&amp;gt;803&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php extension:remove 803&amp;lt;/tt&amp;gt;&lt;br /&gt;
[[File:Extension Remove.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Updating the Joomla Core====&lt;br /&gt;
As much as the CLI Update provides a command to check update, it also provides a command to perform the update if an update is available. To perform update we will just run this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php core:update&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
This command updates the Joomla core updating it to the latest version available.&lt;br /&gt;
&lt;br /&gt;
[[File:Core update.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
====Installing Joomla! via the CLI====&lt;br /&gt;
The next command here is the &amp;lt;tt&amp;gt;core:install&amp;lt;/tt&amp;gt; command that lets installation of Joomla CMS to be done via the CLI. This command can  work in 2 modes: The Interactive mode and the Non-interactive mode.&lt;br /&gt;
&lt;br /&gt;
=====Interactive installation=====&lt;br /&gt;
To have a fresh installation of Joomla using the interactive mode we will just run the &amp;lt;tt&amp;gt;extension:install&amp;lt;/tt&amp;gt; command like so:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php extension:install&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The default installation mode will run and will ask you to input the settings as it&#039;s required, once all options have been provided and validated, the installations will run and Joomla will be installed.&lt;br /&gt;
&lt;br /&gt;
[[File:Core install interactive.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Non-interactive Installation=====&lt;br /&gt;
The next type of installation is the Non-interactive mode. In this mode you will not be asked to input the options but rather all options will be specified within a file and the command will take in an option that specifies the path to the file you want to load the options from, it&#039;s done like this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php core:install --file=/path/to/config.json&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Core install file.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
An example of the contents of &amp;lt;tt&amp;gt;config.json&amp;lt;/tt&amp;gt; can be:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;language&amp;quot;:&amp;quot;en-GB&amp;quot;,&lt;br /&gt;
  &amp;quot;site_name&amp;quot;:&amp;quot;Joomla&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_email&amp;quot;:&amp;quot;email@example.com&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_user&amp;quot;:&amp;quot;user&amp;quot;,&lt;br /&gt;
  &amp;quot;admin_password&amp;quot;:&amp;quot;password&amp;quot;,&lt;br /&gt;
  &amp;quot;db_type&amp;quot;:&amp;quot;mysql&amp;quot;,&lt;br /&gt;
  &amp;quot;db_host&amp;quot;:&amp;quot;localhost&amp;quot;,&lt;br /&gt;
  &amp;quot;db_user&amp;quot;:&amp;quot;root&amp;quot;,&lt;br /&gt;
  &amp;quot;db_pass&amp;quot;:&amp;quot;xcdxcx&amp;quot;,&lt;br /&gt;
  &amp;quot;db_name&amp;quot;:&amp;quot;jtest&amp;quot;,&lt;br /&gt;
  &amp;quot;db_prefix&amp;quot;:&amp;quot;efs0k_&amp;quot;,&lt;br /&gt;
  &amp;quot;db_old&amp;quot;:&amp;quot;remove&amp;quot;,&lt;br /&gt;
  &amp;quot;helpurl&amp;quot;:&amp;quot;https://joomla.org&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
OR as sample &amp;lt;tt&amp;gt;config.ini&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
site_name=&amp;quot;gsoc&amp;quot;&lt;br /&gt;
admin_email=&amp;quot;user@example.com&amp;quot;&lt;br /&gt;
admin_user=&amp;quot;user&amp;quot;&lt;br /&gt;
admin_password=&amp;quot;secret&amp;quot;&lt;br /&gt;
db_type=&amp;quot;mysql&amp;quot;&lt;br /&gt;
db_host=&amp;quot;localhost&amp;quot;&lt;br /&gt;
db_user=&amp;quot;root&amp;quot;&lt;br /&gt;
db_pass=&amp;quot;&amp;quot;&lt;br /&gt;
db_name=&amp;quot;joomla&amp;quot;&lt;br /&gt;
db_prefix=&amp;quot;prefix_&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The options defined are loaded and validated after which the installation will run.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Configuration based commands====&lt;br /&gt;
The next set of commands we will be looking at is for setting and viewing configuration options inside the Joomla installation:&lt;br /&gt;
&lt;br /&gt;
=====Setting configurations=====&lt;br /&gt;
The CLI Update provides a command to change the value of an option existing in the configuration. Using the &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command you can set any configuration option that exists inside the &amp;lt;tt&amp;gt;configuration.php&amp;lt;/tt&amp;gt;. This is how to use command:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:set mailer=mail&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Config set single.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
You can even add multiple option-value pairs like this:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:set mailer=mail fromname=Joomla! sitename=&amp;quot;Joomla Site&amp;quot;&amp;lt;/tt&amp;gt;&lt;br /&gt;
This will set multiple options at once.&lt;br /&gt;
&lt;br /&gt;
[[File:Config set multiple.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Getting configurations=====&lt;br /&gt;
The next command in this category is the &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command, as the name suggests it gets the value of an option that exists inside the &amp;lt;tt&amp;gt;configuration.php&amp;lt;/tt&amp;gt;, when no argument is supplied to the command, it will display all the options available in a tabulated form. Here is the command:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get sitename&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return the value for the option &amp;lt;tt&amp;gt;sitename&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:011-cli.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return all the values for the available options.&lt;br /&gt;
&lt;br /&gt;
[[File:Config get all.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
=====Getting grouped configurations=====&lt;br /&gt;
The CLI Update adds an option to &amp;lt;tt&amp;gt;config:get&amp;lt;/tt&amp;gt; command that allows us to get logically grouped options, say for example you want to view all your database related options, or you want to view all email related options. To achieve this the CLI Update provides an option to specify a group of options to display, here is how to do that: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php config:get --group=mail&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Config get group.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
The command takes in the &amp;lt;tt&amp;gt;group&amp;lt;/tt&amp;gt; option and given the value of &amp;lt;tt&amp;gt;mail&amp;lt;/tt&amp;gt;. CLI Update currently supports group values: mail, db and session.&lt;br /&gt;
&lt;br /&gt;
====Site down and Site up commands====&lt;br /&gt;
As their name suggests, these commands allow you to quickly put your Joomla powered website into offline or online mode. Here is how to use the commands:&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php site:up&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Site up.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;php cli/joomla.php site:down&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Site down.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
The second command puts the website in offline mode while the first command brings the website to online mode.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Contributing to CLI Update as a developer==&lt;br /&gt;
&lt;br /&gt;
===Adding more commands===&lt;br /&gt;
The CLI Update ships with some commands which are added based on the need seen as of the time. However, the CLI Update allows other commands to be added easily and this is what this section is for. A video tutorial is included below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;video-container&amp;quot;&amp;gt;&lt;br /&gt;
{{#widget:YouTube|id=gcJJtTcPiTg}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Calling other commands within command classes===&lt;br /&gt;
Should in case a command you want to write for the CLI Update is going to be require that you call an existing command internally, this is how that can be achieved from within another command class:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
class RunHelloCommand extends AbstractCommand {&lt;br /&gt;
    ...&lt;br /&gt;
&lt;br /&gt;
    public function execute(): int {&lt;br /&gt;
        $command = $this-&amp;gt;getApplication()-&amp;gt;getCommand(&#039;say:hello&#039;);&lt;br /&gt;
        $code = $command-&amp;gt;execute();&lt;br /&gt;
&lt;br /&gt;
        if($code === 0) {&lt;br /&gt;
            // command ran successfully, do something&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    ...&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here, we&#039;re attempting to call the &amp;lt;tt&amp;gt;say:hello&amp;lt;/tt&amp;gt; command created in the Video above.&lt;br /&gt;
&lt;br /&gt;
===Some important things to checkout===&lt;br /&gt;
*Symfony Style Documentation: [https://symfony.com/doc/current/console/style.html How to Style a Console Command]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Google Summer of Code 2018]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Joomla!_4.x]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Translations:J4.x:CLI_Update/6/fr&amp;diff=636503</id>
		<title>Translations:J4.x:CLI Update/6/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Translations:J4.x:CLI_Update/6/fr&amp;diff=636503"/>
		<updated>2019-10-19T11:38:00Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: Created page with &amp;quot;Comme c&amp;#039;est le cas pour toutes les applications CLI (Command Line Interface), l&amp;#039;accès à votre installation Joomla! via la ligne de commande est nécessaire pour utiliser les...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Comme c&#039;est le cas pour toutes les applications CLI (Command Line Interface), l&#039;accès à votre installation Joomla! via la ligne de commande est nécessaire pour utiliser les outils fournis par le CLI Update.&lt;br /&gt;
Vous devriez peut-être envisager d&#039;avoir un accès SSH pour votre serveur en direct.&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Database_Exporter_Importer/fr&amp;diff=636482</id>
		<title>J4.x:CLI Database Exporter Importer/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Database_Exporter_Importer/fr&amp;diff=636482"/>
		<updated>2019-10-19T11:30:21Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&amp;lt;noinclude&amp;gt;{{Joomla version|version=4.0}}&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{-}}&lt;br /&gt;
== À propos ==&lt;br /&gt;
Avant de mettre à jour Joomla! ou [[S:MyLanguage/J4.x:CLI Update|d&#039;installer une extension tierce]], il est fortement recommandé de sauvegarder votre site.&amp;lt;br /&amp;gt; &lt;br /&gt;
La Console Joomla! 4.x fournit des commandes pour exporter (sauvegarder) et importer (restaurer) votre base de données Joomla!.&lt;br /&gt;
&lt;br /&gt;
== Pré-requis ==&lt;br /&gt;
Pour utiliser ces commandes, vous avez besoin d&#039;un accès via un shell sécurisé (SSH) à votre hébergeur auquel PHP CLI (interface en ligne de commande) est installé.&lt;br /&gt;
Prenez en considération d&#039;avoir quelques connaissances élémentaires d&#039;usage des commandes shell.&lt;br /&gt;
&lt;br /&gt;
== Instructions ==&lt;br /&gt;
Se connecter à votre hébergeur et aller au dossier racine de votre site.&amp;lt;br /&amp;gt;&lt;br /&gt;
Je recommande d&#039;utiliser le dossier &#039;tmp&#039; de Joomla dans votre &amp;lt;chemin_dossier&amp;gt; pour avoir les autorisations en lecture/écriture.&lt;br /&gt;
&lt;br /&gt;
* Lister toutes les commandes disponibles de la Console Joomla:&amp;lt;br /&amp;gt;&amp;lt;tt&amp;gt;php cli/joomla.php list&amp;lt;/tt&amp;gt;&lt;br /&gt;
* Exporter la base de données dans le dossier:&amp;lt;br /&amp;gt;&amp;lt;tt&amp;gt;php cli/joomla.php database:export --all --folder &amp;lt;chemin_dossier&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
* Importer la base de données à partir du dossier:&amp;lt;br /&amp;gt;&amp;lt;tt&amp;gt;php cli/joomla.php database:import --all --folder &amp;lt;chemin_dossier&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Vous pouvez aussi:&lt;br /&gt;
* Exporter la base de données sous forme de fichier .zip:&amp;lt;br /&amp;gt;&amp;lt;tt&amp;gt;php cli/joomla.php database:export --all --zip&amp;lt;/tt&amp;gt;&lt;br /&gt;
* Exporter une table spécifique:&amp;lt;br /&amp;gt;&amp;lt;tt&amp;gt;php cli/joomla.php database:export --table &amp;lt;nom_table&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
* Exporter une table comme un fichier .zip:&amp;lt;br /&amp;gt;&amp;lt;tt&amp;gt;php cli/joomla.php database:export --table &amp;lt;nom_table&amp;gt; --zip&amp;lt;/tt&amp;gt;&lt;br /&gt;
* Importer une table:&amp;lt;br /&amp;gt;&amp;lt;tt&amp;gt;php cli/joomla.php database:import --table &amp;lt;nom_table&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
* Si vous avez besoin d&#039;aide:&amp;lt;br /&amp;gt;&amp;lt;tt&amp;gt;php cli/joomla.php database:export --help&amp;lt;/tt&amp;gt; &amp;lt;tt&amp;gt;php cli/joomla.php database:import --help&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Sauvegarder et restaurer ==&lt;br /&gt;
Pour faire une sauvegarde complète (avec les dossiers, les fichiers et la base de données) de votre site, vous pouvez exécuter ces commandes:&lt;br /&gt;
# Archiver votre répertoire racine de Joomla:&amp;lt;br /&amp;gt;&amp;lt;tt&amp;gt;tar --exclude=&#039;./tmp/joomla_bak.*&#039; -zcvf tmp/joomla_bak.tgz . &amp;gt; tmp/joomla_bak.log&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Exporter toute la base de données Joomla:&amp;lt;br /&amp;gt;&amp;lt;tt&amp;gt;php cli/joomla.php database:export --all --folder tmp/db_bak&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Et pour la restaurer, exécutez ces commandes:&lt;br /&gt;
# Importer toute la base de données Joomla:&amp;lt;br /&amp;gt;&amp;lt;tt&amp;gt;php cli/joomla.php database:import --all --folder tmp/db_bak&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Extraire l&#039;archive:&amp;lt;br /&amp;gt;&amp;lt;tt&amp;gt;tar --recursive-unlink -xvf tmp/joomla_bak.tgz .&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Joomla! 4.x]]&lt;br /&gt;
[[Category:Joomla! 4.0{{#translation:}}]]&lt;br /&gt;
[[Category:Development{{#translation:}}]]&lt;br /&gt;
[[Category:Platform{{#translation:}}]]&lt;br /&gt;
[[Category:Tutorials{{#translation:}}]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Database_Exporter_Importer/fr&amp;diff=636469</id>
		<title>J4.x:CLI Database Exporter Importer/fr</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=J4.x:CLI_Database_Exporter_Importer/fr&amp;diff=636469"/>
		<updated>2019-10-19T11:27:39Z</updated>

		<summary type="html">&lt;p&gt;Cavo789: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&amp;lt;noinclude&amp;gt;{{Joomla version|version=4.0}}&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{-}}&lt;br /&gt;
== À propos ==&lt;br /&gt;
Avant de mettre à jour Joomla! ou [[S:MyLanguage/J4.x:CLI Update|d&#039;installer une extension tierce]], il est fortement recommandé de sauvegarder votre site.&amp;lt;br /&amp;gt; &lt;br /&gt;
La Console Joomla! 4.x fournit des commandes pour exporter (sauvegarder) et importer (restaurer) votre base de données Joomla!.&lt;br /&gt;
&lt;br /&gt;
== Pré-requis ==&lt;br /&gt;
Pour utiliser ces commandes, vous avez besoin d&#039;un accès via un shell sécurisé (SSH) à votre hébergeur auquel PHP CLI (interface en ligne de commande) est installé.&lt;br /&gt;
Prenez en considération d&#039;avoir quelques connaissances élémentaires d&#039;usage des commandes shell.&lt;br /&gt;
&lt;br /&gt;
== Instructions ==&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-translate-fuzzy&amp;quot;&amp;gt;&lt;br /&gt;
Se connecter à votre hébergeur et aller au dossier racine de votre site.&amp;lt;br /&amp;gt;&lt;br /&gt;
Je recommande d&#039;utiliser le dossier &#039;tmp&#039; de Joomla dans votre &amp;lt;chemin_dossier&amp;gt; pour avoir les autorisations en lecture/écriture.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Lister toutes les commandes disponibles de la Console Joomla:&amp;lt;br /&amp;gt;&amp;lt;tt&amp;gt;php cli/joomla.php list&amp;lt;/tt&amp;gt;&lt;br /&gt;
* Exporter la base de données dans le dossier:&amp;lt;br /&amp;gt;&amp;lt;tt&amp;gt;php cli/joomla.php database:export --all --folder &amp;lt;chemin_dossier&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
* Importer la base de données à partir du dossier:&amp;lt;br /&amp;gt;&amp;lt;tt&amp;gt;php cli/joomla.php database:import --all --folder &amp;lt;chemin_dossier&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Vous pouvez aussi:&lt;br /&gt;
* Exporter la base de données sous forme de fichier .zip:&amp;lt;br /&amp;gt;&amp;lt;tt&amp;gt;php cli/joomla.php database:export --all --zip&amp;lt;/tt&amp;gt;&lt;br /&gt;
* Exporter une table spécifique:&amp;lt;br /&amp;gt;&amp;lt;tt&amp;gt;php cli/joomla.php database:export --table &amp;lt;nom_table&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
* Exporter une table comme un fichier .zip:&amp;lt;br /&amp;gt;&amp;lt;tt&amp;gt;php cli/joomla.php database:export --table &amp;lt;nom_table&amp;gt; --zip&amp;lt;/tt&amp;gt;&lt;br /&gt;
* Importer une table:&amp;lt;br /&amp;gt;&amp;lt;tt&amp;gt;php cli/joomla.php database:import --table &amp;lt;nom_table&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
* Si vous avez besoin d&#039;aide:&amp;lt;br /&amp;gt;&amp;lt;tt&amp;gt;php cli/joomla.php database:export --help&amp;lt;/tt&amp;gt; &amp;lt;tt&amp;gt;php cli/joomla.php database:import --help&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Sauvegarder et restaurer ==&lt;br /&gt;
Pour faire une sauvegarde complète (avec les dossiers, les fichiers et la base de données) de votre site, vous pouvez exécuter ces commandes:&lt;br /&gt;
# Archiver votre répertoire racine de Joomla:&amp;lt;br /&amp;gt;&amp;lt;tt&amp;gt;tar --exclude=&#039;./tmp/joomla_bak.*&#039; -zcvf tmp/joomla_bak.tgz . &amp;gt; tmp/joomla_bak.log&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Exporter toute la base de données Joomla:&amp;lt;br /&amp;gt;&amp;lt;tt&amp;gt;php cli/joomla.php database:export --all --folder tmp/db_bak&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Et pour la restaurer, exécutez ces commandes:&lt;br /&gt;
# Importer toute la base de données Joomla:&amp;lt;br /&amp;gt;&amp;lt;tt&amp;gt;php cli/joomla.php database:import --all --folder tmp/db_bak&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Extraire l&#039;archive:&amp;lt;br /&amp;gt;&amp;lt;tt&amp;gt;tar --recursive-unlink -xvf tmp/joomla_bak.tgz .&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Joomla! 4.x]]&lt;br /&gt;
[[Category:Joomla! 4.0{{#translation:}}]]&lt;br /&gt;
[[Category:Development{{#translation:}}]]&lt;br /&gt;
[[Category:Platform{{#translation:}}]]&lt;br /&gt;
[[Category:Tutorials{{#translation:}}]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Cavo789</name></author>
	</entry>
</feed>